summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-08-08 18:54:00 +0200
committerDavid Seifert <soap@gentoo.org>2020-08-08 18:54:00 +0200
commit05773148d8b7921a9b51f7ad64ed63b0d7ac2ee7 (patch)
tree97c09363d01fdebfafeea355683fa7e3bfd75de9 /media-sound/rcenter
parentmedia-sound/gimmix: Fix building under -fno-common (diff)
downloadgentoo-05773148d8b7921a9b51f7ad64ed63b0d7ac2ee7.tar.gz
gentoo-05773148d8b7921a9b51f7ad64ed63b0d7ac2ee7.tar.bz2
gentoo-05773148d8b7921a9b51f7ad64ed63b0d7ac2ee7.zip
media-sound/rcenter: Fix building under -fno-common
Closes: https://bugs.gentoo.org/707648 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-sound/rcenter')
-rw-r--r--media-sound/rcenter/files/rcenter-0.6.2-fno-common.patch29
-rw-r--r--media-sound/rcenter/rcenter-0.6.2.ebuild3
2 files changed, 31 insertions, 1 deletions
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
new file mode 100644
index 000000000000..11f3efdd38b5
--- /dev/null
+++ b/media-sound/rcenter/files/rcenter-0.6.2-fno-common.patch
@@ -0,0 +1,29 @@
+--- a/button.h
++++ b/button.h
+@@ -60,8 +60,8 @@
+ button_max = 34
+ };
+
+-char *button_name[button_max];
+-int button_code[button_max];
++extern char *button_name[button_max];
++extern int button_code[button_max];
+
+ unsigned int speaker_code(unsigned int code);
+
+--- a/main.h
++++ b/main.h
+@@ -18,9 +18,9 @@
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+-char *midi_device;
++extern char *midi_device;
+
+-int delay_sec;
+-int delay_usec;
++extern int delay_sec;
++extern int delay_usec;
+
+-int string_digit_limit;
++extern int string_digit_limit;
diff --git a/media-sound/rcenter/rcenter-0.6.2.ebuild b/media-sound/rcenter/rcenter-0.6.2.ebuild
index 295c65fb14a2..a32acc38076b 100644
--- a/media-sound/rcenter/rcenter-0.6.2.ebuild
+++ b/media-sound/rcenter/rcenter-0.6.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -17,6 +17,7 @@ KEYWORDS="amd64 -sparc x86"
PATCHES=(
"${FILESDIR}"/${P}-makefile.patch
"${FILESDIR}"/${P}-Wimplicit-function-declaration.patch
+ "${FILESDIR}"/${P}-fno-common.patch
)
src_configure() {