[Pkg-electronics-devel] Bug#916531: oregano FTCBFS: multiple reasons

Helmut Grohne helmut at subdivi.de
Sat Dec 15 13:56:26 GMT 2018


Source: oregano
Version: 0.84.40+dfsg.1-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

oreagno fails to install its cross Build-Depends, because python is not
installable for foreign architectures. It really needs a build
architecture python for running waf though, so that dependency should be
annotated with :any. Then waf uses build architecture tools, because the
packaging doesn't supply them. The attached patch fixes all of that and
makes oreagno cross buildable. Please consider applying it.

Helmut
-------------- next part --------------
diff --minimal -Nru oregano-0.84.40+dfsg.1/debian/changelog oregano-0.84.40+dfsg.1/debian/changelog
--- oregano-0.84.40+dfsg.1/debian/changelog	2018-10-13 13:05:56.000000000 +0200
+++ oregano-0.84.40+dfsg.1/debian/changelog	2018-12-15 13:47:08.000000000 +0100
@@ -1,3 +1,12 @@
+oregano (0.84.40+dfsg.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Annotate Build-Depends: python with :any.
+    + Supply build tools to waf.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sat, 15 Dec 2018 13:47:08 +0100
+
 oregano (0.84.40+dfsg.1-1) unstable; urgency=medium
 
   * New upstream release (Closes: #875473)
diff --minimal -Nru oregano-0.84.40+dfsg.1/debian/control oregano-0.84.40+dfsg.1/debian/control
--- oregano-0.84.40+dfsg.1/debian/control	2018-10-13 13:05:56.000000000 +0200
+++ oregano-0.84.40+dfsg.1/debian/control	2018-12-15 13:47:06.000000000 +0100
@@ -15,7 +15,7 @@
                libx11-dev,
                libxml2-dev,
                libxrender-dev (>= 0.6.0),
-               python
+               python:any
 Standards-Version: 4.2.1
 Vcs-Browser: https://salsa.debian.org/electronics-team/oregano
 Vcs-Git: https://salsa.debian.org/electronics-team/oregano.git
diff --minimal -Nru oregano-0.84.40+dfsg.1/debian/rules oregano-0.84.40+dfsg.1/debian/rules
--- oregano-0.84.40+dfsg.1/debian/rules	2018-10-13 13:05:56.000000000 +0200
+++ oregano-0.84.40+dfsg.1/debian/rules	2018-12-15 13:47:08.000000000 +0100
@@ -7,6 +7,8 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+-include /usr/share/dpkg/buildtools.mk
+PKG_CONFIG ?= pkg-config
 
 LDFLAGS += -lcairo
 
@@ -14,7 +16,7 @@
 	dh $@ --with autoreconf
 
 override_dh_auto_configure:
-	./waf configure --debug --prefix=/usr
+	CC=$(CC) PKGCONFIG=$(PKG_CONFIG) ./waf configure --debug --prefix=/usr
 
 override_dh_auto_build:
 	./waf build --debug --prefix=/usr


More information about the Pkg-electronics-devel mailing list