Source: rhash Version: 1.3.6-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
rhash fails to cross build from source, because it configures for the build architecture. Usually, one has to pass the --host flag and dh_auto_configure takes care of that. Not so here. The handcrafted configure script does not recognize the flag. Instead, one is supposed to set up a suitable CC variable. Once doing so, rhash cross builds successfully. Please consider applying the attached patch. Helmut
diff --minimal -Nru rhash-1.3.6/debian/changelog rhash-1.3.6/debian/changelog --- rhash-1.3.6/debian/changelog 2018-03-22 23:40:09.000000000 +0100 +++ rhash-1.3.6/debian/changelog 2018-08-16 18:52:15.000000000 +0200 @@ -1,3 +1,10 @@ +rhash (1.3.6-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: export a suitable compiler. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 16 Aug 2018 18:52:15 +0200 + rhash (1.3.6-2) unstable; urgency=low * Multi-arch support diff --minimal -Nru rhash-1.3.6/debian/rules rhash-1.3.6/debian/rules --- rhash-1.3.6/debian/rules 2018-03-22 23:40:09.000000000 +0100 +++ rhash-1.3.6/debian/rules 2018-08-16 18:52:11.000000000 +0200 @@ -4,6 +4,9 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +-include /usr/share/dpkg/buildtools.mk +export CC + export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -D_FILE_OFFSET_BITS=64 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)