media-tv/me-tv: Fix building with GCC6 and -Werror=terminate (bug #613426)
authorPeter-Levine <plevine457@gmail.com>
Tue, 28 Mar 2017 01:07:02 +0000 (21:07 -0400)
committerDavid Seifert <soap@gentoo.org>
Sun, 16 Apr 2017 18:57:20 +0000 (20:57 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4308

media-tv/me-tv/files/me-tv-1.4.0.10-C++11-throw-in-destructors.patch [new file with mode: 0644]
media-tv/me-tv/me-tv-1.4.0.10.ebuild

diff --git a/media-tv/me-tv/files/me-tv-1.4.0.10-C++11-throw-in-destructors.patch b/media-tv/me-tv/files/me-tv-1.4.0.10-C++11-throw-in-destructors.patch
new file mode 100644 (file)
index 0000000..322a0d6
--- /dev/null
@@ -0,0 +1,35 @@
+--- a/server/data.cc
++++ b/server/data.cc
+@@ -68,7 +68,7 @@
+       }
+ }
+ 
+-Statement::~Statement()
++Statement::~Statement() NOEXCEPT
+ {
+       if (sqlite3_finalize(statement) != 0)
+       {
+--- a/server/data.h
++++ b/server/data.h
+@@ -26,6 +26,12 @@
+ #include <linux/dvb/frontend.h>
+ #include <glibmm.h>
+ 
++#if __cplusplus >= 201103L
++#define NOEXCEPT noexcept(false)
++#else
++#define NOEXCEPT
++#endif
++
+ typedef std::list<Glib::ustring> StringList;
+ 
+ namespace Data
+@@ -68,7 +74,7 @@
+ 
+       public:
+               Statement(Connection& connection, const Glib::ustring& command);
+-              ~Statement();
++              ~Statement() NOEXCEPT;
+ 
+               void reset();
+               guint step();
index f508beeb224e465662e1063319887986c3dc29ee..89efd2f0c89bb103f618d5f9fa01948d07c2285d 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -34,6 +34,7 @@ DEPEND="${RDEPEND}
 src_prepare() {
        append-cxxflags -std=c++11
        epatch "${FILESDIR}"/${P}-gcc47.patch
+       epatch "${FILESDIR}"/${P}-C++11-throw-in-destructors.patch
        eautoreconf
 }