commit:     a72cbbc68e0655cadf6eed1e77363b10a663478a
Author:     Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  3 10:43:49 2022 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Sun Apr  3 10:44:45 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a72cbbc6

net-misc/seafile-client: Don't call qmake during build

Fixes call to command that does not exist.

Does not change build process or installed files.

Closes: https://bugs.gentoo.org/836689
Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>

 .../files/seafile-client-8.0.6-select-qt5.patch               | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git 
a/net-misc/seafile-client/files/seafile-client-8.0.6-select-qt5.patch 
b/net-misc/seafile-client/files/seafile-client-8.0.6-select-qt5.patch
index 8b8e6d55aa08..4d3a3d172644 100644
--- a/net-misc/seafile-client/files/seafile-client-8.0.6-select-qt5.patch
+++ b/net-misc/seafile-client/files/seafile-client-8.0.6-select-qt5.patch
@@ -1,8 +1,8 @@
 diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 1c4a444..aae406c 100644
+index 1c4a4447..5747df46 100644
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -133,11 +133,8 @@ ENDIF()
+@@ -133,14 +133,12 @@ ENDIF()
  ####################
  ###### BEGIN: QT configuration
  ####################
@@ -14,5 +14,10 @@ index 1c4a444..aae406c 100644
 +FIND_PACKAGE(Qt5Core)
 +SET(DETECTED_QT_VERSION ${Qt5Core_VERSION})
  MESSAGE("Qt version: ${DETECTED_QT_VERSION}")
++GET_TARGET_PROPERTY(QMAKE_EXECUTABLE_PATH Qt5::qmake IMPORTED_LOCATION)
  EXECUTE_PROCESS(COMMAND
-     bash -c "qmake --version|grep -iE '^using qt version [0-9]'|awk '{print 
$4}'|grep -iE '^[0-9]'|awk -F . '{print $1}'"
+-    bash -c "qmake --version|grep -iE '^using qt version [0-9]'|awk '{print 
$4}'|grep -iE '^[0-9]'|awk -F . '{print $1}'"
++    bash -c "${QMAKE_EXECUTABLE_PATH} --version|grep -iE '^using qt version 
[0-9]'|awk '{print $4}'|grep -iE '^[0-9]'|awk -F . '{print $1}'"
+     OUTPUT_VARIABLE QT_VERSION_MAJOR
+     OUTPUT_STRIP_TRAILING_WHITESPACE)
+ MESSAGE("QT_VERSION_MAJOR: ${QT_VERSION_MAJOR}")

Reply via email to