1 |
commit: e99fef041b5cbe5a672d6312699859a03ce4ec96 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 12 04:36:42 2017 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 12 04:37:23 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e99fef04 |
7 |
|
8 |
dev-cpp/gstreamermm: fix compilation with newer gcc |
9 |
|
10 |
Also filter out -Werror for tests compilation, but those fail to compile further along then. |
11 |
|
12 |
Gentoo-bug: 600296 |
13 |
|
14 |
dev-cpp/gstreamermm/files/1.4.3-fix-compile.patch | 23 +++++++++++++++++++++++ |
15 |
dev-cpp/gstreamermm/gstreamermm-1.4.3.ebuild | 6 +++++- |
16 |
2 files changed, 28 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/dev-cpp/gstreamermm/files/1.4.3-fix-compile.patch b/dev-cpp/gstreamermm/files/1.4.3-fix-compile.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..6ccf0e13ce0 |
21 |
--- /dev/null |
22 |
+++ b/dev-cpp/gstreamermm/files/1.4.3-fix-compile.patch |
23 |
@@ -0,0 +1,23 @@ |
24 |
+From c5006faf05bc4b46767d30f42bcb6157836b7540 Mon Sep 17 00:00:00 2001 |
25 |
+From: Marcin Kolny <marcin.kolny@×××××.com> |
26 |
+Date: Sat, 17 Sep 2016 22:49:34 +0200 |
27 |
+Subject: Fix warnings |
28 |
+ |
29 |
+--- |
30 |
+ gstreamer/gstreamermm/check.cc | 2 +- |
31 |
+ |
32 |
+leio: Trimmed patch down to only ThrowIf that makes compilation fail with newer gcc, not just warn |
33 |
+ |
34 |
+diff --git a/gstreamer/gstreamermm/check.cc b/gstreamer/gstreamermm/check.cc |
35 |
+index d620435..a0d323d 100644 |
36 |
+--- a/gstreamer/gstreamermm/check.cc |
37 |
++++ b/gstreamer/gstreamermm/check.cc |
38 |
+@@ -54,7 +54,7 @@ RefPtr<Element> Check::_Check::setup_element (const ustring& factory) |
39 |
+ |
40 |
+ element = ElementFactory::create_element (factory, factory); |
41 |
+ |
42 |
+- ThrowIf (element, "Could not create a '" + factory + "' element"); |
43 |
++ ThrowIf (!!element, "Could not create a '" + factory + "' element"); |
44 |
+ CheckRefCount (element->gobj(), factory, 1); |
45 |
+ |
46 |
+ return element; |
47 |
|
48 |
diff --git a/dev-cpp/gstreamermm/gstreamermm-1.4.3.ebuild b/dev-cpp/gstreamermm/gstreamermm-1.4.3.ebuild |
49 |
index 463e498f380..4f8e13d9c73 100644 |
50 |
--- a/dev-cpp/gstreamermm/gstreamermm-1.4.3.ebuild |
51 |
+++ b/dev-cpp/gstreamermm/gstreamermm-1.4.3.ebuild |
52 |
@@ -1,4 +1,4 @@ |
53 |
-# Copyright 1999-2015 Gentoo Foundation |
54 |
+# Copyright 1999-2017 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
|
57 |
EAPI="5" |
58 |
@@ -38,12 +38,16 @@ DEPEND="${RDEPEND} |
59 |
# but that's okay, because the rest of dev-cpp/*mm stuff does the same |
60 |
|
61 |
src_prepare() { |
62 |
+ epatch "${FILESDIR}"/${PV}-fix-compile.patch |
63 |
+ |
64 |
if ! use examples; then |
65 |
# don't waste time building examples |
66 |
sed -e 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' \ |
67 |
-i Makefile.am Makefile.in || die |
68 |
fi |
69 |
|
70 |
+ sed -e 's/ -Werror/ /' -i tests/Makefile.am tests/Makefile.in || die |
71 |
+ |
72 |
gnome2_src_prepare |
73 |
append-cxxflags -std=c++11 #568254 , fixed in master |
74 |
} |