• Bug#1104989: highwayhash FTCBFS: build vs host confusion

    From Helmut Grohne@21:1/5 to All on Fri May 9 14:10:02 2025
    Source: highwayhash
    Version: 0~git20200803.9490b14-4.1
    Tags: patch
    User: debian-cross@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 <helmut@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_HOS