1 |
commit: 9c387393179ef14f6ebde703dad08ed7706384b0 |
2 |
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 10 09:31:10 2020 +0000 |
4 |
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 10 09:32:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c387393 |
7 |
|
8 |
app-editors/ee: fix build with >=sys-devel/gcc-10 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/706538 |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org> |
13 |
|
14 |
app-editors/ee/ee-1.5.2.ebuild | 1 + |
15 |
app-editors/ee/files/ee-gcc-10.patch | 22 ++++++++++++++++++++++ |
16 |
2 files changed, 23 insertions(+) |
17 |
|
18 |
diff --git a/app-editors/ee/ee-1.5.2.ebuild b/app-editors/ee/ee-1.5.2.ebuild |
19 |
index 832cb1b3e8f..ad4bb78c853 100644 |
20 |
--- a/app-editors/ee/ee-1.5.2.ebuild |
21 |
+++ b/app-editors/ee/ee-1.5.2.ebuild |
22 |
@@ -22,6 +22,7 @@ PATCHES=( |
23 |
"${FILESDIR}"/${PN}-init-location.patch |
24 |
"${FILESDIR}"/${PN}-signal.patch |
25 |
"${FILESDIR}"/${PN}-Wformat-security.patch |
26 |
+ "${FILESDIR}"/${PN}-gcc-10.patch |
27 |
) |
28 |
DOCS=( Changes README.${PN} ${PN}.i18n.guide ${PN}.msg ) |
29 |
|
30 |
|
31 |
diff --git a/app-editors/ee/files/ee-gcc-10.patch b/app-editors/ee/files/ee-gcc-10.patch |
32 |
new file mode 100644 |
33 |
index 00000000000..2577d76f25f |
34 |
--- /dev/null |
35 |
+++ b/app-editors/ee/files/ee-gcc-10.patch |
36 |
@@ -0,0 +1,22 @@ |
37 |
+--- a/new_curse.c |
38 |
++++ b/new_curse.c |
39 |
+@@ -83,6 +83,8 @@ |
40 |
+ #endif |
41 |
+ |
42 |
+ |
43 |
++struct _line *top_of_win; |
44 |
++ |
45 |
+ WINDOW *curscr; |
46 |
+ static WINDOW *virtual_scr; |
47 |
+ WINDOW *stdscr; |
48 |
+--- a/new_curse.h |
49 |
++++ b/new_curse.h |
50 |
+@@ -161,7 +161,7 @@ |
51 |
+ int number; |
52 |
+ }; |
53 |
+ |
54 |
+-struct _line *top_of_win; |
55 |
++extern struct _line *top_of_win; |
56 |
+ |
57 |
+ typedef struct WIND { |
58 |
+ int SR; /* starting row */ |