Source: collatinus Version: 12.0-2 Tags: patch User: [email protected] Usertags: ftcbfs
collatinus fails to cross build from source, because it runs qmake for the build architecture. The easiest way to pass the relevant cross compilation flags is using dh_auto_configure. Please consider applying the attached patch. Helmut
diff --minimal -Nru collatinus-12.0/debian/changelog collatinus-12.0/debian/changelog --- collatinus-12.0/debian/changelog 2021-09-16 16:10:13.000000000 +0200 +++ collatinus-12.0/debian/changelog 2021-09-19 15:00:12.000000000 +0200 @@ -1,3 +1,10 @@ +collatinus (12.0-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_configure pass cross flags to qmake. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Sun, 19 Sep 2021 15:00:12 +0200 + collatinus (12.0-2) unstable; urgency=medium * included Yves Ouvrard's modifications to src/maj.cpp: the management diff --minimal -Nru collatinus-12.0/debian/rules collatinus-12.0/debian/rules --- collatinus-12.0/debian/rules 2021-09-09 17:47:49.000000000 +0200 +++ collatinus-12.0/debian/rules 2021-09-19 15:00:09.000000000 +0200 @@ -21,7 +21,7 @@ rm -f *.qm override_dh_auto_configure: - qmake -makefile "QMAKE_CFLAGS_RELEASE=-g -O2 -ffile-prefix-map=/tmp/collatinus-c12=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CFLAGS_DEBUG=-g -O2 -ffile-prefix-map=/tmp/collatinus-c12=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CXXFLAGS_RELEASE=-g -O2 -ffile-prefix-map=/tmp/collatinus-c12=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" "QMAKE_CXXFLAGS_DEBUG=-g -O2 -ffile-prefix-map=/tmp/collatinus-c12=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2" QMAKE_LFLAGS_RELEASE=-Wl,-z,relro QMAKE_LFLAGS_DEBUG=-Wl,-z,relro QMAKE_STRIP=: PREFIX=/usr collatinus.pro + dh_auto_configure -- collatinus.pro override_dh_auto_build: dh_auto_build

