1 |
commit: 942e97f4b4255da0a9e59a2d3164ce9da22ed5a7 |
2 |
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 9 13:24:58 2017 +0000 |
4 |
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 9 13:24:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=942e97f4 |
7 |
|
8 |
app-editors/aee: fix build with -Werror=format-security |
9 |
|
10 |
Gentoo-Bug: 521012 |
11 |
|
12 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
13 |
|
14 |
app-editors/aee/aee-2.2.15b.ebuild | 5 ++++- |
15 |
app-editors/aee/files/aee-Wformat-security.patch | 11 +++++++++++ |
16 |
2 files changed, 15 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/app-editors/aee/aee-2.2.15b.ebuild b/app-editors/aee/aee-2.2.15b.ebuild |
19 |
index 3610053fa69..bbd9266d808 100644 |
20 |
--- a/app-editors/aee/aee-2.2.15b.ebuild |
21 |
+++ b/app-editors/aee/aee-2.2.15b.ebuild |
22 |
@@ -18,7 +18,10 @@ IUSE="X" |
23 |
RDEPEND="X? ( x11-libs/libX11 )" |
24 |
DEPEND="${RDEPEND}" |
25 |
|
26 |
-PATCHES=( "${FILESDIR}"/${P}-ae-location.patch ) |
27 |
+PATCHES=( |
28 |
+ "${FILESDIR}"/${P}-ae-location.patch |
29 |
+ "${FILESDIR}"/${PN}-Wformat-security.patch |
30 |
+) |
31 |
DOCS=( Changes README.${PN} ${PN}.i18n.guide ${PN}.msg ) |
32 |
|
33 |
src_prepare() { |
34 |
|
35 |
diff --git a/app-editors/aee/files/aee-Wformat-security.patch b/app-editors/aee/files/aee-Wformat-security.patch |
36 |
new file mode 100644 |
37 |
index 00000000000..7bc4c9c39fa |
38 |
--- /dev/null |
39 |
+++ b/app-editors/aee/files/aee-Wformat-security.patch |
40 |
@@ -0,0 +1,11 @@ |
41 |
+--- a/aee.c |
42 |
++++ b/aee.c |
43 |
+@@ -2493,7 +2493,7 @@ |
44 |
+ } |
45 |
+ if (shell_fork) |
46 |
+ { |
47 |
+- printf(press_ret_to_cont_str); |
48 |
++ printf("%s", press_ret_to_cont_str); |
49 |
+ fflush(stdout); |
50 |
+ while (((in = getchar()) != '\n') && (in != '\r')) |
51 |
+ ; |