summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2020-01-29 18:57:29 +0100
committerBernard Cafarelli <voyageur@gentoo.org>2020-01-29 19:26:59 +0100
commit66edbfc31b168de0d42a813e0c810d558b437a2c (patch)
tree7cf0ef7c2cff5f2df00a02daab538c46f286f504 /x11-plugins/wmCalClock
parentx11-plugins/wmpop3lb: fix build with -fno-common (diff)
downloadgentoo-66edbfc31b168de0d42a813e0c810d558b437a2c.tar.gz
gentoo-66edbfc31b168de0d42a813e0c810d558b437a2c.tar.bz2
gentoo-66edbfc31b168de0d42a813e0c810d558b437a2c.zip
x11-plugins/wmCalClock: fix build with -fno-common
Closes: https://bugs.gentoo.org/706686 Package-Manager: Portage-2.3.86, Repoman-2.3.20 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'x11-plugins/wmCalClock')
-rw-r--r--x11-plugins/wmCalClock/files/wmCalClock-1.25-gcc-10.patch35
-rw-r--r--x11-plugins/wmCalClock/wmCalClock-1.25-r3.ebuild7
2 files changed, 40 insertions, 2 deletions
diff --git a/x11-plugins/wmCalClock/files/wmCalClock-1.25-gcc-10.patch b/x11-plugins/wmCalClock/files/wmCalClock-1.25-gcc-10.patch
new file mode 100644
index 000000000000..c6a737e6b443
--- /dev/null
+++ b/x11-plugins/wmCalClock/files/wmCalClock-1.25-gcc-10.patch
@@ -0,0 +1,35 @@
+diff -Naur wmCalClock-1.25.orig/Src/xutils.c wmCalClock-1.25/Src/xutils.c
+--- a/xutils.c 1999-03-27 07:46:38.000000000 +0100
++++ b/xutils.c 2020-01-29 18:55:05.062360592 +0100
+@@ -52,6 +52,11 @@
+ GC NormalGC;
+ XpmIcon wmgen;
+ Pixmap pixmask;
++Display *display;
++Window Root;
++Window iconwin, win;
++int screen;
++int DisplayDepth;
+
+
+ /*
+diff -Naur wmCalClock-1.25.orig/Src/xutils.h wmCalClock-1.25/Src/xutils.h
+--- a/xutils.h 1999-03-27 07:46:38.000000000 +0100
++++ b/xutils.h 2020-01-29 18:54:54.360359886 +0100
+@@ -18,11 +18,11 @@
+ /*
+ * Global variable
+ */
+-Display *display;
+-Window Root;
+-Window iconwin, win;
+-int screen;
+-int DisplayDepth;
++extern Display *display;
++extern Window Root;
++extern Window iconwin, win;
++extern int screen;
++extern int DisplayDepth;
+
+
+
diff --git a/x11-plugins/wmCalClock/wmCalClock-1.25-r3.ebuild b/x11-plugins/wmCalClock/wmCalClock-1.25-r3.ebuild
index 3ace8130324c..c7508ab5e8e8 100644
--- a/x11-plugins/wmCalClock/wmCalClock-1.25-r3.ebuild
+++ b/x11-plugins/wmCalClock/wmCalClock-1.25-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -24,7 +24,10 @@ S="${WORKDIR}/${P}/Src"
DOCS=( ../{BUGS,CHANGES,HINTS,README,TODO} )
-PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}-makefile.patch
+ "${FILESDIR}"/${P}-gcc-10.patch
+ )
src_compile() {
emake CC="$(tc-getCC)" LIBDIR="-L/usr/$(get_libdir)/"