Source: sofia-sip Version: 1.12.11+20110422.1-2.1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
sofia-sip fails to cross build from source, because it uses an outdated PKG_CHECK_MODULES macro that does not prefix pkg-config with $ac_tool_prefix. Thus it ends up using the build architecture pkg-config which fails finding required dependencies such as glib. The attached patch simply forces a triplet-prefixed pkg-config onto configure and thus makes the build succeed. Helmut
diff -u sofia-sip-1.12.11+20110422.1/debian/changelog sofia-sip-1.12.11+20110422.1/debian/changelog --- sofia-sip-1.12.11+20110422.1/debian/changelog +++ sofia-sip-1.12.11+20110422.1/debian/changelog @@ -1,3 +1,10 @@ +sofia-sip (1.12.11+20110422.1-2.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: export a triplet-prefixed PKG_CONFIG. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 01 Oct 2016 22:54:07 +0200 + sofia-sip (1.12.11+20110422.1-2.1) unstable; urgency=medium * Non-maintainer upload. diff -u sofia-sip-1.12.11+20110422.1/debian/rules sofia-sip-1.12.11+20110422.1/debian/rules --- sofia-sip-1.12.11+20110422.1/debian/rules +++ sofia-sip-1.12.11+20110422.1/debian/rules @@ -11,6 +11,8 @@ DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +export PKG_CONFIG = $(DEB_HOST_GNU_TYPE)-pkg-config + ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif