Source: udo Version: 6.4.1-5 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
udo fails to cross build from source, because it does not pass cross tools to make. The easiest way of fixing that - using dh_auto_build - fails when the built udo is run to generate the documentation. Given that udo is small and has few dependencies, we can simply build it twice though. Please consider applying the attached patch. Helmut
diff --minimal -Nru udo-6.4.1/debian/changelog udo-6.4.1/debian/changelog --- udo-6.4.1/debian/changelog +++ udo-6.4.1/debian/changelog @@ -1,3 +1,9 @@ +udo (6.4.1-6) UNRELEASED; urgency=medium + + * Fix FTCBFS: Build a second time for cross building. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Tue, 21 Dec 2019 17:14:56 +0100 + udo (6.4.1-5) unstable; urgency=medium * QA upload. diff --minimal -Nru udo-6.4.1/debian/rules udo-6.4.1/debian/rules --- udo-6.4.1/debian/rules +++ udo-6.4.1/debian/rules @@ -1,6 +1,8 @@ #!/usr/bin/make -f #export DH_VERBOSE = 1 +include /usr/share/dpkg/architecture.mk + export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-format %: @@ -23,6 +25,11 @@ Source/udo --no-logfile --html -q -o eng/html/index.html $(CURDIR)/Guide/eng/manual/index.u cp Guide/ger/manual/images/*.gif ger/html/images/ Source/udo --no-logfile --html -q -o ger/html/index.html $(CURDIR)/Guide/ger/manual/index.u +ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) + dh_auto_clean --sourcedirectory=Source --buildsystem=makefile -- -f Makefile.debian + dh_auto_build --sourcedirectory=Source --buildsystem=makefile -- -f Makefile.debian \ + CFLAGS="$(CFLAGS) $(CPPFLAGS) -D__LINUX__" LDFLAGS="$(LDFLAGS)" +endif override_dh_auto_install: $(MAKE) -C Source -f Makefile.debian install DESTDIR=$(CURDIR)/debian/tmp