diff -Nru statsprocessor-0.11+git20160316/debian/changelog statsprocessor-0.11+git20160316/debian/changelog --- statsprocessor-0.11+git20160316/debian/changelog 2018-09-03 03:44:58.000000000 +0000 +++ statsprocessor-0.11+git20160316/debian/changelog 2019-07-08 15:52:53.000000000 +0000 @@ -1,3 +1,11 @@ +statsprocessor (0.11+git20160316-2) unstable; urgency=medium + + * Build twice to fix cross building from source. + Thanks to Helmut Grohne for the patch. + Closes: #930090 + + -- Sascha Steinbiss Mon, 08 Jul 2019 17:52:53 +0200 + statsprocessor (0.11+git20160316-1) unstable; urgency=medium * Team upload. diff -Nru statsprocessor-0.11+git20160316/debian/rules statsprocessor-0.11+git20160316/debian/rules --- statsprocessor-0.11+git20160316/debian/rules 2018-09-02 14:14:55.000000000 +0000 +++ statsprocessor-0.11+git20160316/debian/rules 2019-07-08 15:52:53.000000000 +0000 @@ -2,6 +2,8 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all +include /usr/share/dpkg/architecture.mk + %: dh $@ @@ -10,7 +12,11 @@ rm -f sp64.1 override_dh_auto_build: - $(MAKE) -C src + dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dh_auto_build --sourcedirectory=src help2man -i debian/extra-man-info.txt \ -n 'word generator based on per-position Markov chains' \ -N ./src/sp64 > sp64.1 +ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) + rm -f src/sp64 + dh_auto_build --sourcedirectory=src +endif