Source: sratom
Version: 0.6.0~dfsg0-1
Tags: patch
User: [email protected]
Usertags: rebootstrap

sratom 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 sratom cross buildable. Please consider applying it.

Helmut
diff --minimal -Nru sratom-0.6.0~dfsg0/debian/changelog 
sratom-0.6.0~dfsg0/debian/changelog
--- sratom-0.6.0~dfsg0/debian/changelog 2016-09-23 02:47:37.000000000 +0200
+++ sratom-0.6.0~dfsg0/debian/changelog 2019-05-16 22:17:47.000000000 +0200
@@ -1,3 +1,12 @@
+sratom (0.6.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 <[email protected]>  Thu, 16 May 2019 22:17:47 +0200
+
 sratom (0.6.0~dfsg0-1) unstable; urgency=medium
 
   * New upstream version 0.6.0~dfsg0
diff --minimal -Nru sratom-0.6.0~dfsg0/debian/control 
sratom-0.6.0~dfsg0/debian/control
--- sratom-0.6.0~dfsg0/debian/control   2016-09-23 02:47:37.000000000 +0200
+++ sratom-0.6.0~dfsg0/debian/control   2019-05-16 22:17:12.000000000 +0200
@@ -11,7 +11,7 @@
  libsord-dev (>= 0.12.0~dfsg0),
  lv2-dev,
  pkg-config,
- python
+ python:native,
 Build-Depends-Indep:
  doxygen,
  graphviz
diff --minimal -Nru sratom-0.6.0~dfsg0/debian/rules 
sratom-0.6.0~dfsg0/debian/rules
--- sratom-0.6.0~dfsg0/debian/rules     2016-09-23 02:47:37.000000000 +0200
+++ sratom-0.6.0~dfsg0/debian/rules     2019-05-16 22:17:41.000000000 +0200
@@ -6,7 +6,9 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
 
-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
 
@@ -18,6 +20,7 @@
        dh $@ --parallel
 
 override_dh_auto_configure:
+       CC=$(CC) PKGCONFIG=$(PKG_CONFIG) \
        $(WAF) configure \
                --prefix=/usr \
                --mandir=/usr/share/man \
_______________________________________________
pkg-multimedia-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to