Source: tmpreaper
Version: 1.6.13+nmu1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

tmpreaper fails to cross build from source, because it configures for
the build architecture. Letting dh_auto_configure pass --host to
./configure fixes that. It then runs the just built tmpreaper and fails.
Grepping the binary works as well. After applying the attached patch,
tmpreaper cross builds successfully. Please consider applying it.

Helmut
diff --minimal -Nru tmpreaper-1.6.13+nmu1/debian/changelog 
tmpreaper-1.6.13+nmu2/debian/changelog
--- tmpreaper-1.6.13+nmu1/debian/changelog      2010-08-05 05:50:12.000000000 
+0200
+++ tmpreaper-1.6.13+nmu2/debian/changelog      2017-10-03 07:18:28.000000000 
+0200
@@ -1,3 +1,12 @@
+tmpreaper (1.6.13+nmu2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: closes: #-1
+    + Let dh_auto_configure pass --host to ./configure.
+    + Avoid running ./tmpreaper.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 03 Oct 2017 07:18:28 +0200
+
 tmpreaper (1.6.13+nmu1) unstable; urgency=low
 
   * Non-maintainer upload.
diff --minimal -Nru tmpreaper-1.6.13+nmu1/debian/control 
tmpreaper-1.6.13+nmu2/debian/control
--- tmpreaper-1.6.13+nmu1/debian/control        2009-09-17 16:17:57.000000000 
+0200
+++ tmpreaper-1.6.13+nmu2/debian/control        2017-10-03 07:17:46.000000000 
+0200
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Paul Slootman <p...@debian.org>
 Standards-Version: 3.8.3.0
-Build-Depends: debhelper (>= 5), e2fslibs-dev, po-debconf
+Build-Depends: debhelper (>= 7), e2fslibs-dev, po-debconf
 
 Package: tmpreaper
 Architecture: any
diff --minimal -Nru tmpreaper-1.6.13+nmu1/debian/rules 
tmpreaper-1.6.13+nmu2/debian/rules
--- tmpreaper-1.6.13+nmu1/debian/rules  2009-09-17 15:09:27.000000000 +0200
+++ tmpreaper-1.6.13+nmu2/debian/rules  2017-10-03 07:18:28.000000000 +0200
@@ -3,7 +3,6 @@
 package=tmpreaper
 
 SHELL := /bin/sh
-CC = gcc
 
 VERSION=$(shell dpkg-parsechangelog 2>/dev/null | perl -ne 'print "$$1_DEB" if 
/^Version:\s+(.*)/')
 
@@ -39,9 +38,9 @@
 build: build-stamp
 build-stamp:
        dh_testdir
-       ./configure --prefix=/usr --mandir=/usr/share/man
+       dh_auto_configure
        make CPPFLAGS="-DDEBIAN" tmpreaper
-       ./tmpreaper -h 2>&1 | grep 'tmpreaper -- Version: 
'$(debian_version)-DEB || (echo "You forgot to fix the VERSION in 
configure.ac!"; exit 1)
+       grep -q -F 'tmpreaper -- Version: '$(debian_version)-DEB ./tmpreaper || 
(echo "You forgot to fix the VERSION in configure.ac!"; exit 1)
        touch build-stamp
 
 clean:

Reply via email to