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/wmweather/, x11-plugins/wmweather/files/
Date: Sun, 29 Mar 2020 11:36:03
Message-Id: 1585481724.218ed79926574f50c582795dafb2d6dd4d29465d.voyageur@gentoo
1 commit: 218ed79926574f50c582795dafb2d6dd4d29465d
2 Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 29 11:17:12 2020 +0000
4 Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 29 11:35:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=218ed799
7
8 x11-plugins/wmweather: fix build with -fno-common
9
10 Closes: https://bugs.gentoo.org/714802
11 Package-Manager: Portage-2.3.96, Repoman-2.3.22
12 Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
13
14 .../files/wmweather-2.4.7-fno-common.patch | 23 ++++++++++++++++++++++
15 x11-plugins/wmweather/wmweather-2.4.7.ebuild | 9 ++++++++-
16 2 files changed, 31 insertions(+), 1 deletion(-)
17
18 diff --git a/x11-plugins/wmweather/files/wmweather-2.4.7-fno-common.patch b/x11-plugins/wmweather/files/wmweather-2.4.7-fno-common.patch
19 new file mode 100644
20 index 00000000000..5db5fbcc2e3
21 --- /dev/null
22 +++ b/x11-plugins/wmweather/files/wmweather-2.4.7-fno-common.patch
23 @@ -0,0 +1,23 @@
24 +diff -Naur wmweather-2.4.7.orig/src/wmgeneral.h wmweather-2.4.7/src/wmgeneral.h
25 +--- wmweather-2.4.7.orig/src/wmgeneral.h 2019-02-13 20:54:48.000000000 +0100
26 ++++ wmweather-2.4.7/src/wmgeneral.h 2020-03-29 13:14:19.373976239 +0200
27 +@@ -36,7 +36,7 @@
28 + /* Global variable */
29 + /*******************/
30 +
31 +-Display *display;
32 ++extern Display *display;
33 +
34 + /***********************/
35 + /* Function Prototypes */
36 +diff -Naur wmweather-2.4.7.orig/src/wmweather.c wmweather-2.4.7/src/wmweather.c
37 +--- wmweather-2.4.7.orig/src/wmweather.c 2019-02-13 20:54:49.000000000 +0100
38 ++++ wmweather-2.4.7/src/wmweather.c 2020-03-29 13:14:57.254963956 +0200
39 +@@ -56,6 +56,7 @@
40 + static void update(int);
41 + static size_t curl_callback(void*, size_t, size_t, void*);
42 +
43 ++Display *display;
44 + CURL
45 + *curl = NULL;
46 + static struct memory
47
48 diff --git a/x11-plugins/wmweather/wmweather-2.4.7.ebuild b/x11-plugins/wmweather/wmweather-2.4.7.ebuild
49 index 2109007a6f6..174e4977f14 100644
50 --- a/x11-plugins/wmweather/wmweather-2.4.7.ebuild
51 +++ b/x11-plugins/wmweather/wmweather-2.4.7.ebuild
52 @@ -1,4 +1,4 @@
53 -# Copyright 1999-2019 Gentoo Authors
54 +# Copyright 1999-2020 Gentoo Authors
55 # Distributed under the terms of the GNU General Public License v2
56
57 EAPI=6
58 @@ -27,3 +27,10 @@ DOCS=(
59 "${WORKDIR}"/${P}/CHANGES
60 "${WORKDIR}"/${P}/README
61 )
62 +
63 +src_prepare() {
64 + default
65 +
66 + pushd "${WORKDIR}"/${P} || die
67 + eapply "${FILESDIR}"/${P}-fno-common.patch
68 +}