1 |
commit: a41758ecc0c4dba5cfa14af8ed911a374ef67627 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 24 21:08:57 2020 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 24 21:47:31 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a41758ec |
7 |
|
8 |
x11-plugins/wmtimer: fix build with -fno-common |
9 |
|
10 |
Closes: https://bugs.gentoo.org/709506 |
11 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
12 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
13 |
|
14 |
.../wmtimer/files/wmtimer-2.92-gcc-10.patch | 23 ++++++++++++++++++++++ |
15 |
x11-plugins/wmtimer/wmtimer-2.92-r2.ebuild | 3 ++- |
16 |
2 files changed, 25 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/x11-plugins/wmtimer/files/wmtimer-2.92-gcc-10.patch b/x11-plugins/wmtimer/files/wmtimer-2.92-gcc-10.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..4332e891664 |
21 |
--- /dev/null |
22 |
+++ b/x11-plugins/wmtimer/files/wmtimer-2.92-gcc-10.patch |
23 |
@@ -0,0 +1,23 @@ |
24 |
+diff -Naur wmtimer-2.92.orig/wmgeneral/wmgeneral.c wmtimer-2.92/wmgeneral/wmgeneral.c |
25 |
+--- wmtimer-2.92.orig/wmgeneral/wmgeneral.c 2004-01-29 03:38:58.000000000 +0100 |
26 |
++++ wmtimer-2.92/wmgeneral/wmgeneral.c 2020-02-24 22:07:07.028810885 +0100 |
27 |
+@@ -67,6 +67,7 @@ |
28 |
+ GC NormalGC; |
29 |
+ XpmIcon wmgen; |
30 |
+ Pixmap pixmask; |
31 |
++Display *display; |
32 |
+ |
33 |
+ char *textColor = NULL; |
34 |
+ XpmColorSymbol colorSymbols[3] = { {"Text", NULL, 0} }; |
35 |
+diff -Naur wmtimer-2.92.orig/wmgeneral/wmgeneral.h wmtimer-2.92/wmgeneral/wmgeneral.h |
36 |
+--- wmtimer-2.92.orig/wmgeneral/wmgeneral.h 2001-10-11 07:38:39.000000000 +0200 |
37 |
++++ wmtimer-2.92/wmgeneral/wmgeneral.h 2020-02-24 22:06:49.756805063 +0100 |
38 |
+@@ -40,7 +40,7 @@ |
39 |
+ /* Global variable */ |
40 |
+ /*******************/ |
41 |
+ |
42 |
+-Display *display; |
43 |
++extern Display *display; |
44 |
+ |
45 |
+ /***********************/ |
46 |
+ /* Function Prototypes */ |
47 |
|
48 |
diff --git a/x11-plugins/wmtimer/wmtimer-2.92-r2.ebuild b/x11-plugins/wmtimer/wmtimer-2.92-r2.ebuild |
49 |
index 361f2745af0..f3fb9ab0ea2 100644 |
50 |
--- a/x11-plugins/wmtimer/wmtimer-2.92-r2.ebuild |
51 |
+++ b/x11-plugins/wmtimer/wmtimer-2.92-r2.ebuild |
52 |
@@ -1,4 +1,4 @@ |
53 |
-# Copyright 1999-2017 Gentoo Foundation |
54 |
+# Copyright 1999-2020 Gentoo Authors |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
|
57 |
EAPI=6 |
58 |
@@ -32,6 +32,7 @@ src_prepare() { |
59 |
cd "${WORKDIR}"/${P} || die |
60 |
eapply "${FILESDIR}"/${P}-counter-fix.patch |
61 |
eapply "${FILESDIR}"/${P}-list.patch |
62 |
+ eapply "${FILESDIR}"/${P}-gcc-10.patch |
63 |
eapply_user |
64 |
} |