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

Bug#1030384: qt6-serialport FTCBFS: does not pass QT_HOST_PATH to cmake



Source: qt6-serialport
Version: 6.4.2-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

qt6-serialport fails to cross build from source, because it does not
pass QT_HOST_PATH to cmake. I've attached the usual patch for your
convenience.

Helmut
diff --minimal -Nru qt6-serialport-6.4.2/debian/changelog qt6-serialport-6.4.2/debian/changelog
--- qt6-serialport-6.4.2/debian/changelog	2023-01-24 12:38:10.000000000 +0100
+++ qt6-serialport-6.4.2/debian/changelog	2023-02-03 14:40:13.000000000 +0100
@@ -1,3 +1,10 @@
+qt6-serialport (6.4.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass QT_HOST_PATH to cmake. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Fri, 03 Feb 2023 14:40:13 +0100
+
 qt6-serialport (6.4.2-1) unstable; urgency=medium
 
   [ Patrick Franz ]
diff --minimal -Nru qt6-serialport-6.4.2/debian/rules qt6-serialport-6.4.2/debian/rules
--- qt6-serialport-6.4.2/debian/rules	2022-12-30 16:46:01.000000000 +0100
+++ qt6-serialport-6.4.2/debian/rules	2023-02-03 14:40:12.000000000 +0100
@@ -4,13 +4,19 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
 
+extra_cmake_args=
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+extra_cmake_args += -DQT_HOST_PATH=/usr
+endif
+
 %:
 	dh $@ --buildsystem=cmake+ninja --with pkgkde_symbolshelper
 
 override_dh_auto_configure:
 	dh_auto_configure -- \
 		--log-level=STATUS \
-		-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 to: