public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mart Raudsepp" <leio@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/gstreamermm/files/, dev-cpp/gstreamermm/
Date: Wed, 12 Apr 2017 04:37:40 +0000 (UTC)	[thread overview]
Message-ID: <1491971843.e99fef041b5cbe5a672d6312699859a03ce4ec96.leio@gentoo> (raw)

commit:     e99fef041b5cbe5a672d6312699859a03ce4ec96
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 12 04:36:42 2017 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Wed Apr 12 04:37:23 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e99fef04

dev-cpp/gstreamermm: fix compilation with newer gcc

Also filter out -Werror for tests compilation, but those fail to compile further along then.

Gentoo-bug: 600296

 dev-cpp/gstreamermm/files/1.4.3-fix-compile.patch | 23 +++++++++++++++++++++++
 dev-cpp/gstreamermm/gstreamermm-1.4.3.ebuild      |  6 +++++-
 2 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/dev-cpp/gstreamermm/files/1.4.3-fix-compile.patch b/dev-cpp/gstreamermm/files/1.4.3-fix-compile.patch
new file mode 100644
index 00000000000..6ccf0e13ce0
--- /dev/null
+++ b/dev-cpp/gstreamermm/files/1.4.3-fix-compile.patch
@@ -0,0 +1,23 @@
+From c5006faf05bc4b46767d30f42bcb6157836b7540 Mon Sep 17 00:00:00 2001
+From: Marcin Kolny <marcin.kolny@gmail.com>
+Date: Sat, 17 Sep 2016 22:49:34 +0200
+Subject: Fix warnings
+
+---
+ gstreamer/gstreamermm/check.cc   |  2 +-
+
+leio: Trimmed patch down to only ThrowIf that makes compilation fail with newer gcc, not just warn
+
+diff --git a/gstreamer/gstreamermm/check.cc b/gstreamer/gstreamermm/check.cc
+index d620435..a0d323d 100644
+--- a/gstreamer/gstreamermm/check.cc
++++ b/gstreamer/gstreamermm/check.cc
+@@ -54,7 +54,7 @@ RefPtr<Element> Check::_Check::setup_element (const ustring& factory)
+ 
+     element = ElementFactory::create_element (factory, factory);
+ 
+-    ThrowIf (element, "Could not create a '" + factory + "' element");
++    ThrowIf (!!element, "Could not create a '" + factory + "' element");
+     CheckRefCount (element->gobj(), factory, 1);
+ 
+     return element;

diff --git a/dev-cpp/gstreamermm/gstreamermm-1.4.3.ebuild b/dev-cpp/gstreamermm/gstreamermm-1.4.3.ebuild
index 463e498f380..4f8e13d9c73 100644
--- a/dev-cpp/gstreamermm/gstreamermm-1.4.3.ebuild
+++ b/dev-cpp/gstreamermm/gstreamermm-1.4.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -38,12 +38,16 @@ DEPEND="${RDEPEND}
 # but that's okay, because the rest of dev-cpp/*mm stuff does the same
 
 src_prepare() {
+	epatch "${FILESDIR}"/${PV}-fix-compile.patch
+
 	if ! use examples; then
 		# don't waste time building examples
 		sed -e 's/^\(SUBDIRS =.*\)examples\(.*\)$/\1\2/' \
 			-i Makefile.am Makefile.in || die
 	fi
 
+	sed -e 's/ -Werror/ /' -i tests/Makefile.am tests/Makefile.in || die
+
 	gnome2_src_prepare
 	append-cxxflags -std=c++11 #568254 , fixed in master
 }


             reply	other threads:[~2017-04-12  4:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-12  4:37 Mart Raudsepp [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-08-20 22:47 [gentoo-commits] repo/gentoo:master commit in: dev-cpp/gstreamermm/files/, dev-cpp/gstreamermm/ Gilles Dartiguelongue
2017-11-01 15:41 Mart Raudsepp
2017-12-17  1:04 Mart Raudsepp
2021-08-04 22:28 Matt Turner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1491971843.e99fef041b5cbe5a672d6312699859a03ce4ec96.leio@gentoo \
    --to=leio@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox