[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1023158: qt6-quicktimeline FTCBFS: does not pass QT_HOST_PATH



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

qt6-quicktimeline fails to cross build from source, because it does not
pass QT_HOST_PATH to cmake. I'm attaching a patch for your convenience.

Helmut
diff --minimal -Nru qt6-quicktimeline-6.3.1/debian/changelog qt6-quicktimeline-6.3.1/debian/changelog
--- qt6-quicktimeline-6.3.1/debian/changelog	2022-08-15 19:23:31.000000000 +0200
+++ qt6-quicktimeline-6.3.1/debian/changelog	2022-10-30 21:14:56.000000000 +0100
@@ -1,3 +1,10 @@
+qt6-quicktimeline (6.3.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass QT_HOST_PATH. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sun, 30 Oct 2022 21:14:56 +0100
+
 qt6-quicktimeline (6.3.1-2) unstable; urgency=medium
 
   [ Patrick Franz ]
diff --minimal -Nru qt6-quicktimeline-6.3.1/debian/rules qt6-quicktimeline-6.3.1/debian/rules
--- qt6-quicktimeline-6.3.1/debian/rules	2021-11-17 22:21:04.000000000 +0100
+++ qt6-quicktimeline-6.3.1/debian/rules	2022-10-30 21:14:55.000000000 +0100
@@ -4,6 +4,12 @@
 # Use already defined DEB_HOST_* variables.
 include /usr/share/dpkg/architecture.mk
 
+cmake_extra_args :=
+
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+cmake_extra_args += -DQT_HOST_PATH=/usr
+endif
+
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 %:
@@ -11,7 +17,8 @@
 
 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: