Source: vdr-plugin-dvd Version: 0.3.6~b03+cvs20090426.0013-26 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
vdr-plugin-dvd fails to cross build from source, because debian/rules hard codes the build architecture pkg-config. The attached patch makes it use the host architecture pkg-config. Please consider applying it. Helmut
diff --minimal -Nru vdr-plugin-dvd-0.3.6~b03+cvs20090426.0013/debian/changelog vdr-plugin-dvd-0.3.6~b03+cvs20090426.0013/debian/changelog --- vdr-plugin-dvd-0.3.6~b03+cvs20090426.0013/debian/changelog 2019-07-19 07:27:51.000000000 +0200 +++ vdr-plugin-dvd-0.3.6~b03+cvs20090426.0013/debian/changelog 2019-07-27 15:39:41.000000000 +0200 @@ -1,3 +1,10 @@ +vdr-plugin-dvd (0.3.6~b03+cvs20090426.0013-26.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Use the host architecture pkg-config. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 27 Jul 2019 15:39:41 +0200 + vdr-plugin-dvd (0.3.6~b03+cvs20090426.0013-26) unstable; urgency=medium * Build-depend on vdr-dev >= 2.4.1 diff --minimal -Nru vdr-plugin-dvd-0.3.6~b03+cvs20090426.0013/debian/rules vdr-plugin-dvd-0.3.6~b03+cvs20090426.0013/debian/rules --- vdr-plugin-dvd-0.3.6~b03+cvs20090426.0013/debian/rules 2019-07-19 07:27:51.000000000 +0200 +++ vdr-plugin-dvd-0.3.6~b03+cvs20090426.0013/debian/rules 2019-07-27 15:17:15.000000000 +0200 @@ -4,7 +4,9 @@ #export DH_VERBOSE=1 MAKE_OPTIONS = VDRDIR=/usr/include/vdr LIBDIR=. LOCALEDIR=locale -CXXFLAGS += $(shell pkg-config vdr --variable=cxxflags) +-include /usr/share/dpkg/buildtools.mk +PKG_CONFIG ?= pkg-config +CXXFLAGS += $(shell $(PKG_CONFIG) vdr --variable=cxxflags) %: dh $@ --with vdrplugin