Source: uthash Version: 2.3.0-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
uthash fails to cross build from source, because it builds libut for the build architecture and even adds host compiler flags that are not understood by t he build compiler. The easiest way of fixing that - using dh_auto_build - makes uthash cross buildable. Consider applying the attached patch. Helmut
diff --minimal -Nru uthash-2.3.0/debian/changelog uthash-2.3.0/debian/changelog --- uthash-2.3.0/debian/changelog 2021-09-11 16:02:52.000000000 +0200 +++ uthash-2.3.0/debian/changelog 2023-12-30 13:57:04.000000000 +0100 @@ -1,3 +1,10 @@ +uthash (2.3.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_build pass cross tools to make. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 30 Dec 2023 13:57:04 +0100 + uthash (2.3.0-1) unstable; urgency=medium * New upstream release diff --minimal -Nru uthash-2.3.0/debian/rules uthash-2.3.0/debian/rules --- uthash-2.3.0/debian/rules 2021-09-11 16:02:52.000000000 +0200 +++ uthash-2.3.0/debian/rules 2023-12-30 13:57:02.000000000 +0100 @@ -21,7 +21,7 @@ ln -s ../ libut/uthash cp libut/Makefile.standalone libut/Makefile # Build 'libut.a' static library - $(MAKE) -C libut + dh_auto_build --sourcedirectory libut # Build documentation (use a temp build directory) mkdir -p $(BUILD_DIR)/html cp --archive doc/* $(BUILD_DIR)/html/