commit:     d250871ce4861738d2cbefab9e06e5e43ba99ab7
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 21 17:29:22 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Sep 21 17:29:32 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d250871c

media-libs/herqq: fix build with GCC 6

Patch-by: Peter Levine <plevine457 <AT> gmail.com>
Gentoo-bug: 594188

Package-Manager: portage-2.3.1

 media-libs/herqq/files/herqq-1.0.0-gcc6.patch | 24 ++++++++++++++++++++++++
 media-libs/herqq/herqq-1.0.0-r2.ebuild        |  3 ++-
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/media-libs/herqq/files/herqq-1.0.0-gcc6.patch 
b/media-libs/herqq/files/herqq-1.0.0-gcc6.patch
new file mode 100644
index 00000000..a30d86e
--- /dev/null
+++ b/media-libs/herqq/files/herqq-1.0.0-gcc6.patch
@@ -0,0 +1,24 @@
+Fix build with GCC 6.
+
+Gentoo-bug: 594188
+
+--- a/hupnp/src/devicehosting/devicehost/hservermodel_creator_p.cpp
++++ b/hupnp/src/devicehosting/devicehost/hservermodel_creator_p.cpp
+@@ -493,7 +493,7 @@
+             QString("Failed to initialize device [%1]").arg(
+                 deviceInfo.udn().toString());
+ 
+-        return false;
++        return NULL;
+     }
+ 
+     device->h_ptr->m_deviceDescription =
+@@ -560,7 +560,7 @@
+                     "[%2]").arg(device->info().deviceType().toString(),
+                                 dt.toString());
+ 
+-                return false;
++                return NULL;
+             }
+         }
+     }

diff --git a/media-libs/herqq/herqq-1.0.0-r2.ebuild 
b/media-libs/herqq/herqq-1.0.0-r2.ebuild
index 6d07708..eb6cba2 100644
--- a/media-libs/herqq/herqq-1.0.0-r2.ebuild
+++ b/media-libs/herqq/herqq-1.0.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -25,6 +25,7 @@ DEPEND="${RDEPEND}
 "
 
 DOCS=( hupnp/ChangeLog )
+PATCHES=( "${FILESDIR}/${P}-gcc6.patch" )
 
 src_prepare() {
        # fix the .pro file for multilib issues

Reply via email to