commit:     f9f037be81b3eefde94e3bf71e9c97fd997da5c1
Author:     Peter Levine <plevine457 <AT> gmail <DOT> com>
AuthorDate: Tue Aug  1 04:53:38 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Aug 13 11:06:06 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9f037be

media-sound/audacious: Fix building with -Werror=terminate using GCC-6

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    |  4 +++
 .../audacious-3.7.1-c++11-throw-in-dtors.patch     | 39 ++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/media-sound/audacious/audacious-3.7.1-r1.ebuild 
b/media-sound/audacious/audacious-3.7.1-r1.ebuild
index 800ba90ecbc..808810c14cb 100644
--- a/media-sound/audacious/audacious-3.7.1-r1.ebuild
+++ b/media-sound/audacious/audacious-3.7.1-r1.ebuild
@@ -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
index 00000000000..309dbc0319f
--- /dev/null
+++ b/media-sound/audacious/files/audacious-3.7.1-c++11-throw-in-dtors.patch
@@ -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 <[email protected]>
+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)
+     {

Reply via email to