Source: pexec Version: 1.0~rc8-4 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
pexec fails to cross build from source, because it uses help2man. Given that pexec has very little dependencies, we can add a native build pass for generating the manual page before performing the cross build. Please consider applying the attached patch. Helmut
diff --minimal -Nru pexec-1.0~rc8/debian/changelog pexec-1.0~rc8/debian/changelog --- pexec-1.0~rc8/debian/changelog 2018-07-11 14:54:41.000000000 +0200 +++ pexec-1.0~rc8/debian/changelog 2021-01-28 16:19:44.000000000 +0100 @@ -1,3 +1,9 @@ +pexec (1.0~rc8-5) UNRELEASED; urgency=medium + + * Fix FTCBFS: Add a native build pass for help2man. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 28 Jan 2021 16:19:44 +0100 + pexec (1.0~rc8-4) unstable; urgency=medium * Orphaned. diff --minimal -Nru pexec-1.0~rc8/debian/rules pexec-1.0~rc8/debian/rules --- pexec-1.0~rc8/debian/rules 2012-06-04 20:31:15.000000000 +0200 +++ pexec-1.0~rc8/debian/rules 2021-01-28 16:18:51.000000000 +0100 @@ -45,6 +45,13 @@ config.status: configure dh_testdir +ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) + ./configure + $(MAKE) man + mv doc/pexec.1 doc/pexec.1.orig + $(MAKE) clean + mv doc/pexec.1.orig doc/pexec.1 +endif ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" build: build-arch build-indep