commit: 80332b22e81f0a4ea49fa7515c9388758e8d6667 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> AuthorDate: Sat Jun 13 08:59:06 2020 +0000 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> CommitDate: Sat Jun 13 09:04:24 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80332b22
x11-plugins/wmrecord: fix build with -fno-common Closes: https://bugs.gentoo.org/726206 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> .../files/wmrecord-1.0.5.3-fno-common.patch | 29 ++++++++++++++++++++++ x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild | 4 ++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/x11-plugins/wmrecord/files/wmrecord-1.0.5.3-fno-common.patch b/x11-plugins/wmrecord/files/wmrecord-1.0.5.3-fno-common.patch new file mode 100644 index 00000000000..a70b5f87b0e --- /dev/null +++ b/x11-plugins/wmrecord/files/wmrecord-1.0.5.3-fno-common.patch @@ -0,0 +1,29 @@ +diff -Naur wmrecord-1.0.5.orig/wmgeneral/wmgeneral.c wmrecord-1.0.5/wmgeneral/wmgeneral.c +--- wmrecord-1.0.5.orig/wmgeneral/wmgeneral.c 1999-07-05 20:40:04.000000000 +0200 ++++ wmrecord-1.0.5/wmgeneral/wmgeneral.c 2020-06-13 10:57:57.237900077 +0200 +@@ -66,6 +66,9 @@ + char *Geometry = ""; + GC NormalGC; + Pixmap pixmask; ++Display *display; ++Window Root, iconwin, win; ++XpmIcon wmgen; + + /*****************/ + /* Mouse Regions */ +diff -Naur wmrecord-1.0.5.orig/wmgeneral/wmgeneral.h wmrecord-1.0.5/wmgeneral/wmgeneral.h +--- wmrecord-1.0.5.orig/wmgeneral/wmgeneral.h 1999-06-01 15:46:55.000000000 +0200 ++++ wmrecord-1.0.5/wmgeneral/wmgeneral.h 2020-06-13 10:57:51.055895156 +0200 +@@ -36,9 +36,9 @@ + /* Global variable */ + /*******************/ + +-Display *display; +-Window Root, iconwin, win; +-XpmIcon wmgen; ++extern Display *display; ++extern Window Root, iconwin, win; ++extern XpmIcon wmgen; + + /***********************/ + /* Function Prototypes */ diff --git a/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild b/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild index 4be4f50aa08..565cf632375 100644 --- a/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.ebuild +++ b/x11-plugins/wmrecord/wmrecord-1.0.5.3-r2.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 @@ -22,6 +22,8 @@ KEYWORDS="~ppc x86" S="${WORKDIR}/${PN}-1.0.5" +PATCHES=( "${FILESDIR}"/${P}-fno-common.patch ) + src_prepare() { default #prevent auto-stripping of binaries. Closes bug #252112