public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmXName/, x11-plugins/wmXName/files/
@ 2020-06-13  9:04 Bernard Cafarelli
  0 siblings, 0 replies; only message in thread
From: Bernard Cafarelli @ 2020-06-13  9:04 UTC (permalink / raw
  To: gentoo-commits

commit:     58849640d851f78dedceb37e38e5bca8438e8299
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 13 09:03:46 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=58849640

x11-plugins/wmXName: fix build with -fno-common

Closes: https://bugs.gentoo.org/726272
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 .../wmXName/files/wmXName-0.1-fno-common.patch     | 35 ++++++++++++++++++++++
 x11-plugins/wmXName/wmXName-0.1-r1.ebuild          |  2 ++
 2 files changed, 37 insertions(+)

diff --git a/x11-plugins/wmXName/files/wmXName-0.1-fno-common.patch b/x11-plugins/wmXName/files/wmXName-0.1-fno-common.patch
new file mode 100644
index 00000000000..a4cb9c0cb04
--- /dev/null
+++ b/x11-plugins/wmXName/files/wmXName-0.1-fno-common.patch
@@ -0,0 +1,35 @@
+diff -Naur wmXName-0.01.orig/xutils.c wmXName-0.01/xutils.c
+--- wmXName-0.01.orig/xutils.c	2002-06-28 11:34:26.000000000 +0200
++++ wmXName-0.01/xutils.c	2020-06-13 11:02:20.393108819 +0200
+@@ -52,6 +52,11 @@
+ GC		NormalGC;
+ XpmIcon		wmgen;
+ Pixmap		pixmask;
++Display		*display;
++Window          Root;
++Window          iconwin, win;
++int             screen; 
++int             DisplayDepth;
+ 
+ 
+ 
+diff -Naur wmXName-0.01.orig/xutils.h wmXName-0.01/xutils.h
+--- wmXName-0.01.orig/xutils.h	2002-06-28 11:34:59.000000000 +0200
++++ wmXName-0.01/xutils.h	2020-06-13 11:02:25.886113159 +0200
+@@ -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/wmXName/wmXName-0.1-r1.ebuild b/x11-plugins/wmXName/wmXName-0.1-r1.ebuild
index c812f1f76b8..793841b9798 100644
--- a/x11-plugins/wmXName/wmXName-0.1-r1.ebuild
+++ b/x11-plugins/wmXName/wmXName-0.1-r1.ebuild
@@ -25,6 +25,8 @@ RDEPEND="${COMMON_DEPEND}
 	>=dev-lang/perl-5.8.8-r5
 	>=www-client/lynx-2.8.6-r2"
 
+PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
+
 S="${WORKDIR}/${MY_P}"
 
 src_prepare() {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-13  9:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-13  9:04 [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmXName/, x11-plugins/wmXName/files/ Bernard Cafarelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox