Bug#1025064: qt6-scxml FTCBFS: QT_HOST_PATH and more
Source: qt6-scxml
Version: 6.3.1-2
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
qt6-scxml fails to cross build from source. It's the usual QT_HOST_PATH
thing together with requiring a native tool and the usual variables. I'm
attaching the tested patch for your convenience.
Helmut
diff --minimal -Nru qt6-scxml-6.3.1/debian/changelog qt6-scxml-6.3.1/debian/changelog
--- qt6-scxml-6.3.1/debian/changelog 2022-08-15 19:23:40.000000000 +0200
+++ qt6-scxml-6.3.1/debian/changelog 2022-11-28 10:53:05.000000000 +0100
@@ -1,3 +1,12 @@
+qt6-scxml (6.3.1-2.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Pass QT_HOST_PATH and QT_HOST_PATH_CMAKE_DIR.
+ + B-D: qt6-scxml-dev:native <cross>.
+
+ -- Helmut Grohne <helmut@subdivi.de> Mon, 28 Nov 2022 10:53:05 +0100
+
qt6-scxml (6.3.1-2) unstable; urgency=medium
[ Patrick Franz ]
diff --minimal -Nru qt6-scxml-6.3.1/debian/control qt6-scxml-6.3.1/debian/control
--- qt6-scxml-6.3.1/debian/control 2022-08-15 18:52:08.000000000 +0200
+++ qt6-scxml-6.3.1/debian/control 2022-11-28 10:53:05.000000000 +0100
@@ -18,6 +18,7 @@
qt6-base-private-dev (>= 6.3.1+dfsg~),
qt6-declarative-dev (>= 6.3.1+dfsg~),
qt6-declarative-private-dev (>= 6.3.1+dfsg~),
+ qt6-scxml-dev:native <cross>,
xauth <!nocheck>,
xvfb <!nocheck>,
Standards-Version: 4.6.1
diff --minimal -Nru qt6-scxml-6.3.1/debian/rules qt6-scxml-6.3.1/debian/rules
--- qt6-scxml-6.3.1/debian/rules 2021-12-07 10:44:16.000000000 +0100
+++ qt6-scxml-6.3.1/debian/rules 2022-11-28 10:53:05.000000000 +0100
@@ -4,12 +4,21 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+cmake_extra_args :=
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+cmake_extra_args += \
+ -DQT_HOST_PATH=/usr \
+ -DQT_HOST_PATH_CMAKE_DIR=/usr/lib/$(DEB_BUILD_MULTIARCH)/cmake \
+ -DQT_BUILD_TOOLS_WHEN_CROSSCOMPILING=ON
+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 to: