1 |
commit: 11f48eed3b67f62b2a1e2e4dd9b6c37e372ebbd7 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 24 21:16:38 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=11f48eed |
7 |
|
8 |
x11-plugins/wmweather+: fix build with -fno-common |
9 |
|
10 |
Closes: https://bugs.gentoo.org/707800 |
11 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
12 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
13 |
|
14 |
.../wmweather+/files/wmweather+-2.17-gcc-10.patch | 23 ++++++++++++++++++++++ |
15 |
x11-plugins/wmweather+/wmweather+-2.17.ebuild | 4 +++- |
16 |
2 files changed, 26 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/x11-plugins/wmweather+/files/wmweather+-2.17-gcc-10.patch b/x11-plugins/wmweather+/files/wmweather+-2.17-gcc-10.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..1b26aa3936e |
21 |
--- /dev/null |
22 |
+++ b/x11-plugins/wmweather+/files/wmweather+-2.17-gcc-10.patch |
23 |
@@ -0,0 +1,23 @@ |
24 |
+diff -Naur wmweather+-2.17.orig/wmgeneral/wmgeneral-x11.c wmweather+-2.17/wmgeneral/wmgeneral-x11.c |
25 |
+--- wmweather+-2.17.orig/wmgeneral/wmgeneral-x11.c 2014-02-07 20:17:44.000000000 +0100 |
26 |
++++ wmweather+-2.17/wmgeneral/wmgeneral-x11.c 2020-02-24 22:11:47.226905019 +0100 |
27 |
+@@ -94,6 +94,7 @@ |
28 |
+ GC NormalGC; |
29 |
+ GC RedrawGC; |
30 |
+ XpmIcon wmgen; |
31 |
++Display *display; |
32 |
+ |
33 |
+ /***********************/ |
34 |
+ /* Function Prototypes */ |
35 |
+diff -Naur wmweather+-2.17.orig/wmgeneral/wmgeneral-x11.h wmweather+-2.17/wmgeneral/wmgeneral-x11.h |
36 |
+--- wmweather+-2.17.orig/wmgeneral/wmgeneral-x11.h 2014-02-07 20:17:44.000000000 +0100 |
37 |
++++ wmweather+-2.17/wmgeneral/wmgeneral-x11.h 2020-02-24 22:10:45.233884234 +0100 |
38 |
+@@ -17,7 +17,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/wmweather+/wmweather+-2.17.ebuild b/x11-plugins/wmweather+/wmweather+-2.17.ebuild |
49 |
index 49e62aa1ecf..94bc2487217 100644 |
50 |
--- a/x11-plugins/wmweather+/wmweather+-2.17.ebuild |
51 |
+++ b/x11-plugins/wmweather+/wmweather+-2.17.ebuild |
52 |
@@ -1,4 +1,4 @@ |
53 |
-# Copyright 1999-2019 Gentoo Authors |
54 |
+# Copyright 1999-2020 Gentoo Authors |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
|
57 |
EAPI=6 |
58 |
@@ -19,3 +19,5 @@ DEPEND="dev-libs/libpcre |
59 |
x11-libs/libX11 |
60 |
x11-wm/windowmaker" |
61 |
RDEPEND="${DEPEND}" |
62 |
+ |
63 |
+PATCHES=( "${FILESDIR}"/${P}-gcc-10.patch ) |