Source: lomiri-online-accounts
Version: 0.16-3
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

lomiri-online-accounts successfully cross builds a broken package. The
location for hosting QML plugins uses the build architecture multiarch
tuple and therefore the resulting packages are unusable. The root cause
here is using the build architecture qmake for determining the location
of QML plugins. Debhelper supplies -DQMAKE_EXECUTABLE=... to CMake
projects so just using that variable fixes the problem at hand. I hope
this approach is suitable for upstream and am attaching a patch for your
convenience.

Helmut
--- lomiri-online-accounts-0.16.orig/CMakeLists.txt
+++ lomiri-online-accounts-0.16/CMakeLists.txt
@@ -13,6 +13,7 @@
 
 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}")
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra -std=c++11")
+set(QMAKE_EXECUTABLE qmake CACHE STRING "qmake command name or location")
 
 string(TOLOWER "${CMAKE_BUILD_TYPE}" cmake_build_type_lower) # Build types should always be lowercase but sometimes they are not.
 
@@ -37,7 +38,7 @@
 join_paths(PC_INCLUDEDIR "\${prefix}" "${CMAKE_INSTALL_INCLUDEDIR}")
 
 execute_process(
-    COMMAND qmake -query QT_INSTALL_QML
+    COMMAND ${QMAKE_EXECUTABLE} -query QT_INSTALL_QML
     OUTPUT_VARIABLE QT_INSTALL_QML
     OUTPUT_STRIP_TRAILING_WHITESPACE
 )

Reply via email to