From c77a4c00380e621c98609acdda29f135bfa37b99 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 28 Jan 2020 19:58:29 +0000 Subject: [PATCH] media-sound/xmms2: tweak for gcc-10 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- .../xmms2/files/xmms2-0.8_p20161122-gcc-10.patch | 11 +++++++++++ media-sound/xmms2/xmms2-0.8_p20161122-r5.ebuild | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 media-sound/xmms2/files/xmms2-0.8_p20161122-gcc-10.patch 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 index 000000000000..29a8311d2197 --- /dev/null +++ b/media-sound/xmms2/files/xmms2-0.8_p20161122-gcc-10.patch @@ -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 + #include + +-s4_t *s4; ++extern s4_t *s4; + s4_val_t *val; + + SETUP (Transactions) { diff --git a/media-sound/xmms2/xmms2-0.8_p20161122-r5.ebuild b/media-sound/xmms2/xmms2-0.8_p20161122-r5.ebuild index 68f9fc6c4c2e..393d601eabd9 100644 --- a/media-sound/xmms2/xmms2-0.8_p20161122-r5.ebuild +++ b/media-sound/xmms2/xmms2-0.8_p20161122-r5.ebuild @@ -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 } -- 2.26.2