1 |
commit: d95b8d19dc7653c2e626a237abc7772f5020df5e |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 1 15:02:26 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=d95b8d19 |
7 |
|
8 |
x11-plugins/wmbinclock: fix build with -fno-common |
9 |
|
10 |
Closes: https://bugs.gentoo.org/707018 |
11 |
Package-Manager: Portage-2.3.90, Repoman-2.3.20 |
12 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
13 |
|
14 |
.../wmbinclock/files/wmbinclock-0.5-gcc-10.patch | 39 ++++++++++++++++++++++ |
15 |
x11-plugins/wmbinclock/wmbinclock-0.5-r1.ebuild | 4 ++- |
16 |
2 files changed, 42 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/x11-plugins/wmbinclock/files/wmbinclock-0.5-gcc-10.patch b/x11-plugins/wmbinclock/files/wmbinclock-0.5-gcc-10.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..9656e5cd837 |
21 |
--- /dev/null |
22 |
+++ b/x11-plugins/wmbinclock/files/wmbinclock-0.5-gcc-10.patch |
23 |
@@ -0,0 +1,39 @@ |
24 |
+diff -Naur wmbinclock-0.5.orig/wmBinClock.c wmbinclock-0.5/wmBinClock.c |
25 |
+--- wmbinclock-0.5.orig/wmBinClock.c 2005-06-21 19:57:58.000000000 +0200 |
26 |
++++ wmbinclock-0.5/wmBinClock.c 2020-03-01 16:01:16.622171968 +0100 |
27 |
+@@ -72,6 +72,13 @@ |
28 |
+ int GotFirstClick3, GotDoubleClick3; |
29 |
+ int DblClkDelay; |
30 |
+ |
31 |
++Display *display; |
32 |
++Window Root; |
33 |
++Window iconwin, win; |
34 |
++int screen; |
35 |
++int DisplayDepth; |
36 |
++GC NormalGC; |
37 |
++ |
38 |
+ void IntToBinary(int x, int *str[]); |
39 |
+ void PrintHelp(char err[]); |
40 |
+ |
41 |
+diff -Naur wmbinclock-0.5.orig/xutils.h wmbinclock-0.5/xutils.h |
42 |
+--- wmbinclock-0.5.orig/xutils.h 2005-02-04 23:06:34.000000000 +0100 |
43 |
++++ wmbinclock-0.5/xutils.h 2020-03-01 16:01:24.721173796 +0100 |
44 |
+@@ -18,12 +18,12 @@ |
45 |
+ /* |
46 |
+ * Global variable |
47 |
+ */ |
48 |
+-Display *display; |
49 |
+-Window Root; |
50 |
+-Window iconwin, win; |
51 |
+-int screen; |
52 |
+-int DisplayDepth; |
53 |
+-GC NormalGC; |
54 |
++extern Display *display; |
55 |
++extern Window Root; |
56 |
++extern Window iconwin, win; |
57 |
++extern int screen; |
58 |
++extern int DisplayDepth; |
59 |
++extern GC NormalGC; |
60 |
+ |
61 |
+ |
62 |
+ |
63 |
|
64 |
diff --git a/x11-plugins/wmbinclock/wmbinclock-0.5-r1.ebuild b/x11-plugins/wmbinclock/wmbinclock-0.5-r1.ebuild |
65 |
index 77d11a2018b..5d9f17b2c38 100644 |
66 |
--- a/x11-plugins/wmbinclock/wmbinclock-0.5-r1.ebuild |
67 |
+++ b/x11-plugins/wmbinclock/wmbinclock-0.5-r1.ebuild |
68 |
@@ -1,4 +1,4 @@ |
69 |
-# Copyright 1999-2018 Gentoo Authors |
70 |
+# Copyright 1999-2020 Gentoo Authors |
71 |
# Distributed under the terms of the GNU General Public License v2 |
72 |
|
73 |
EAPI=7 |
74 |
@@ -19,6 +19,8 @@ RDEPEND="x11-libs/libX11 |
75 |
DEPEND="${RDEPEND} |
76 |
x11-base/xorg-proto" |
77 |
|
78 |
+PATCHES=( "${FILESDIR}"/${P}-gcc-10.patch ) |
79 |
+ |
80 |
src_compile() { |
81 |
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \ |
82 |
INCDIR="-I/usr/include/X11" LIBDIR="" \ |