Source: libicns Version: 0.8.1-3.1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
libicns fails to cross build from source, because debian/rules (not the build system) uses the wrong pkg-config. The attached patch fixes that and makes libicns cross build successfully. Please consider applying it. Helmut
diff --minimal -Nru libicns-0.8.1/debian/changelog libicns-0.8.1/debian/changelog --- libicns-0.8.1/debian/changelog 2016-11-12 05:12:44.000000000 +0100 +++ libicns-0.8.1/debian/changelog 2018-11-25 22:01:14.000000000 +0100 @@ -1,3 +1,10 @@ +libicns (0.8.1-3.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Use the host pkg-config. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sun, 25 Nov 2018 22:01:14 +0100 + libicns (0.8.1-3.1) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru libicns-0.8.1/debian/rules libicns-0.8.1/debian/rules --- libicns-0.8.1/debian/rules 2016-11-12 05:12:44.000000000 +0100 +++ libicns-0.8.1/debian/rules 2018-11-25 22:01:13.000000000 +0100 @@ -1,8 +1,11 @@ #!/usr/bin/make -f #export DH_VERBOSE=1 +/usr/share/dpkg/buildtools.mk: +-include /usr/share/dpkg/buildtools.mk +PKG_CONFIG ?= pkg-config -export CPPFLAGS += $(shell pkg-config --cflags libopenjp2) +export CPPFLAGS += $(shell $(PKG_CONFIG) --cflags libopenjp2) %: dh $@ --parallel --with autoreconf