1 |
commit: c60da361eabe6bc3c1f213e295fa6bbe23492d3e |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 1 14:59:39 2020 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 1 15:12:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c60da361 |
7 |
|
8 |
x11-plugins/wmfrog: fix build with -fno-common |
9 |
|
10 |
Closes: https://bugs.gentoo.org/707710 |
11 |
Package-Manager: Portage-2.3.90, Repoman-2.3.20 |
12 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
13 |
|
14 |
x11-plugins/wmfrog/files/wmfrog-0.3.1-gcc-10.patch | 36 ++++++++++++++++++++++ |
15 |
x11-plugins/wmfrog/wmfrog-0.3.1-r1.ebuild | 3 +- |
16 |
2 files changed, 38 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/x11-plugins/wmfrog/files/wmfrog-0.3.1-gcc-10.patch b/x11-plugins/wmfrog/files/wmfrog-0.3.1-gcc-10.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..9d25464c8ea |
21 |
--- /dev/null |
22 |
+++ b/x11-plugins/wmfrog/files/wmfrog-0.3.1-gcc-10.patch |
23 |
@@ -0,0 +1,36 @@ |
24 |
+diff -Naur Src.orig/wmFrog.c Src/wmFrog.c |
25 |
+--- Src.orig/wmFrog.c 2010-12-01 19:48:50.000000000 +0100 |
26 |
++++ Src/wmFrog.c 2020-03-01 15:54:30.428083446 +0100 |
27 |
+@@ -77,6 +77,12 @@ |
28 |
+ char* folder; |
29 |
+ int needsUpdate = 1; |
30 |
+ |
31 |
++Display *display; |
32 |
++Window Root; |
33 |
++Window iconwin, win; |
34 |
++int screen; |
35 |
++int DisplayDepth; |
36 |
++ |
37 |
+ /* |
38 |
+ * main |
39 |
+ */ |
40 |
+diff -Naur Src.orig/xutils.h Src/xutils.h |
41 |
+--- Src.orig/xutils.h 2010-08-04 20:28:46.000000000 +0200 |
42 |
++++ Src/xutils.h 2020-03-01 15:54:37.027084834 +0100 |
43 |
+@@ -18,11 +18,11 @@ |
44 |
+ /* |
45 |
+ * Global variable |
46 |
+ */ |
47 |
+-Display *display; |
48 |
+-Window Root; |
49 |
+-Window iconwin, win; |
50 |
+-int screen; |
51 |
+-int DisplayDepth; |
52 |
++extern Display *display; |
53 |
++extern Window Root; |
54 |
++extern Window iconwin, win; |
55 |
++extern int screen; |
56 |
++extern int DisplayDepth; |
57 |
+ |
58 |
+ |
59 |
+ |
60 |
|
61 |
diff --git a/x11-plugins/wmfrog/wmfrog-0.3.1-r1.ebuild b/x11-plugins/wmfrog/wmfrog-0.3.1-r1.ebuild |
62 |
index b3b8ab1a8a4..fa1b1ed45fc 100644 |
63 |
--- a/x11-plugins/wmfrog/wmfrog-0.3.1-r1.ebuild |
64 |
+++ b/x11-plugins/wmfrog/wmfrog-0.3.1-r1.ebuild |
65 |
@@ -1,4 +1,4 @@ |
66 |
-# Copyright 1999-2018 Gentoo Authors |
67 |
+# Copyright 1999-2020 Gentoo Authors |
68 |
# Distributed under the terms of the GNU General Public License v2 |
69 |
|
70 |
EAPI=7 |
71 |
@@ -21,6 +21,7 @@ DEPEND="${RDEPEND} |
72 |
|
73 |
S="${WORKDIR}/Src" |
74 |
|
75 |
+PATCHES=( "${FILESDIR}"/${P}-gcc-10.patch ) |
76 |
DOCS=( ../{CHANGES,HINTS} ) |
77 |
|
78 |
src_prepare() { |