media-sound/xmms2: tweak for gcc-10
authorSergei Trofimovich <slyfox@gentoo.org>
Tue, 28 Jan 2020 19:58:29 +0000 (19:58 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Tue, 28 Jan 2020 19:58:35 +0000 (19:58 +0000)
Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/706940
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
media-sound/xmms2/files/xmms2-0.8_p20161122-gcc-10.patch [new file with mode: 0644]
media-sound/xmms2/xmms2-0.8_p20161122-r5.ebuild

diff --git a/media-sound/xmms2/files/xmms2-0.8_p20161122-gcc-10.patch b/media-sound/xmms2/files/xmms2-0.8_p20161122-gcc-10.patch
new file mode 100644 (file)
index 0000000..29a8311
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/lib/s4/tests/s4/t_transactions.c
++++ b/src/lib/s4/tests/s4/t_transactions.c
+@@ -19,7 +19,7 @@
+ #include <glib.h>
+ #include <glib/gstdio.h>
+-s4_t *s4;
++extern s4_t *s4;
+ s4_val_t *val;
+ SETUP (Transactions) {
index 68f9fc6c4c2ea6f72e040adcb5902813023758d7..393d601eabd9924eceefefc46ece9a9b17398475 100644 (file)
@@ -143,6 +143,9 @@ src_prepare() {
        # C++ client dangling reference: https://github.com/xmms2/xmms2-devel/pull/5
        eapply "${FILESDIR}/${P}"-cpp-client.patch
 
+       # gcc-10 stopped putting globals into common section
+       eapply "${FILESDIR}/${P}"-gcc-10.patch
+
        eapply_user
 }