Bug#933199: vdr-plugin-svdrpservice FTCBFS: uses the build architecture pkg-config

Helmut Grohne helmut at subdivi.de
Sat Jul 27 13:56:09 BST 2019


Source: vdr-plugin-svdrpservice
Version: 1.0.0-7
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

vdr-plugin-svdrpservice fails to cross build from source, because it
uses the build architecture pkg-config. The attached patch makes it
substitutable and exports a PKG_CONFIG for all targets as only
dh_auto_build supplies it normally. Please consider applying it.

Helmut
-------------- next part --------------
diff --minimal -Nru vdr-plugin-svdrpservice-1.0.0/debian/changelog vdr-plugin-svdrpservice-1.0.0/debian/changelog
--- vdr-plugin-svdrpservice-1.0.0/debian/changelog	2019-07-19 07:30:14.000000000 +0200
+++ vdr-plugin-svdrpservice-1.0.0/debian/changelog	2019-07-27 14:49:28.000000000 +0200
@@ -1,3 +1,10 @@
+vdr-plugin-svdrpservice (1.0.0-7.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use the host architecture pkg-config. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sat, 27 Jul 2019 14:49:28 +0200
+
 vdr-plugin-svdrpservice (1.0.0-7) unstable; urgency=medium
 
   * Build-depend on vdr-dev >= 2.4.1
diff --minimal -Nru vdr-plugin-svdrpservice-1.0.0/debian/patches/cross.patch vdr-plugin-svdrpservice-1.0.0/debian/patches/cross.patch
--- vdr-plugin-svdrpservice-1.0.0/debian/patches/cross.patch	1970-01-01 01:00:00.000000000 +0100
+++ vdr-plugin-svdrpservice-1.0.0/debian/patches/cross.patch	2019-07-27 14:49:28.000000000 +0200
@@ -0,0 +1,12 @@
+--- vdr-plugin-svdrpservice-1.0.0.orig/Makefile
++++ vdr-plugin-svdrpservice-1.0.0/Makefile
+@@ -16,7 +16,8 @@
+ ### The directory environment:
+ 
+ # Use package data if installed...otherwise assume we're under the VDR source directory:
+-PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(shell pkg-config --variable=$(1) vdr || pkg-config --variable=$(1) ../../../vdr.pc))
++PKG_CONFIG ?= pkg-config
++PKGCFG = $(if $(VDRDIR),$(shell $(PKG_CONFIG) --variable=$(1) $(VDRDIR)/vdr.pc),$(shell $(PKG_CONFIG) --variable=$(1) vdr || $(PKG_CONFIG) --variable=$(1) ../../../vdr.pc))
+ LIBDIR = $(call PKGCFG,libdir)
+ LOCDIR = $(call PKGCFG,locdir)
+ PLGCFG = $(call PKGCFG,plgcfg)
diff --minimal -Nru vdr-plugin-svdrpservice-1.0.0/debian/patches/series vdr-plugin-svdrpservice-1.0.0/debian/patches/series
--- vdr-plugin-svdrpservice-1.0.0/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ vdr-plugin-svdrpservice-1.0.0/debian/patches/series	2019-07-27 14:49:00.000000000 +0200
@@ -0,0 +1 @@
+cross.patch
diff --minimal -Nru vdr-plugin-svdrpservice-1.0.0/debian/rules vdr-plugin-svdrpservice-1.0.0/debian/rules
--- vdr-plugin-svdrpservice-1.0.0/debian/rules	2019-07-19 07:30:14.000000000 +0200
+++ vdr-plugin-svdrpservice-1.0.0/debian/rules	2019-07-27 14:49:28.000000000 +0200
@@ -2,6 +2,8 @@
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
+-include /usr/share/dpkg/buildtools.mk
+export PKG_CONFIG ?= pkg-config
 
 %:
 	dh $@ --with vdrplugin


More information about the pkg-vdr-dvb-devel mailing list