Gentoo Archives: gentoo-commits

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmpop3lb/files/, x11-plugins/wmpop3lb/
Date: Wed, 29 Jan 2020 18:28:11
Message-Id: 1580322419.5749ea57c106309a71d79ad589e1e964b0953a07.voyageur@gentoo
1 commit: 5749ea57c106309a71d79ad589e1e964b0953a07
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 29 17:49:53 2020 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 29 18:26:59 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5749ea57
7
8 x11-plugins/wmpop3lb: fix build with -fno-common
9
10 Closes: https://bugs.gentoo.org/706550
11 Package-Manager: Portage-2.3.86, Repoman-2.3.20
12 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
13
14 .../wmpop3lb/files/wmpop3lb-2.4.2-gcc-10.patch | 21 +++++++++++++++++++++
15 x11-plugins/wmpop3lb/wmpop3lb-2.4.2-r3.ebuild | 5 +++--
16 2 files changed, 24 insertions(+), 2 deletions(-)
17
18 diff --git a/x11-plugins/wmpop3lb/files/wmpop3lb-2.4.2-gcc-10.patch b/x11-plugins/wmpop3lb/files/wmpop3lb-2.4.2-gcc-10.patch
19 new file mode 100644
20 index 00000000000..5beb4155256
21 --- /dev/null
22 +++ b/x11-plugins/wmpop3lb/files/wmpop3lb-2.4.2-gcc-10.patch
23 @@ -0,0 +1,21 @@
24 +--- a/wmgeneral/wmgeneral.c
25 ++++ b/wmgeneral/wmgeneral.c
26 +@@ -45,6 +45,7 @@ Window iconwin, win;
27 + GC NormalGC;
28 + XpmIcon wmgen;
29 + Pixmap pixmask;
30 ++Display *display;
31 +
32 + /*****************/
33 + /* Mouse Regions */
34 +--- a/wmgeneral/wmgeneral.h
35 ++++ b/wmgeneral/wmgeneral.h
36 +@@ -21,7 +21,7 @@ typedef struct {
37 + /* Global variable */
38 + /*******************/
39 +
40 +-Display *display;
41 ++extern Display *display;
42 +
43 + /***********************/
44 + /* Function Prototypes */
45
46 diff --git a/x11-plugins/wmpop3lb/wmpop3lb-2.4.2-r3.ebuild b/x11-plugins/wmpop3lb/wmpop3lb-2.4.2-r3.ebuild
47 index 99e7ab4db58..05a951236c0 100644
48 --- a/x11-plugins/wmpop3lb/wmpop3lb-2.4.2-r3.ebuild
49 +++ b/x11-plugins/wmpop3lb/wmpop3lb-2.4.2-r3.ebuild
50 @@ -1,4 +1,4 @@
51 -# Copyright 1999-2018 Gentoo Authors
52 +# Copyright 1999-2020 Gentoo Authors
53 # Distributed under the terms of the GNU General Public License v2
54
55 EAPI=7
56 @@ -20,7 +20,8 @@ DEPEND="${RDEPEND}"
57 S=${WORKDIR}/${P/-}
58
59 PATCHES=( "${FILESDIR}"/${P}-fix-RECV-and-try-STAT-if-LAST-wont-work.patch
60 - "${FILESDIR}"/${P}-list.patch )
61 + "${FILESDIR}"/${P}-list.patch
62 + "${FILESDIR}"/${P}-gcc-10.patch )
63
64 src_prepare() {
65 #Honour Gentoo CFLAGS