summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2020-01-29 18:47:33 +0100
committerBernard Cafarelli <voyageur@gentoo.org>2020-01-29 19:26:59 +0100
commit33bd5a1471ad32f607d7b90a9207de21fd4019f6 (patch)
tree74c4924cb3212e26426a1ac85996c31907c4c11a /x11-plugins
parentapp-misc/geneweb: fix patch path (diff)
downloadgentoo-33bd5a1471ad32f607d7b90a9207de21fd4019f6.tar.gz
gentoo-33bd5a1471ad32f607d7b90a9207de21fd4019f6.tar.bz2
gentoo-33bd5a1471ad32f607d7b90a9207de21fd4019f6.zip
x11-plugins/wmxres: fix build with -fno-common
Thanks slyfox for patch Closes: https://bugs.gentoo.org/706444 Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'x11-plugins')
-rw-r--r--x11-plugins/wmxres/files/wmxres-1.2-gcc-10.patch21
-rw-r--r--x11-plugins/wmxres/wmxres-1.2-r1.ebuild3
2 files changed, 23 insertions, 1 deletions
diff --git a/x11-plugins/wmxres/files/wmxres-1.2-gcc-10.patch b/x11-plugins/wmxres/files/wmxres-1.2-gcc-10.patch
new file mode 100644
index 000000000000..5beb41552562
--- /dev/null
+++ b/x11-plugins/wmxres/files/wmxres-1.2-gcc-10.patch
@@ -0,0 +1,21 @@
+--- a/wmgeneral/wmgeneral.c
++++ b/wmgeneral/wmgeneral.c
+@@ -45,6 +45,7 @@ Window iconwin, win;
+ GC NormalGC;
+ XpmIcon wmgen;
+ Pixmap pixmask;
++Display *display;
+
+ /*****************/
+ /* Mouse Regions */
+--- a/wmgeneral/wmgeneral.h
++++ b/wmgeneral/wmgeneral.h
+@@ -21,7 +21,7 @@ typedef struct {
+ /* Global variable */
+ /*******************/
+
+-Display *display;
++extern Display *display;
+
+ /***********************/
+ /* Function Prototypes */
diff --git a/x11-plugins/wmxres/wmxres-1.2-r1.ebuild b/x11-plugins/wmxres/wmxres-1.2-r1.ebuild
index 993a4f040d46..763a7d022d4a 100644
--- a/x11-plugins/wmxres/wmxres-1.2-r1.ebuild
+++ b/x11-plugins/wmxres/wmxres-1.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -25,6 +25,7 @@ S="${WORKDIR}/${PN}.app"
PATCHES=(
"${FILESDIR}"/${PN}-debian-1.1-1.2.patch
"${FILESDIR}"/${PN}-1.2-r1-fix-build-system.patch
+ "${FILESDIR}"/${P}-gcc-10.patch
)
src_configure() {