Source: progress
Version: 0.13.1+20171106-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

progress fails to cross build from source, because it validates its
configuration on every make invocation including clean. While
dh_auto_build passes PKG_CONFIG for dh_auto_build it doesn't for
dh_auto_clean. The makefile doesn't like that and gives up finding
ncurses. The attached patch passes PKG_CONFIG to all targets and thus
makes cross building succeed. Potentially, we should consider applying
this to debhelper itself, but the number of affected packages is fairly
low. Please consider applying the attached patch.

Helmut
diff --minimal -Nru progress-0.13.1+20171106/debian/changelog 
progress-0.13.1+20171106/debian/changelog
--- progress-0.13.1+20171106/debian/changelog   2018-02-14 07:02:46.000000000 
+0100
+++ progress-0.13.1+20171106/debian/changelog   2018-06-03 09:13:58.000000000 
+0200
@@ -1,3 +1,10 @@
+progress (0.13.1+20171106-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Also pass PKG_CONFIG for all dh_auto_*. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 03 Jun 2018 09:13:58 +0200
+
 progress (0.13.1+20171106-1) unstable; urgency=medium
 
   * New upstream snapshot 0.13.1+20171106.
diff --minimal -Nru progress-0.13.1+20171106/debian/rules 
progress-0.13.1+20171106/debian/rules
--- progress-0.13.1+20171106/debian/rules       2018-02-14 06:44:26.000000000 
+0100
+++ progress-0.13.1+20171106/debian/rules       2018-06-03 09:13:57.000000000 
+0200
@@ -2,6 +2,8 @@
 export DEB_BUILD_MAINT_OPTIONS  = hardening=+all
 export DEB_CFLAGS_MAINT_APPEND  = -Wall #-pedantic
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+-include /usr/share/dpkg/buildtools.mk
+export PKG_CONFIG ?= pkg-config
 
 export PREFIX=/usr
 %:

Reply via email to