Source: lilv
Version: 0.24.4~dfsg0-1
Tags: patch
User: [email protected]
Usertags: cross-satisfiability ftcbfs

lilv fails to cross build from source, because its build dependency on
(the host architecture) python is not installable. Indeed, it wants
python for the build architecture to run. Beyond that, one should export
CC and PKGCONFIG to tell waf what we are compiling for. Please consider
applying the attached patch.

Helmut
diff --minimal -Nru lilv-0.24.4~dfsg0/debian/changelog 
lilv-0.24.4~dfsg0/debian/changelog
--- lilv-0.24.4~dfsg0/debian/changelog  2019-08-22 12:00:49.000000000 +0200
+++ lilv-0.24.4~dfsg0/debian/changelog  2019-10-04 04:55:13.000000000 +0200
@@ -1,3 +1,12 @@
+lilv (0.24.4~dfsg0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Annotate Build-Depends: python with :native.
+    + Export suitable cross environment from dpkg's buildtools.mk.
+
+ -- Helmut Grohne <[email protected]>  Fri, 04 Oct 2019 04:55:13 +0200
+
 lilv (0.24.4~dfsg0-1) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru lilv-0.24.4~dfsg0/debian/control 
lilv-0.24.4~dfsg0/debian/control
--- lilv-0.24.4~dfsg0/debian/control    2019-08-22 12:00:49.000000000 +0200
+++ lilv-0.24.4~dfsg0/debian/control    2019-10-04 04:55:12.000000000 +0200
@@ -14,7 +14,7 @@
  libsratom-dev (>= 0.4.0~),
  lv2-dev (>= 1.14.0~),
  pkg-config,
- python
+ python:native
 Standards-Version: 4.4.0
 Homepage: https://drobilla.net/software/lilv/
 Vcs-Git: https://salsa.debian.org/multimedia-team/lilv.git
diff --minimal -Nru lilv-0.24.4~dfsg0/debian/rules 
lilv-0.24.4~dfsg0/debian/rules
--- lilv-0.24.4~dfsg0/debian/rules      2019-08-22 12:00:49.000000000 +0200
+++ lilv-0.24.4~dfsg0/debian/rules      2019-10-04 04:55:13.000000000 +0200
@@ -1,9 +1,12 @@
 #!/usr/bin/make -f
 
 include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/buildtools.mk
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+export CC
+export PKGCONFIG = $(PKG_CONFIG)
 export LINKFLAGS += $(LDFLAGS)
 
 WAF = ./waf

Reply via email to