Source: metrohash Version: 1.1.3-4 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
metrohash fails to cross build from source, because debian/rules uses the build architecture compiler via a make default variable in debian/rules. The easiest way of fixing that - using dpkg's buildtools.mk - makes metrohash cross buildable. Please consider applying the attached patch. Helmut
diff --minimal -Nru metrohash-1.1.3/debian/changelog metrohash-1.1.3/debian/changelog --- metrohash-1.1.3/debian/changelog 2019-01-28 20:34:42.000000000 +0100 +++ metrohash-1.1.3/debian/changelog 2021-07-22 14:50:10.000000000 +0200 @@ -1,3 +1,10 @@ +metrohash (1.1.3-4.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dpkg's buildtools.mk supply cross tools. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 22 Jul 2021 14:50:10 +0200 + metrohash (1.1.3-4) unstable; urgency=medium * d/control: Fix Homepage diff --minimal -Nru metrohash-1.1.3/debian/rules metrohash-1.1.3/debian/rules --- metrohash-1.1.3/debian/rules 2019-01-28 20:33:47.000000000 +0100 +++ metrohash-1.1.3/debian/rules 2021-07-22 14:50:09.000000000 +0200 @@ -1,7 +1,8 @@ #!/usr/bin/make -f #export DH_VERBOSE=1 -DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +include /usr/share/dpkg/architecture.mk +-include /usr/share/dpkg/buildtools.mk CXXFLAGS+=-Wall -pedantic -fPIC LDFLAGS+=-shared -Wl,-as-needed -Wl,-soname,libmetrohash.so.1