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

qt6-webchannel fails to cross build from source, because it does not
pass QT_HOST_PATH to cmake. Please consider applying the attached patch
to fix that.

Helmut
diff --minimal -Nru qt6-webchannel-6.3.1/debian/changelog 
qt6-webchannel-6.3.1/debian/changelog
--- qt6-webchannel-6.3.1/debian/changelog       2022-08-15 19:24:11.000000000 
+0200
+++ qt6-webchannel-6.3.1/debian/changelog       2022-10-30 00:51:53.000000000 
+0200
@@ -1,3 +1,10 @@
+qt6-webchannel (6.3.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass QT_HOST_PATH. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 30 Oct 2022 00:51:53 +0200
+
 qt6-webchannel (6.3.1-2) unstable; urgency=medium
 
   [ Patrick Franz ]
diff --minimal -Nru qt6-webchannel-6.3.1/debian/rules 
qt6-webchannel-6.3.1/debian/rules
--- qt6-webchannel-6.3.1/debian/rules   2021-11-25 00:17:42.000000000 +0100
+++ qt6-webchannel-6.3.1/debian/rules   2022-10-30 00:51:52.000000000 +0200
@@ -3,12 +3,19 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+extra_cmake_args :=
+
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+extra_cmake_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) \
+               $(extra_cmake_args)
 
 execute_after_dh_auto_install:
        # Reproducible builds: remove build paths from .prl files

Reply via email to