media-sound/audacious: Fix building with -Werror=terminate using GCC-6
authorPeter Levine <plevine457@gmail.com>
Tue, 1 Aug 2017 04:53:38 +0000 (00:53 -0400)
committerDavid Seifert <soap@gentoo.org>
Sun, 13 Aug 2017 11:06:06 +0000 (13:06 +0200)
Bug: https://bugs.gentoo.org/show_bug.cgi?id=600882
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/5264

media-sound/audacious/audacious-3.7.1-r1.ebuild
media-sound/audacious/files/audacious-3.7.1-c++11-throw-in-dtors.patch [new file with mode: 0644]

index 800ba90ecbcce1d2be1f97eb2f6b97b469009b5d..808810c14cbc3616d83ac4da5ca3e2c2b8af0075 100644 (file)
@@ -48,6 +48,10 @@ src_unpack() {
        fi
 }
 
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-c++11-throw-in-dtors.patch
+}
+
 src_configure() {
        if use gtk ;then
                gtk="--enable-gtk"
diff --git a/media-sound/audacious/files/audacious-3.7.1-c++11-throw-in-dtors.patch b/media-sound/audacious/files/audacious-3.7.1-c++11-throw-in-dtors.patch
new file mode 100644 (file)
index 0000000..309dbc0
--- /dev/null
@@ -0,0 +1,39 @@
+Bug: https://bugs.gentoo.org/600882
+Upstream commit: https://github.com/audacious-media-player/audacious/commit/1cf1a81a16cc70b2d9c78994ad98e26db99943ed
+
+From 1cf1a81a16cc70b2d9c78994ad98e26db99943ed Mon Sep 17 00:00:00 2001
+From: John Lindgren <john.lindgren@aol.com>
+Date: Sun, 8 May 2016 22:39:00 -0400
+Subject: [PATCH] Fix compiler warning.
+
+---
+ src/libaudcore/objects.h    | 2 +-
+ src/libaudcore/stringbuf.cc | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/libaudcore/objects.h b/src/libaudcore/objects.h
+index fd57f5e15..4b98cc624 100644
+--- a/src/libaudcore/objects.h
++++ b/src/libaudcore/objects.h
+@@ -250,7 +250,7 @@ class StringBuf
+     }
+     // only allowed for top (or null) string
+-    ~StringBuf ();
++    ~StringBuf () noexcept (false);
+     // only allowed for top (or null) string
+     void resize (int size);
+diff --git a/src/libaudcore/stringbuf.cc b/src/libaudcore/stringbuf.cc
+index 041b1e9de..fc646f6ab 100644
+--- a/src/libaudcore/stringbuf.cc
++++ b/src/libaudcore/stringbuf.cc
+@@ -139,7 +139,7 @@ EXPORT void StringBuf::resize (int len)
+     }
+ }
+-EXPORT StringBuf::~StringBuf ()
++EXPORT StringBuf::~StringBuf () noexcept (false)
+ {
+     if (m_data)
+     {