Source: qt6-websockets
Version: 6.3.1-2
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

qt6-websockets fails to cross build from source, because it does not
pass QT_HOST_PATH. I'm attaching the usual patch.

Helmut
diff --minimal -Nru qt6-websockets-6.3.1/debian/changelog 
qt6-websockets-6.3.1/debian/changelog
--- qt6-websockets-6.3.1/debian/changelog       2022-08-15 19:24:16.000000000 
+0200
+++ qt6-websockets-6.3.1/debian/changelog       2022-11-23 21:18:22.000000000 
+0100
@@ -1,3 +1,10 @@
+qt6-websockets (6.3.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass -DQT_HOST_PATH. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 23 Nov 2022 21:18:22 +0100
+
 qt6-websockets (6.3.1-2) unstable; urgency=medium
 
   [ Patrick Franz ]
diff --minimal -Nru qt6-websockets-6.3.1/debian/rules 
qt6-websockets-6.3.1/debian/rules
--- qt6-websockets-6.3.1/debian/rules   2021-11-24 14:07:16.000000000 +0100
+++ qt6-websockets-6.3.1/debian/rules   2022-11-23 21:18:18.000000000 +0100
@@ -3,12 +3,18 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+cmake_extra_args :=
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+cmake_extra_args += -DQT_HOST_PATH=/usr
+endif
+
 %:
        dh $@ --with pkgkde_symbolshelper --buildsystem=cmake+ninja
 
 override_dh_auto_configure:
        dh_auto_configure -- \
-               -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
+               -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
+               $(cmake_extra_args)
 
 execute_after_dh_auto_install:
        # Reproducible builds: remove build paths from .prl files

Reply via email to