Source: snd
Version: 17.9-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

snd fails to cross build from source, because debian/rules hardcodes the
build architecture pkg-config and thus it fails finding
libpulse-simple.pc. After switching to the host architecture pkg-config,
snd cross builds successfully. Please consider applying the attached
patch.

Helmut
diff --minimal -Nru snd-17.9/debian/changelog snd-17.9/debian/changelog
--- snd-17.9/debian/changelog   2017-12-05 16:35:50.000000000 +0100
+++ snd-17.9/debian/changelog   2017-12-08 21:24:33.000000000 +0100
@@ -1,3 +1,10 @@
+snd (17.9-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use the right pkg-config. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 08 Dec 2017 21:24:33 +0100
+
 snd (17.9-1) unstable; urgency=medium
 
   * New upstream version 17.9
diff --minimal -Nru snd-17.9/debian/rules snd-17.9/debian/rules
--- snd-17.9/debian/rules       2017-12-05 16:35:50.000000000 +0100
+++ snd-17.9/debian/rules       2017-12-08 21:24:32.000000000 +0100
@@ -29,10 +29,12 @@
 
 export AUTOHEADER=true
 
+-include /usr/share/dpkg/buildtools.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/cdbs/1/rules/autoreconf.mk
 include /usr/share/cdbs/1/rules/utils.mk
+PKG_CONFIG ?= pkg-config
 
 DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \
        ^(pix/.*\.png|debian/(changelog|copyright(|_hints|_newhints)))$
@@ -76,7 +78,7 @@
 
 # upstream naively (and wrongly) assumes
 # that they only need to link against "-lpulse-simple"
-DEB_MAKE_EXTRA_ARGS_gtk-pulse=AUDIO_LIB="$(shell pkg-config --libs 
libpulse-simple)"
+DEB_MAKE_EXTRA_ARGS_gtk-pulse=AUDIO_LIB="$(shell $(PKG_CONFIG) --libs 
libpulse-simple)"
 
 ## append any extra args for make
 DEB_MAKE_EXTRA_ARGS += $(DEB_MAKE_EXTRA_ARGS_$(cdbs_make_curflavor))
_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to