Source: qt6-base
Version: 6.9.2+dfsg-4
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs

qt6-base fails to cross build from source (e.g. for armhf), because
qt-android-runner.py is missing at the dh_install stage. The
installation of this file is conditional to CROSS_COMPILATION, which is
not what we want. I suggest making it overridable via
QT_FORCE_BUILD_TOOLS as is done elsewhere already. Please find a patch
attached for your convenience.

Helmut
--- qt6-base-6.9.2+dfsg.orig/cmake/QtWrapperScriptHelpers.cmake
+++ qt6-base-6.9.2+dfsg/cmake/QtWrapperScriptHelpers.cmake
@@ -236,7 +236,7 @@
     qt_internal_create_qt_configure_part_wrapper_script("STANDALONE_TESTS")
     qt_internal_create_qt_configure_part_wrapper_script("STANDALONE_EXAMPLES")
 
-    if(NOT CMAKE_CROSSCOMPILING)
+    if(QT_FORCE_BUILD_TOOLS OR NOT CMAKE_CROSSCOMPILING)
         qt_internal_create_qt_android_runner_wrapper_script()
     endif()
 endfunction()

Reply via email to