Source: batctl Version: 2019.0-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
batctl fails to cross build from source, because all make targets require a working pkg-config, but only dh_auto_build substitutes ones. Exporting a suitable PKG_CONFIG makes batctl cross buildable. Please consider applying the attached patch. Helmut
diff --minimal -Nru batctl-2019.0/debian/changelog batctl-2019.0/debian/changelog --- batctl-2019.0/debian/changelog 2019-02-01 22:32:44.000000000 +0100 +++ batctl-2019.0/debian/changelog 2019-02-25 20:54:09.000000000 +0100 @@ -1,3 +1,10 @@ +batctl (2019.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Provide a PKG_CONFIG for all make targets. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Mon, 25 Feb 2019 20:54:09 +0100 + batctl (2019.0-1) unstable; urgency=medium * New Upstream Version diff --minimal -Nru batctl-2019.0/debian/rules batctl-2019.0/debian/rules --- batctl-2019.0/debian/rules 2019-02-01 20:49:18.000000000 +0100 +++ batctl-2019.0/debian/rules 2019-02-25 20:54:08.000000000 +0100 @@ -1,8 +1,10 @@ #!/usr/bin/make -f # -*- makefile -*- +-include /usr/share/dpkg/buildtools.mk include /usr/share/dpkg/pkg-info.mk +export PKG_CONFIG ?= pkg-config export DEB_BUILD_MAINT_OPTIONS=hardening=+all export DEB_CFLAGS_MAINT_APPEND = -fdata-sections -ffunction-sections -flto export DEB_CPPFLAGS_MAINT_APPEND = -D_FILE_OFFSET_BITS=64