Source: sord Version: 0.16.0~dfsg0-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
sord fails to cross build from source, because its dependency on a host architecture python is not installable. It really wants a build architecture python to run waf though, so the dependency should be annotated with :native or :any. For cross building with waf, one should set up variables CC and PKGCONFIG (not PKG_CONFIG). The attached patch makes sord cross buildable. Please consider applying it. Helmut
diff --minimal -Nru sord-0.16.0~dfsg0/debian/changelog sord-0.16.0~dfsg0/debian/changelog --- sord-0.16.0~dfsg0/debian/changelog 2016-09-22 20:33:50.000000000 +0200 +++ sord-0.16.0~dfsg0/debian/changelog 2019-05-16 22:08:44.000000000 +0200 @@ -1,3 +1,12 @@ +sord (0.16.0~dfsg0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Annotate Build-Depends: python with :native. + + Pass cross tools to waf. + + -- Helmut Grohne <hel...@subdivi.de> Thu, 16 May 2019 22:08:44 +0200 + sord (0.16.0~dfsg0-1) unstable; urgency=medium * New upstream version 0.16.0~dfsg0 diff --minimal -Nru sord-0.16.0~dfsg0/debian/control sord-0.16.0~dfsg0/debian/control --- sord-0.16.0~dfsg0/debian/control 2016-09-22 20:33:50.000000000 +0200 +++ sord-0.16.0~dfsg0/debian/control 2019-05-16 22:08:42.000000000 +0200 @@ -12,7 +12,7 @@ libserd-dev (>= 0.24.0~dfsg0), libpcre++-dev, pkg-config, - python + python:native, Standards-Version: 3.9.8 Homepage: http://drobilla.net/software/sord/ Vcs-Git: https://anonscm.debian.org/git/pkg-multimedia/sord.git diff --minimal -Nru sord-0.16.0~dfsg0/debian/rules sord-0.16.0~dfsg0/debian/rules --- sord-0.16.0~dfsg0/debian/rules 2016-09-22 20:33:50.000000000 +0200 +++ sord-0.16.0~dfsg0/debian/rules 2019-05-16 22:08:44.000000000 +0200 @@ -6,7 +6,9 @@ dfsg_version = $(upstream_version)~dfsg0 pkg = $(shell dpkg-parsechangelog | sed -ne 's/^Source: //p') -DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +include /usr/share/dpkg/architecture.mk +-include /usr/share/dpkg/buildtools.mk +PKG_CONFIG ?= pkg-config LDFLAGS+=-Wl,--as-needed WAF = ./waf @@ -14,6 +16,7 @@ dh $@ --parallel override_dh_auto_configure: + CC=$(CC) PKGCONFIG=$(PKG_CONFIG) \ $(WAF) configure \ --prefix=/usr \ --mandir=/usr/share/man \