Source: sendip Version: 2.6-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
sendip fails to cross build from source, because it uses help2man. For very simple packages - such as sendip - there is a simple solution: Build twice. Once for help2man natively and once cross for real. Please consider applying the attached patch (or replacing use of help2man with a real manual page). Helmut
diff --minimal -Nru sendip-2.6/debian/changelog sendip-2.6/debian/changelog --- sendip-2.6/debian/changelog 2020-09-02 20:02:43.000000000 +0200 +++ sendip-2.6/debian/changelog 2020-12-20 11:26:15.000000000 +0100 @@ -1,3 +1,10 @@ +sendip (2.6-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: build twice for help2man. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sun, 20 Dec 2020 11:26:15 +0100 + sendip (2.6-1) unstable; urgency=low * New upstream release. diff --minimal -Nru sendip-2.6/debian/rules sendip-2.6/debian/rules --- sendip-2.6/debian/rules 2020-09-02 11:41:57.000000000 +0200 +++ sendip-2.6/debian/rules 2020-12-20 11:26:15.000000000 +0100 @@ -1,8 +1,20 @@ #!/usr/bin/make -f # -*- Makefile -*- -export LIBDIR=/usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)/sendip +include /usr/share/dpkg/architecture.mk + +export LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)/sendip export PREFIX=/usr %: dh $@ + +ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) +override_dh_auto_build: + dpkg-architecture -f -a$(DEB_BUILD_ARCH) -c dh_auto_build + dh_auto_clean + dh_auto_build -- --assume-new=sendip.1 + +override_dh_auto_install: + dh_auto_install -- --assume-new=sendip.1 +endif