Source: kristall
Version: 0.4+dfsg-2
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

kristall fails to cross build from source, because it runs qmake from a
Makefile without taking care to use a host one. I'm attaching a patch
that makes the build use a triplet-prefixed qmake when indicated for
your convenience.

Helmut
diff --minimal -Nru kristall-0.4+dfsg/debian/changelog 
kristall-0.4+dfsg/debian/changelog
--- kristall-0.4+dfsg/debian/changelog  2023-06-12 04:10:13.000000000 +0200
+++ kristall-0.4+dfsg/debian/changelog  2024-04-29 12:13:41.000000000 +0200
@@ -1,3 +1,10 @@
+kristall (0.4+dfsg-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use the host architecture qmake. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 29 Apr 2024 12:13:41 +0200
+
 kristall (0.4+dfsg-2) unstable; urgency=medium
 
   * debian/control: update maintainer's email.
diff --minimal -Nru kristall-0.4+dfsg/debian/rules 
kristall-0.4+dfsg/debian/rules
--- kristall-0.4+dfsg/debian/rules      2022-12-30 14:32:08.000000000 +0100
+++ kristall-0.4+dfsg/debian/rules      2024-04-29 12:13:41.000000000 +0200
@@ -2,6 +2,7 @@
 #export DH_VERBOSE = 1
 
 include /usr/share/dpkg/pkg-info.mk
+include /usr/share/dpkg/buildtools.mk
 
 export PREFIX=/usr
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
@@ -14,3 +15,9 @@
 
 %:
        dh $@
+
+override_dh_auto_build:
+       dh_auto_build -- QMAKE_COMMAND='$(QMAKE)'
+
+override_dh_auto_install:
+       dh_auto_install -- QMAKE_COMMAND='$(QMAKE)'

Reply via email to