Source: ifupdown-ng Version: 0.12.1-4 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
ifupdown-ng fails to cross build from source, because debian/rules hard codes the build architecture pkg-config and thus fails locating libbsd. This happens to be a silent failure and thus manifests in -Werror=implicit-function-declaration. I'm attaching a patch for your convenience. Helmut
diff --minimal -Nru ifupdown-ng-0.12.1/debian/changelog ifupdown-ng-0.12.1/debian/changelog --- ifupdown-ng-0.12.1/debian/changelog 2024-03-13 15:56:58.000000000 +0100 +++ ifupdown-ng-0.12.1/debian/changelog 2024-04-28 13:15:51.000000000 +0200 @@ -1,3 +1,10 @@ +ifupdown-ng (0.12.1-4.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Use the host architecture pkg-config. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sun, 28 Apr 2024 13:15:51 +0200 + ifupdown-ng (0.12.1-4) unstable; urgency=medium * Fix FTBFS due to libbsd header location change (Closes: #1066707) diff --minimal -Nru ifupdown-ng-0.12.1/debian/rules ifupdown-ng-0.12.1/debian/rules --- ifupdown-ng-0.12.1/debian/rules 2024-03-13 15:54:18.000000000 +0100 +++ ifupdown-ng-0.12.1/debian/rules 2024-04-28 13:15:50.000000000 +0200 @@ -1,13 +1,14 @@ #!/usr/bin/make -f +include /usr/share/dpkg/buildtools.mk SHELL := /bin/bash %: dh $@ MAKE_VARS := \ - LIBBSD_CFLAGS="$(shell pkg-config --cflags libbsd-overlay)" \ - LIBBSD_LIBS="$(shell pkg-config --cflags --libs libbsd-overlay)" + LIBBSD_CFLAGS="$(shell $(PKG_CONFIG) --cflags libbsd-overlay)" \ + LIBBSD_LIBS="$(shell $(PKG_CONFIG) --cflags --libs libbsd-overlay)" override_dh_auto_build: # Compatiblity glue for libbsd (strlcpy 'n friends)