x11-misc/qterm: ensure that qcollectiongenerator is called from the correct directory
authorMichael Palimaka <kensington@gentoo.org>
Fri, 22 Jan 2016 15:04:31 +0000 (02:04 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Fri, 22 Jan 2016 15:05:31 +0000 (02:05 +1100)
Gentoo-bug: 544108

Package-Manager: portage-2.2.27

x11-misc/qterm/files/qterm-0.5.12-qtbindir.patch [new file with mode: 0644]
x11-misc/qterm/qterm-0.5.12-r1.ebuild

diff --git a/x11-misc/qterm/files/qterm-0.5.12-qtbindir.patch b/x11-misc/qterm/files/qterm-0.5.12-qtbindir.patch
new file mode 100644 (file)
index 0000000..f23af67
--- /dev/null
@@ -0,0 +1,16 @@
+Ensure that qcollectiongenerator is called from the correct directory.
+
+Even though QT_BINARY_DIR is specified, cmake will try PATH first.
+
+Gentoo-bug: 544108
+
+--- a/src/doc/CMakeLists.txt
++++ b/src/doc/CMakeLists.txt
+@@ -9,6 +9,7 @@
+ FIND_PROGRAM(QT_HELP_COLLECTION_GENERATOR
+   qcollectiongenerator
+   PATHS "${QT_BINARY_DIR}"
++  NO_DEFAULT_PATH
+   DOC "qcollectiongenerator used to compile Qt help collection project files")
+ 
+ ADD_CUSTOM_COMMAND(
index ba001304bcf1d3843d7813731094860814186d8f..5c0a75f4c56ce11da4078c2e8fdc22ca5a49e80e 100644 (file)
@@ -34,6 +34,7 @@ PATCHES=(
        "${FILESDIR}/${P}-qt4.patch"
        "${FILESDIR}/${P}-glibc216.patch"
        "${FILESDIR}/${P}-duplicatetarget.patch"
+       "${FILESDIR}/${P}-qtbindir.patch"
 )
 
 src_install() {