Source: bfs Version: 3.3.1-2 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
bfs fails to cross build from source, because it has a hand-written configure script that is very much unlike autotools and hence override_dh_auto_configure does not pass any cross compilation options. The way to do it here is to pass a suitable CC=... assignment. I'm attaching a patch for your convenience. While at it, I recommend also making the build log verbose (i.e. showing the actual compiler invocations) and optionally also supporting DEB_BUILD_OPTIONS=terse for opting into the currently terse build log as is recommended by Debian policy. Thanks for considering. The build log verbosity is not in scope for this bug number which only applies to the cross building aspect. Helmut
diff --minimal -Nru bfs-3.3.1/debian/changelog bfs-3.3.1/debian/changelog --- bfs-3.3.1/debian/changelog 2024-06-11 11:49:08.000000000 +0200 +++ bfs-3.3.1/debian/changelog 2024-08-11 13:10:48.000000000 +0200 @@ -1,3 +1,10 @@ +bfs (3.3.1-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Pass CC= to configure. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sun, 11 Aug 2024 13:10:48 +0200 + bfs (3.3.1-2) unstable; urgency=medium * Apply patch from upstream to fix FTBFS on riscv64. (Closes: #1072933) diff --minimal -Nru bfs-3.3.1/debian/rules bfs-3.3.1/debian/rules --- bfs-3.3.1/debian/rules 2024-06-11 11:49:08.000000000 +0200 +++ bfs-3.3.1/debian/rules 2024-08-11 13:10:24.000000000 +0200 @@ -1,6 +1,7 @@ #!/usr/bin/make -f include /usr/share/dpkg/architecture.mk +include /usr/share/dpkg/buildtools.mk # Fix FTBFS on kfreebsd-* architectures # https://github.com/tavianator/bfs/issues/56 @@ -14,7 +15,7 @@ dh $@ override_dh_auto_configure: - ./configure + ./configure 'CC=$(CC)' override_dh_auto_test: ifneq ($(shell id -u),0)