Source: qt6ct
Version: 0.10-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

qt6ct fails to cross build from source, because debian/rules contains a
workaround for a higher level failure. qtpaths6 used to emit the wrong
multiarch directory, but we recently fixed that. As a result, this
workaround now breaks the qt6ct build and needs to be dropped.

In general, if you see such a failure where another component is at
fault, I kindly ask you to not work around it. Doing so hides problems
from my view and it also means that we have to fix it three times (work
around, fix properly, revert workaround). Rather, reach out to
debian-cr...@lists.debian.org for assistance if you feel that something
else needs to be fixed to make your package cross build.

Thank you. Attaching the obvious patch.

Helmut
diff --minimal -Nru qt6ct-0.10/debian/changelog qt6ct-0.10/debian/changelog
--- qt6ct-0.10/debian/changelog 2025-02-06 13:25:34.000000000 +0100
+++ qt6ct-0.10/debian/changelog 2025-02-14 07:07:42.000000000 +0100
@@ -1,3 +1,11 @@
+qt6ct (0.10-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Drop cross building workaround fixed by qtpaths6. (Closes:
+    #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 14 Feb 2025 07:07:42 +0100
+
 qt6ct (0.10-1) unstable; urgency=medium
 
   * New Upstream release (Closes: #1025350)
diff --minimal -Nru qt6ct-0.10/debian/rules qt6ct-0.10/debian/rules
--- qt6ct-0.10/debian/rules     2023-12-15 11:04:06.000000000 +0100
+++ qt6ct-0.10/debian/rules     2025-02-14 07:07:40.000000000 +0100
@@ -1,18 +1,7 @@
 #!/usr/bin/make -f
 
-include /usr/share/dpkg/architecture.mk
-
 export DH_VERBOSE = 1
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
 
-# Move plugins for cross builds
-execute_after_dh_auto_install:
-ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
-       mkdir -pv debian/qt6ct/usr/lib/$(DEB_HOST_GNU_TYPE)/qt6/plugins
-       mv -v debian/qt6ct/usr/lib/$(DEB_BUILD_GNU_TYPE)/qt6/plugins/* \
-              debian/qt6ct/usr/lib/$(DEB_HOST_GNU_TYPE)/qt6/plugins
-       rm -rf debian/qt6ct/usr/lib/$(DEB_BUILD_GNU_TYPE)
-endif
-
 %:
        dh $@

Reply via email to