diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2020-03-01 16:02:26 +0100 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2020-03-01 16:12:42 +0100 |
commit | d95b8d19dc7653c2e626a237abc7772f5020df5e (patch) | |
tree | ddaa45ad6a06094282a75e469546a6a343cc1629 /x11-plugins/wmbinclock | |
parent | x11-plugins/wmfrog: fix build with -fno-common (diff) | |
download | gentoo-d95b8d19dc7653c2e626a237abc7772f5020df5e.tar.gz gentoo-d95b8d19dc7653c2e626a237abc7772f5020df5e.tar.bz2 gentoo-d95b8d19dc7653c2e626a237abc7772f5020df5e.zip |
x11-plugins/wmbinclock: fix build with -fno-common
Closes: https://bugs.gentoo.org/707018
Package-Manager: Portage-2.3.90, Repoman-2.3.20
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'x11-plugins/wmbinclock')
-rw-r--r-- | x11-plugins/wmbinclock/files/wmbinclock-0.5-gcc-10.patch | 39 | ||||
-rw-r--r-- | x11-plugins/wmbinclock/wmbinclock-0.5-r1.ebuild | 4 |
2 files changed, 42 insertions, 1 deletions
diff --git a/x11-plugins/wmbinclock/files/wmbinclock-0.5-gcc-10.patch b/x11-plugins/wmbinclock/files/wmbinclock-0.5-gcc-10.patch new file mode 100644 index 000000000000..9656e5cd837d --- /dev/null +++ b/x11-plugins/wmbinclock/files/wmbinclock-0.5-gcc-10.patch @@ -0,0 +1,39 @@ +diff -Naur wmbinclock-0.5.orig/wmBinClock.c wmbinclock-0.5/wmBinClock.c +--- wmbinclock-0.5.orig/wmBinClock.c 2005-06-21 19:57:58.000000000 +0200 ++++ wmbinclock-0.5/wmBinClock.c 2020-03-01 16:01:16.622171968 +0100 +@@ -72,6 +72,13 @@ + int GotFirstClick3, GotDoubleClick3; + int DblClkDelay; + ++Display *display; ++Window Root; ++Window iconwin, win; ++int screen; ++int DisplayDepth; ++GC NormalGC; ++ + void IntToBinary(int x, int *str[]); + void PrintHelp(char err[]); + +diff -Naur wmbinclock-0.5.orig/xutils.h wmbinclock-0.5/xutils.h +--- wmbinclock-0.5.orig/xutils.h 2005-02-04 23:06:34.000000000 +0100 ++++ wmbinclock-0.5/xutils.h 2020-03-01 16:01:24.721173796 +0100 +@@ -18,12 +18,12 @@ + /* + * Global variable + */ +-Display *display; +-Window Root; +-Window iconwin, win; +-int screen; +-int DisplayDepth; +-GC NormalGC; ++extern Display *display; ++extern Window Root; ++extern Window iconwin, win; ++extern int screen; ++extern int DisplayDepth; ++extern GC NormalGC; + + + diff --git a/x11-plugins/wmbinclock/wmbinclock-0.5-r1.ebuild b/x11-plugins/wmbinclock/wmbinclock-0.5-r1.ebuild index 77d11a2018b0..5d9f17b2c38f 100644 --- a/x11-plugins/wmbinclock/wmbinclock-0.5-r1.ebuild +++ b/x11-plugins/wmbinclock/wmbinclock-0.5-r1.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 @@ -19,6 +19,8 @@ RDEPEND="x11-libs/libX11 DEPEND="${RDEPEND} x11-base/xorg-proto" +PATCHES=( "${FILESDIR}"/${P}-gcc-10.patch ) + src_compile() { emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \ INCDIR="-I/usr/include/X11" LIBDIR="" \ |