net-libs/signon-oauth2: avoid build failure when unused dependency is not installed
authorMichael Palimaka <kensington@gentoo.org>
Wed, 28 Oct 2015 13:11:24 +0000 (00:11 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Wed, 28 Oct 2015 13:11:51 +0000 (00:11 +1100)
Gentoo-bug: 564316

Package-Manager: portage-2.2.20.1

net-libs/signon-oauth2/files/signon-oauth2-0.21-unused-dependency.patch [new file with mode: 0644]
net-libs/signon-oauth2/signon-oauth2-0.21.ebuild

diff --git a/net-libs/signon-oauth2/files/signon-oauth2-0.21-unused-dependency.patch b/net-libs/signon-oauth2/files/signon-oauth2-0.21-unused-dependency.patch
new file mode 100644 (file)
index 0000000..3e6656d
--- /dev/null
@@ -0,0 +1,16 @@
+Qt5XmlPatterns is not actually used, but build will fail if it's missing.
+
+Gentoo-bug: 564316
+
+--- src/src.pro
++++ src/src.pro
+@@ -4,8 +4,7 @@
+ TARGET = oauth2plugin
+ DESTDIR = lib/signon
+ QT += core \
+-    network \
+-    xmlpatterns
++    network
+ QT -= gui
+ CONFIG += plugin \
+     build_all \
index 2c5b49bc870f7e79f0439a314c898b4cb4f0ad23..2bbabd6efc1b5cc7798eade941f9287014aa7cd4 100644 (file)
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-inherit qmake-utils
+inherit eutils qmake-utils
 
 DESCRIPTION="OAuth2 plugin for Signon daemon"
 HOMEPAGE="https://01.org/gsso/"
@@ -30,6 +30,8 @@ src_prepare() {
        else
                sed -i -e '/^INSTALLS.*/,+1d' tests/tests.pro || die "couldn't remove tests from install target"
        fi
+
+       epatch "${FILESDIR}/${P}-unused-dependency.patch"
 }
 
 src_configure() {