x11-plugins/wmweather+: fix build with -fno-common
authorBernard Cafarelli <voyageur@gentoo.org>
Mon, 24 Feb 2020 21:16:38 +0000 (22:16 +0100)
committerBernard Cafarelli <voyageur@gentoo.org>
Mon, 24 Feb 2020 21:47:31 +0000 (22:47 +0100)
Closes: https://bugs.gentoo.org/707800
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
x11-plugins/wmweather+/files/wmweather+-2.17-gcc-10.patch [new file with mode: 0644]
x11-plugins/wmweather+/wmweather+-2.17.ebuild

diff --git a/x11-plugins/wmweather+/files/wmweather+-2.17-gcc-10.patch b/x11-plugins/wmweather+/files/wmweather+-2.17-gcc-10.patch
new file mode 100644 (file)
index 0000000..1b26aa3
--- /dev/null
@@ -0,0 +1,23 @@
+diff -Naur wmweather+-2.17.orig/wmgeneral/wmgeneral-x11.c wmweather+-2.17/wmgeneral/wmgeneral-x11.c
+--- wmweather+-2.17.orig/wmgeneral/wmgeneral-x11.c     2014-02-07 20:17:44.000000000 +0100
++++ wmweather+-2.17/wmgeneral/wmgeneral-x11.c  2020-02-24 22:11:47.226905019 +0100
+@@ -94,6 +94,7 @@
+ GC          NormalGC;
+ GC          RedrawGC;
+ XpmIcon     wmgen;
++Display               *display;
+   /***********************/
+  /* Function Prototypes */
+diff -Naur wmweather+-2.17.orig/wmgeneral/wmgeneral-x11.h wmweather+-2.17/wmgeneral/wmgeneral-x11.h
+--- wmweather+-2.17.orig/wmgeneral/wmgeneral-x11.h     2014-02-07 20:17:44.000000000 +0100
++++ wmweather+-2.17/wmgeneral/wmgeneral-x11.h  2020-02-24 22:10:45.233884234 +0100
+@@ -17,7 +17,7 @@
+  /* Global variable */
+ /*******************/
+-Display               *display;
++extern Display                *display;
+   /***********************/
+  /* Function Prototypes */
index 49e62aa1ecf9a07f1b9991497e37ea981a681470..94bc2487217fa711fff21f0578948075d04e48ad 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -19,3 +19,5 @@ DEPEND="dev-libs/libpcre
        x11-libs/libX11
        x11-wm/windowmaker"
 RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-gcc-10.patch )