1 |
commit: 87cc63f928f9542b8d114f18e32c8df1377515dd |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 1 21:53:28 2021 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 1 21:53:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87cc63f9 |
7 |
|
8 |
x11-plugins/wminet: fix build with -fno-common |
9 |
|
10 |
Closes: https://bugs.gentoo.org/707296 |
11 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
12 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
13 |
|
14 |
.../wminet/files/wminet-3.0.0-fno-common.patch | 23 ++++++++++++++++++++++ |
15 |
x11-plugins/wminet/wminet-3.0.0-r2.ebuild | 6 ++++-- |
16 |
2 files changed, 27 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/x11-plugins/wminet/files/wminet-3.0.0-fno-common.patch b/x11-plugins/wminet/files/wminet-3.0.0-fno-common.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..606dada2fb3 |
21 |
--- /dev/null |
22 |
+++ b/x11-plugins/wminet/files/wminet-3.0.0-fno-common.patch |
23 |
@@ -0,0 +1,23 @@ |
24 |
+diff -Naur wminet-3.0.0.orig/src/wmgeneral.h wminet-3.0.0/src/wmgeneral.h |
25 |
+--- wminet-3.0.0.orig/src/wmgeneral.h 2001-12-02 19:03:14.000000000 +0100 |
26 |
++++ wminet-3.0.0/src/wmgeneral.h 2021-01-01 22:51:46.875206930 +0100 |
27 |
+@@ -15,7 +15,7 @@ |
28 |
+ /* Global variable */ |
29 |
+ /*******************/ |
30 |
+ |
31 |
+-Display *display; |
32 |
++extern Display *display; |
33 |
+ |
34 |
+ /***********************/ |
35 |
+ /* Function Prototypes */ |
36 |
+diff -Naur wminet-3.0.0.orig/src/wminet.c wminet-3.0.0/src/wminet.c |
37 |
+--- wminet-3.0.0.orig/src/wminet.c 2001-11-24 12:03:32.000000000 +0100 |
38 |
++++ wminet-3.0.0/src/wminet.c 2021-01-01 22:51:41.493202753 +0100 |
39 |
+@@ -78,6 +78,7 @@ |
40 |
+ /* Globals */ |
41 |
+ /******************************************/ |
42 |
+ |
43 |
++Display *display; |
44 |
+ char mask[MASK_WIDTH * MASK_HEIGHT]; |
45 |
+ int monitor_tcp = 0; |
46 |
+ int monitor_udp = 0; |
47 |
|
48 |
diff --git a/x11-plugins/wminet/wminet-3.0.0-r2.ebuild b/x11-plugins/wminet/wminet-3.0.0-r2.ebuild |
49 |
index e4fc9ee0d5a..55bb40840be 100644 |
50 |
--- a/x11-plugins/wminet/wminet-3.0.0-r2.ebuild |
51 |
+++ b/x11-plugins/wminet/wminet-3.0.0-r2.ebuild |
52 |
@@ -1,4 +1,4 @@ |
53 |
-# Copyright 1999-2018 Gentoo Authors |
54 |
+# Copyright 1999-2021 Gentoo Authors |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
|
57 |
EAPI=7 |
58 |
@@ -19,7 +19,9 @@ RDEPEND="x11-libs/libX11 |
59 |
DEPEND="${RDEPEND} |
60 |
x11-base/xorg-proto" |
61 |
|
62 |
-PATCHES=( "${FILESDIR}"/${P}-list.patch ) |
63 |
+PATCHES=( "${FILESDIR}"/${P}-list.patch |
64 |
+ "${FILESDIR}"/${P}-fno-common.patch |
65 |
+ ) |
66 |
|
67 |
DOCS=( AUTHORS ChangeLog NEWS README wminetrc ) |