1 |
commit: 05773148d8b7921a9b51f7ad64ed63b0d7ac2ee7 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 8 16:54:00 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 8 16:54:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05773148 |
7 |
|
8 |
media-sound/rcenter: Fix building under -fno-common |
9 |
|
10 |
Closes: https://bugs.gentoo.org/707648 |
11 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
.../rcenter/files/rcenter-0.6.2-fno-common.patch | 29 ++++++++++++++++++++++ |
15 |
media-sound/rcenter/rcenter-0.6.2.ebuild | 3 ++- |
16 |
2 files changed, 31 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/media-sound/rcenter/files/rcenter-0.6.2-fno-common.patch b/media-sound/rcenter/files/rcenter-0.6.2-fno-common.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..11f3efdd38b |
21 |
--- /dev/null |
22 |
+++ b/media-sound/rcenter/files/rcenter-0.6.2-fno-common.patch |
23 |
@@ -0,0 +1,29 @@ |
24 |
+--- a/button.h |
25 |
++++ b/button.h |
26 |
+@@ -60,8 +60,8 @@ |
27 |
+ button_max = 34 |
28 |
+ }; |
29 |
+ |
30 |
+-char *button_name[button_max]; |
31 |
+-int button_code[button_max]; |
32 |
++extern char *button_name[button_max]; |
33 |
++extern int button_code[button_max]; |
34 |
+ |
35 |
+ unsigned int speaker_code(unsigned int code); |
36 |
+ |
37 |
+--- a/main.h |
38 |
++++ b/main.h |
39 |
+@@ -18,9 +18,9 @@ |
40 |
+ along with this program; if not, write to the Free Software |
41 |
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
42 |
+ */ |
43 |
+-char *midi_device; |
44 |
++extern char *midi_device; |
45 |
+ |
46 |
+-int delay_sec; |
47 |
+-int delay_usec; |
48 |
++extern int delay_sec; |
49 |
++extern int delay_usec; |
50 |
+ |
51 |
+-int string_digit_limit; |
52 |
++extern int string_digit_limit; |
53 |
|
54 |
diff --git a/media-sound/rcenter/rcenter-0.6.2.ebuild b/media-sound/rcenter/rcenter-0.6.2.ebuild |
55 |
index 295c65fb14a..a32acc38076 100644 |
56 |
--- a/media-sound/rcenter/rcenter-0.6.2.ebuild |
57 |
+++ b/media-sound/rcenter/rcenter-0.6.2.ebuild |
58 |
@@ -1,4 +1,4 @@ |
59 |
-# Copyright 1999-2019 Gentoo Authors |
60 |
+# Copyright 1999-2020 Gentoo Authors |
61 |
# Distributed under the terms of the GNU General Public License v2 |
62 |
|
63 |
EAPI=7 |
64 |
@@ -17,6 +17,7 @@ KEYWORDS="amd64 -sparc x86" |
65 |
PATCHES=( |
66 |
"${FILESDIR}"/${P}-makefile.patch |
67 |
"${FILESDIR}"/${P}-Wimplicit-function-declaration.patch |
68 |
+ "${FILESDIR}"/${P}-fno-common.patch |
69 |
) |
70 |
|
71 |
src_configure() { |