Source: lomiri-weather-app
Version: 6.2.0-1
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

lomiri-weather-app successfully cross builds a broken package. Since it
trips lintian, we track this as a cross build failure. The detected qml
plugin installation location ends up being for the build architecture.
The root cause is that a bare qmake is used for discover this location
as opposed to a triplet-prefixed one matching the host architecture.
debhelper substitutes QMAKE_EXECUTABLE and using that fixes things here.
I'm attaching a patch for your convenience. Please consider forwarding
it upstream.

Helmut
--- lomiri-weather-app-6.2.0.orig/CMakeLists.txt
+++ lomiri-weather-app-6.2.0/CMakeLists.txt
@@ -112,8 +112,11 @@
   set(ICON ${ICON_DIR}${ICON})
   set(SPLASH_DIR ${DATA_DIR}/)
   set(SPLASH ${SPLASH_DIR}${SPLASH})
+  if(NOT QMAKE_EXECUTABLE)
+    set(QMAKE_EXECUTABLE qmake)
+  endif()
   execute_process(
-    COMMAND qmake -query QT_INSTALL_QML
+    COMMAND ${QMAKE_EXECUTABLE} -query QT_INSTALL_QML
     OUTPUT_VARIABLE QT_IMPORTS_DIR
     OUTPUT_STRIP_TRAILING_WHITESPACE
   )

Reply via email to