x11-plugins/wmsysmon: fix build with -fno-common
authorBernard Cafarelli <voyageur@gentoo.org>
Sun, 1 Mar 2020 15:05:58 +0000 (16:05 +0100)
committerBernard Cafarelli <voyageur@gentoo.org>
Sun, 1 Mar 2020 15:12:43 +0000 (16:12 +0100)
Closes: https://bugs.gentoo.org/707178
Package-Manager: Portage-2.3.90, Repoman-2.3.20
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
x11-plugins/wmsysmon/files/wmsysmon-0.7.8-gcc-10.patch [new file with mode: 0644]
x11-plugins/wmsysmon/wmsysmon-0.7.8.ebuild

diff --git a/x11-plugins/wmsysmon/files/wmsysmon-0.7.8-gcc-10.patch b/x11-plugins/wmsysmon/files/wmsysmon-0.7.8-gcc-10.patch
new file mode 100644 (file)
index 0000000..e947789
--- /dev/null
@@ -0,0 +1,23 @@
+diff -Naur src.orig/wmgeneral.h src/wmgeneral.h
+--- src.orig/wmgeneral.h       2017-12-06 15:00:16.000000000 +0100
++++ src/wmgeneral.h    2020-03-01 16:03:18.293199660 +0100
+@@ -38,7 +38,7 @@
+  /* Global variable */
+ /*******************/
+-Display               *display;
++extern Display                *display;
+   /***********************/
+  /* Function Prototypes */
+diff -Naur src.orig/wmsysmon.c src/wmsysmon.c
+--- src.orig/wmsysmon.c        2017-12-06 15:00:16.000000000 +0100
++++ src/wmsysmon.c     2020-03-01 16:03:32.992203044 +0100
+@@ -138,6 +138,7 @@
+ time_t        curtime;
+ time_t        prevtime;
++Display               *display;
+ kernel_versions Get_Kernel_version(void);
+ void usage(void);
index b01c8bde4910802a729a7344855a5531a8ef65e6..4a1faee41b235d24ebac689658b9fe51b846d5d0 100644 (file)
@@ -18,6 +18,7 @@ DEPEND="x11-libs/libX11
        x11-libs/libXpm"
 RDEPEND="${DEPEND}"
 
+PATCHES=( "${FILESDIR}"/${P}-gcc-10.patch )
 DOCS=( ../ChangeLog ../README )
 S=${WORKDIR}/${P}/src