Source: ndpi Version: 4.0-4 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
ndpi fails to cross build from source, because it configures for the build architecture. It actually attempts to configure twice. Once via autogen.sh and another time via dh_auto_configure. The latter one would work in theory if the first one didn't fail already. The obvious solution is skipping the first invocation. Please consider applying the attached patch. Helmut
diff --minimal -Nru ndpi-4.0/debian/changelog ndpi-4.0/debian/changelog --- ndpi-4.0/debian/changelog 2021-09-25 22:04:56.000000000 +0200 +++ ndpi-4.0/debian/changelog 2022-01-06 16:43:22.000000000 +0100 @@ -1,3 +1,10 @@ +ndpi (4.0-4.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCFBS: Don't configure during autogen.sh. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 06 Jan 2022 16:43:22 +0100 + ndpi (4.0-4) unstable; urgency=medium * Team upload diff --minimal -Nru ndpi-4.0/debian/patches/cross.patch ndpi-4.0/debian/patches/cross.patch --- ndpi-4.0/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ ndpi-4.0/debian/patches/cross.patch 2022-01-06 16:43:22.000000000 +0100 @@ -0,0 +1,14 @@ +--- ndpi-4.0.orig/autogen.sh ++++ ndpi-4.0/autogen.sh +@@ -56,8 +56,10 @@ + autoreconf -ivf + cat configure | sed "s/#define PACKAGE/#define NDPI_PACKAGE/g" | sed "s/#define VERSION/#define NDPI_VERSION/g" > configure.tmp + cat configure.tmp > configure ++chmod +x configure ++ ++test "x${NO_CONFIGURE:-}" = x || exit 0 + + echo "./configure $@" +-chmod +x configure + ./configure $@ + diff --minimal -Nru ndpi-4.0/debian/patches/series ndpi-4.0/debian/patches/series --- ndpi-4.0/debian/patches/series 2021-09-25 21:57:57.000000000 +0200 +++ ndpi-4.0/debian/patches/series 2022-01-06 16:41:59.000000000 +0100 @@ -5,3 +5,4 @@ system-uthash.patch fix-unaligned-memory-accesses-with-get_u_int64_t-at-armhf.patch use-get_u_int64_t-to-avoid-unaligned-memory-access-at-armhf.patch +cross.patch diff --minimal -Nru ndpi-4.0/debian/rules ndpi-4.0/debian/rules --- ndpi-4.0/debian/rules 2021-09-25 22:03:13.000000000 +0200 +++ ndpi-4.0/debian/rules 2022-01-06 16:43:22.000000000 +0100 @@ -19,7 +19,7 @@ dh $@ override_dh_auto_configure: - ./autogen.sh + NO_CONFIGURE=1 ./autogen.sh dh_auto_configure -- --prefix=/usr override_dh_auto_test: