Source: leafnode Version: 1.11.11-2 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
leafnode fails to cross build from source, because it does not pass --host to ./configure. Usuallly, the easiest way of fixing this is using dh_auto_configure, but leafnode's configure does not like the --runstatedir option. Therefore, I suggest passing it explicitly. Beyond this, it fails running tests despite DEB_BUILD_OPTIONS=nocheck. Please consider applying the attached patch to add the --host flag and suitably conditionalize the test suite. Helmut
diff --minimal -Nru leafnode-1.11.11/debian/changelog leafnode-1.11.11/debian/changelog --- leafnode-1.11.11/debian/changelog 2020-11-15 21:03:49.000000000 +0100 +++ leafnode-1.11.11/debian/changelog 2021-02-09 14:59:10.000000000 +0100 @@ -1,3 +1,12 @@ +leafnode (1.11.11-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Pass --build/--host to ./configure. + + Honour DEB_BUILD_OPTIONS=nocheck. + + -- Helmut Grohne <hel...@subdivi.de> Tue, 09 Feb 2021 14:59:10 +0100 + leafnode (1.11.11-2) unstable; urgency=medium * Debhelper compat 12 diff --minimal -Nru leafnode-1.11.11/debian/rules leafnode-1.11.11/debian/rules --- leafnode-1.11.11/debian/rules 2012-04-16 09:47:59.000000000 +0200 +++ leafnode-1.11.11/debian/rules 2021-02-09 14:59:10.000000000 +0100 @@ -1,6 +1,8 @@ #!/usr/bin/make -f # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. +include /usr/share/dpkg/architecture.mk + # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 dpkg-buildflags = DEB_BUILD_MAINT_OPTIONS="hardening=+all" dpkg-buildflags @@ -13,13 +15,17 @@ cp FAQ.* debian cp t.pcre_extract debian ./configure \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --host=$(DEB_HOST_GNU_TYPE) \ --prefix=/usr \ --with-spooldir=/var/spool/news \ --sysconfdir=/etc/news/leafnode \ $(shell $(dpkg-buildflags) --export=configure) $(MAKE) $(MAKE) README-FQDN +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) $(MAKE) check +endif touch build-stamp clean: