commit: d9ae948f79aedcb2f8fffc080afd8f9a67605881 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> AuthorDate: Sun Feb 2 23:18:32 2020 +0000 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> CommitDate: Sun Feb 2 23:23:29 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9ae948f
x11-plugins/wmping: fix build with -fno-common Closes: https://bugs.gentoo.org/706920 Package-Manager: Portage-2.3.87, Repoman-2.3.20 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> x11-plugins/wmping/files/wmping-0.2.1-gcc-10.patch | 21 +++++++++++++++++++++ x11-plugins/wmping/wmping-0.2.1-r1.ebuild | 7 +++++-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/x11-plugins/wmping/files/wmping-0.2.1-gcc-10.patch b/x11-plugins/wmping/files/wmping-0.2.1-gcc-10.patch new file mode 100644 index 00000000000..3ed8b82f29e --- /dev/null +++ b/x11-plugins/wmping/files/wmping-0.2.1-gcc-10.patch @@ -0,0 +1,21 @@ +--- a/wmgeneral.c ++++ b/wmgeneral.c +@@ -45,6 +45,7 @@ Window iconwin, win; + GC NormalGC; + XpmIcon wmgen; + Pixmap pixmask; ++Display *display; + + /*****************/ + /* Mouse Regions */ +--- a/wmgeneral.h ++++ b/wmgeneral.h +@@ -21,7 +21,7 @@ typedef struct { + /* Global variable */ + /*******************/ + +-Display *display; ++extern Display *display; + + /***********************/ + /* Function Prototypes */ diff --git a/x11-plugins/wmping/wmping-0.2.1-r1.ebuild b/x11-plugins/wmping/wmping-0.2.1-r1.ebuild index ab211f81e7b..489881f2407 100644 --- a/x11-plugins/wmping/wmping-0.2.1-r1.ebuild +++ b/x11-plugins/wmping/wmping-0.2.1-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 @@ -20,7 +20,10 @@ DEPEND="${RDEPEND} x11-libs/libICE x11-libs/libXt" -PATCHES=( "${FILESDIR}"/${P}-format-security.patch ) +PATCHES=( + "${FILESDIR}"/${P}-format-security.patch + "${FILESDIR}"/${P}-gcc-10.patch + ) DOCS=( AUTHORS CHANGES README )