Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/e16menuedit2/, x11-misc/e16menuedit2/files/
Date: Sun, 11 Oct 2020 08:47:40
Message-Id: 1602404391.a1ae67275707d149aaf6daba5387dcbb2d94325c.bircoph@gentoo
1 commit: a1ae67275707d149aaf6daba5387dcbb2d94325c
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 11 08:19:51 2020 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 11 08:19:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1ae6727
7
8 x11-misc/e16menuedit2: fix build with -fno-common
9
10 Closes: https://bugs.gentoo.org/707426
11 Package-Manager: Portage-3.0.8, Repoman-3.0.1
12 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
13
14 x11-misc/e16menuedit2/e16menuedit2-0.0.3.ebuild | 7 +++++--
15 .../e16menuedit2/files/e16menuedit2-no-common.patch | 20 ++++++++++++++++++++
16 2 files changed, 25 insertions(+), 2 deletions(-)
17
18 diff --git a/x11-misc/e16menuedit2/e16menuedit2-0.0.3.ebuild b/x11-misc/e16menuedit2/e16menuedit2-0.0.3.ebuild
19 index e0d251548c5..9c379752fcb 100644
20 --- a/x11-misc/e16menuedit2/e16menuedit2-0.0.3.ebuild
21 +++ b/x11-misc/e16menuedit2/e16menuedit2-0.0.3.ebuild
22 @@ -1,4 +1,4 @@
23 -# Copyright 1999-2019 Gentoo Authors
24 +# Copyright 1999-2020 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26
27 EAPI=6
28 @@ -24,7 +24,10 @@ DEPEND="
29 "
30 RDEPEND="${DEPEND}"
31
32 -PATCHES=( "${FILESDIR}/${PN}-no-default-docs.patch" )
33 +PATCHES=(
34 + "${FILESDIR}/${PN}-no-default-docs.patch"
35 + "${FILESDIR}/${PN}-no-common.patch"
36 +)
37
38 src_prepare() {
39 sed -i '1i#include <glib/gstdio.h>' src/e16menuedit2.c || die
40
41 diff --git a/x11-misc/e16menuedit2/files/e16menuedit2-no-common.patch b/x11-misc/e16menuedit2/files/e16menuedit2-no-common.patch
42 new file mode 100644
43 index 00000000000..4ac213b101f
44 --- /dev/null
45 +++ b/x11-misc/e16menuedit2/files/e16menuedit2-no-common.patch
46 @@ -0,0 +1,20 @@
47 +--- e16menuedit2-0.0.3/src/e16menu.h.orig 2020-10-11 10:41:36.827021380 +0300
48 ++++ e16menuedit2-0.0.3/src/e16menu.h 2020-10-11 10:51:27.043070842 +0300
49 +@@ -45,6 +45,6 @@
50 + gboolean table_check_func (GtkTreeModel *model, GtkTreePath *path,
51 + GtkTreeIter *iter, gpointer user_data);
52 +
53 +-gchar *menu_file[MAX_RECURSION];
54 ++extern gchar *menu_file[MAX_RECURSION];
55 +
56 + #endif /* _E16MENU_H */
57 +--- e16menuedit2-0.0.3/src/e16menu.c.orig 2005-02-18 15:09:55.000000000 +0300
58 ++++ e16menuedit2-0.0.3/src/e16menu.c 2020-10-11 10:51:52.615152314 +0300
59 +@@ -34,6 +34,7 @@
60 + #include "treeview.h"
61 +
62 + extern struct global_variables gv;
63 ++gchar *menu_file[MAX_RECURSION];
64 +
65 + GtkTreeModel *load_menus_from_disk (void)
66 + {