1 |
commit: f9f037be81b3eefde94e3bf71e9c97fd997da5c1 |
2 |
Author: Peter Levine <plevine457 <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Aug 1 04:53:38 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 13 11:06:06 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9f037be |
7 |
|
8 |
media-sound/audacious: Fix building with -Werror=terminate using GCC-6 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/show_bug.cgi?id=600882 |
11 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/5264 |
13 |
|
14 |
media-sound/audacious/audacious-3.7.1-r1.ebuild | 4 +++ |
15 |
.../audacious-3.7.1-c++11-throw-in-dtors.patch | 39 ++++++++++++++++++++++ |
16 |
2 files changed, 43 insertions(+) |
17 |
|
18 |
diff --git a/media-sound/audacious/audacious-3.7.1-r1.ebuild b/media-sound/audacious/audacious-3.7.1-r1.ebuild |
19 |
index 800ba90ecbc..808810c14cb 100644 |
20 |
--- a/media-sound/audacious/audacious-3.7.1-r1.ebuild |
21 |
+++ b/media-sound/audacious/audacious-3.7.1-r1.ebuild |
22 |
@@ -48,6 +48,10 @@ src_unpack() { |
23 |
fi |
24 |
} |
25 |
|
26 |
+src_prepare() { |
27 |
+ epatch "${FILESDIR}"/${P}-c++11-throw-in-dtors.patch |
28 |
+} |
29 |
+ |
30 |
src_configure() { |
31 |
if use gtk ;then |
32 |
gtk="--enable-gtk" |
33 |
|
34 |
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 |
35 |
new file mode 100644 |
36 |
index 00000000000..309dbc0319f |
37 |
--- /dev/null |
38 |
+++ b/media-sound/audacious/files/audacious-3.7.1-c++11-throw-in-dtors.patch |
39 |
@@ -0,0 +1,39 @@ |
40 |
+Bug: https://bugs.gentoo.org/600882 |
41 |
+Upstream commit: https://github.com/audacious-media-player/audacious/commit/1cf1a81a16cc70b2d9c78994ad98e26db99943ed |
42 |
+ |
43 |
+From 1cf1a81a16cc70b2d9c78994ad98e26db99943ed Mon Sep 17 00:00:00 2001 |
44 |
+From: John Lindgren <john.lindgren@×××.com> |
45 |
+Date: Sun, 8 May 2016 22:39:00 -0400 |
46 |
+Subject: [PATCH] Fix compiler warning. |
47 |
+ |
48 |
+--- |
49 |
+ src/libaudcore/objects.h | 2 +- |
50 |
+ src/libaudcore/stringbuf.cc | 2 +- |
51 |
+ 2 files changed, 2 insertions(+), 2 deletions(-) |
52 |
+ |
53 |
+diff --git a/src/libaudcore/objects.h b/src/libaudcore/objects.h |
54 |
+index fd57f5e15..4b98cc624 100644 |
55 |
+--- a/src/libaudcore/objects.h |
56 |
++++ b/src/libaudcore/objects.h |
57 |
+@@ -250,7 +250,7 @@ class StringBuf |
58 |
+ } |
59 |
+ |
60 |
+ // only allowed for top (or null) string |
61 |
+- ~StringBuf (); |
62 |
++ ~StringBuf () noexcept (false); |
63 |
+ |
64 |
+ // only allowed for top (or null) string |
65 |
+ void resize (int size); |
66 |
+diff --git a/src/libaudcore/stringbuf.cc b/src/libaudcore/stringbuf.cc |
67 |
+index 041b1e9de..fc646f6ab 100644 |
68 |
+--- a/src/libaudcore/stringbuf.cc |
69 |
++++ b/src/libaudcore/stringbuf.cc |
70 |
+@@ -139,7 +139,7 @@ EXPORT void StringBuf::resize (int len) |
71 |
+ } |
72 |
+ } |
73 |
+ |
74 |
+-EXPORT StringBuf::~StringBuf () |
75 |
++EXPORT StringBuf::~StringBuf () noexcept (false) |
76 |
+ { |
77 |
+ if (m_data) |
78 |
+ { |