Source: xfsdump
Version: 3.1.6+nmu2
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

xfsdump fails to cross build from source, because it doesn't pass --host
to ./configure. After adding the missing option, it cross builds
successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru xfsdump-3.1.6+nmu2/debian/changelog 
xfsdump-3.1.6+nmu3/debian/changelog
--- xfsdump-3.1.6+nmu2/debian/changelog 2017-02-25 19:47:46.000000000 +0100
+++ xfsdump-3.1.6+nmu3/debian/changelog 2017-09-19 07:56:37.000000000 +0200
@@ -1,3 +1,10 @@
+xfsdump (3.1.6+nmu3) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass --host to ./configure (closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 19 Sep 2017 07:56:37 +0200
+
 xfsdump (3.1.6+nmu2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru xfsdump-3.1.6+nmu2/debian/rules 
xfsdump-3.1.6+nmu3/debian/rules
--- xfsdump-3.1.6+nmu2/debian/rules     2017-02-25 19:47:46.000000000 +0100
+++ xfsdump-3.1.6+nmu3/debian/rules     2017-09-19 07:56:34.000000000 +0200
@@ -1,7 +1,11 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
 export DH_VERBOSE=1
 export LOCAL_CONFIGURE_OPTIONS=CFLAGS=-D_FILE_OFFSET_BITS=64
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+LOCAL_CONFIGURE_OPTIONS += --build=$(DEB_BUILD_GNU_TYPE) 
--host=$(DEB_HOST_GNU_TYPE)
+endif
 
 package=xfsdump
 

Reply via email to