Source: highwayhash Version: 0~git20200803.9490b14-4.1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
highwayhash fails to cross build from source, because debian/rules confuses build and host architecture and forwards tells the upstream build system to enable flags specific to the build architecture. The host architecture compiler is unimpressed and gives up. I'm attaching a patch for your convenience. Helmut
diff --minimal -Nru highwayhash-0~git20200803.9490b14/debian/changelog highwayhash-0~git20200803.9490b14/debian/changelog --- highwayhash-0~git20200803.9490b14/debian/changelog 2024-02-28 11:37:34.000000000 +0100 +++ highwayhash-0~git20200803.9490b14/debian/changelog 2025-05-07 18:28:19.000000000 +0200 @@ -1,3 +1,9 @@ +highwayhash (0~git20200803.9490b14-5) UNRELEASED; urgency=medium + + * Fix FTCBFS: Fix build vs host confusion. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Wed, 07 May 2025 18:28:19 +0200 + highwayhash (0~git20200803.9490b14-4.1) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru highwayhash-0~git20200803.9490b14/debian/rules highwayhash-0~git20200803.9490b14/debian/rules --- highwayhash-0~git20200803.9490b14/debian/rules 2024-02-28 11:37:24.000000000 +0100 +++ highwayhash-0~git20200803.9490b14/debian/rules 2025-05-07 18:28:18.000000000 +0200 @@ -6,16 +6,16 @@ export INCDIR=$(DESTDIR)/include/ TESTBINS = highwayhash_test nanobenchmark_example profiler_example sip_hash_test vector_test -ifneq (,$(filter $(DEB_BUILD_ARCH),amd64)) +ifneq (,$(filter $(DEB_HOST_ARCH),amd64)) export HH_X64=1 endif -ifneq (,$(filter $(DEB_BUILD_ARCH),x32)) +ifneq (,$(filter $(DEB_HOST_ARCH),x32)) export HH_X64=1 endif -ifneq (,$(filter $(DEB_BUILD_ARCH),arm64)) +ifneq (,$(filter $(DEB_HOST_ARCH),arm64)) export HH_AARCH64=1 endif -ifneq (,$(filter $(DEB_BUILD_ARCH),ppc64el ppc64)) +ifneq (,$(filter $(DEB_HOST_ARCH),ppc64el ppc64)) export HH_POWER=1 endif