Source: ansifilter Version: 2.18+dfsg1-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
ansifilter fails to cross build from source, because it uses the build architecture qmake. A simple way to pass the host architecture one is letting dpkg's buildtools.mk define it and pass it explicitly. I'm attaching a patch for your convenience. Helmut
diff --minimal -Nru ansifilter-2.18+dfsg1/debian/changelog ansifilter-2.18+dfsg1/debian/changelog --- ansifilter-2.18+dfsg1/debian/changelog 2021-10-15 11:25:18.000000000 +0200 +++ ansifilter-2.18+dfsg1/debian/changelog 2023-02-05 21:37:26.000000000 +0100 @@ -1,3 +1,10 @@ +ansifilter (2.18+dfsg1-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Use the host architecture qmake. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sun, 05 Feb 2023 21:37:26 +0100 + ansifilter (2.18+dfsg1-1) unstable; urgency=medium * Initial version (Closes: #603339) diff --minimal -Nru ansifilter-2.18+dfsg1/debian/rules ansifilter-2.18+dfsg1/debian/rules --- ansifilter-2.18+dfsg1/debian/rules 2021-10-15 11:25:18.000000000 +0200 +++ ansifilter-2.18+dfsg1/debian/rules 2023-02-05 21:37:24.000000000 +0100 @@ -1,5 +1,7 @@ #!/usr/bin/make -f +include /usr/share/dpkg/buildtools.mk + ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) BOOTSTRAP_PARALLEL = --parallel=$(NUMJOBS) @@ -9,7 +11,7 @@ dh $@ override_dh_auto_build: - dh_auto_build -- all all-gui + dh_auto_build -- all all-gui QMAKE=$(QMAKE) override_dh_auto_install: dh_auto_install --destdir debian/ansifilter -- install