Bug#1030035: qt6-charts FTCBFS: does not pass QT_HOST_PATH
Source: qt6-charts
Version: 6.4.2-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
qt6-charts fails to cross build from source, because it does not pass
QT_HOST_PATH. I'm attaching a patch for your convenience.
Helmut
diff --minimal -Nru qt6-charts-6.4.2/debian/changelog qt6-charts-6.4.2/debian/changelog
--- qt6-charts-6.4.2/debian/changelog 2023-01-24 12:26:24.000000000 +0100
+++ qt6-charts-6.4.2/debian/changelog 2023-01-30 13:18:31.000000000 +0100
@@ -1,3 +1,10 @@
+qt6-charts (6.4.2-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Pass QT_HOST_PATH. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Mon, 30 Jan 2023 13:18:31 +0100
+
qt6-charts (6.4.2-1) unstable; urgency=medium
[ Patrick Franz ]
diff --minimal -Nru qt6-charts-6.4.2/debian/rules qt6-charts-6.4.2/debian/rules
--- qt6-charts-6.4.2/debian/rules 2022-12-30 16:46:01.000000000 +0100
+++ qt6-charts-6.4.2/debian/rules 2023-01-30 13:18:27.000000000 +0100
@@ -3,13 +3,20 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
+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 -- \
--log-level=STATUS \
- -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: