1 |
commit: 0a1dcb42dc36ca5c96cb87a16a56fc10cbd84d0b |
2 |
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 8 07:53:46 2020 +0000 |
4 |
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 8 07:55:02 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a1dcb42 |
7 |
|
8 |
media-radio/xastir: Fix build with -fno-common |
9 |
|
10 |
Closes: https://bugs.gentoo.org/706952 |
11 |
Package-Manager: Portage-2.3.87, Repoman-2.3.20 |
12 |
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org> |
13 |
|
14 |
.../xastir/files/xastir-2.1.4-fno-common.diff | 63 ++++++++++++++++++++++ |
15 |
media-radio/xastir/xastir-2.1.4.ebuild | 5 +- |
16 |
2 files changed, 67 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/media-radio/xastir/files/xastir-2.1.4-fno-common.diff b/media-radio/xastir/files/xastir-2.1.4-fno-common.diff |
19 |
new file mode 100644 |
20 |
index 00000000000..f2580b5977e |
21 |
--- /dev/null |
22 |
+++ b/media-radio/xastir/files/xastir-2.1.4-fno-common.diff |
23 |
@@ -0,0 +1,63 @@ |
24 |
+# Fixes build with -fno-common (bug #706952) |
25 |
+ |
26 |
+diff --git a/src/objects.h b/src/objects.h |
27 |
+index b1bf8b5..ef5b9b1 100644 |
28 |
+--- a/src/objects.h |
29 |
++++ b/src/objects.h |
30 |
+@@ -95,7 +95,7 @@ if (debug_level & 4) { fprintf(stderr, "Changing euid to %d and egid to %d\n", ( |
31 |
+ // |
32 |
+ // number_of_predefined_objects holds the actual number of predefined |
33 |
+ // objects available to display on the Create/Move popup menu. |
34 |
+-int number_of_predefined_objects; |
35 |
++extern int number_of_predefined_objects; |
36 |
+ // File name of ~/.xastir/config file containing definitions for |
37 |
+ // a predefined object menu. |
38 |
+ extern char predefined_object_definition_filename[256]; |
39 |
+diff --git a/src/x_spider.c b/src/x_spider.c |
40 |
+index a1fabc4..e5a0bc3 100644 |
41 |
+--- a/src/x_spider.c |
42 |
++++ b/src/x_spider.c |
43 |
+@@ -185,6 +185,7 @@ extern void split_string( char *data, char *cptr[], int max, char search_char ); |
44 |
+ // From database.h |
45 |
+ extern char my_callsign[]; |
46 |
+ |
47 |
++extern char *pname; |
48 |
+ |
49 |
+ typedef struct _pipe_object |
50 |
+ { |
51 |
+diff --git a/src/x_spider.h b/src/x_spider.h |
52 |
+index d8af8e9..a168b1f 100644 |
53 |
+--- a/src/x_spider.h |
54 |
++++ b/src/x_spider.h |
55 |
+@@ -31,7 +31,7 @@ |
56 |
+ #define SERV_UDP_PORT 2023 |
57 |
+ |
58 |
+ |
59 |
+-char *pname; |
60 |
++extern char *pname; |
61 |
+ extern int pipe_xastir_to_tcp_server; |
62 |
+ extern int pipe_tcp_server_to_xastir; |
63 |
+ extern int pipe_xastir_to_udp_server; |
64 |
+diff --git a/src/xa_config.c b/src/xa_config.c |
65 |
+index 9a6f1f3..2ded26c 100644 |
66 |
+--- a/src/xa_config.c |
67 |
++++ b/src/xa_config.c |
68 |
+@@ -65,7 +65,7 @@ |
69 |
+ |
70 |
+ #define MAX_VALUE 300 |
71 |
+ |
72 |
+-//extern char xa_config_dir[]; |
73 |
++char xa_config_dir[1000]; /* cmdline option user config dir */ |
74 |
+ |
75 |
+ |
76 |
+ |
77 |
+diff --git a/src/xa_config.h b/src/xa_config.h |
78 |
+index 9947145..530fc06 100644 |
79 |
+--- a/src/xa_config.h |
80 |
++++ b/src/xa_config.h |
81 |
+@@ -31,4 +31,4 @@ char *get_data_base_dir(char *dir); |
82 |
+ void save_data(void); |
83 |
+ void load_data_or_default(void); |
84 |
+ |
85 |
+-char xa_config_dir[1000]; /* cmdline option user config dir */ |
86 |
++extern char xa_config_dir[1000]; /* cmdline option user config dir */ |
87 |
|
88 |
diff --git a/media-radio/xastir/xastir-2.1.4.ebuild b/media-radio/xastir/xastir-2.1.4.ebuild |
89 |
index c3f29e3674c..d779bc0c568 100644 |
90 |
--- a/media-radio/xastir/xastir-2.1.4.ebuild |
91 |
+++ b/media-radio/xastir/xastir-2.1.4.ebuild |
92 |
@@ -1,4 +1,4 @@ |
93 |
-# Copyright 1999-2019 Gentoo Authors |
94 |
+# Copyright 1999-2020 Gentoo Authors |
95 |
# Distributed under the terms of the GNU General Public License v2 |
96 |
|
97 |
EAPI=7 |
98 |
@@ -43,6 +43,9 @@ src_prepare() { |
99 |
# do not filter duplicate flags (see bug 411095) |
100 |
eapply -p0 "${FILESDIR}"/${PN}-2.0.0-dont-filter-flags.diff |
101 |
|
102 |
+ # build with -fno-common (bug #706952) |
103 |
+ eapply "${FILESDIR}"/${P}-fno-common.diff |
104 |
+ |
105 |
eautoreconf |
106 |
} |