Source: maskprocessor Version: 0.73+git20170609.1708898-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
maskprocessor fails to cross build from source, because it uses help2man. This doesn't work at all during cross compilation. Fortunately, maskprocessor has so few dependencies that we can simply build it twice: Once for help2man and once for real. Please consider applying the attached patch. Helmut
diff --minimal -Nru maskprocessor-0.73+git20170609.1708898/debian/changelog maskprocessor-0.73+git20170609.1708898/debian/changelog --- maskprocessor-0.73+git20170609.1708898/debian/changelog 2018-09-07 09:51:46.000000000 +0200 +++ maskprocessor-0.73+git20170609.1708898/debian/changelog 2019-11-29 06:34:08.000000000 +0100 @@ -1,3 +1,10 @@ +maskprocessor (0.73+git20170609.1708898-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Build twice for help2man. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Fri, 29 Nov 2019 06:34:08 +0100 + maskprocessor (0.73+git20170609.1708898-1) unstable; urgency=medium * Team upload. diff --minimal -Nru maskprocessor-0.73+git20170609.1708898/debian/rules maskprocessor-0.73+git20170609.1708898/debian/rules --- maskprocessor-0.73+git20170609.1708898/debian/rules 2018-09-07 09:04:41.000000000 +0200 +++ maskprocessor-0.73+git20170609.1708898/debian/rules 2019-11-29 06:34:08.000000000 +0100 @@ -1,5 +1,6 @@ #!/usr/bin/make -f +include /usr/share/dpkg/architecture.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: @@ -10,7 +11,12 @@ rm -f mp64.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 'high-performance word generator with a per-position configurable charset' \ -N ./src/mp64 > mp64.1 +ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) + rm src/mp64 + dh_auto_build --sourcedirectory=src +endif +