Source: globus-common
Version: 17.1-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

globus-common fails to cross build from source, because it doesn't pass
the relevant --host flag to ./configure. I propose letting
dh_auto_configure do that. It also runs tests despite DEB_BUILD_OPTIONS
containing nocheck. After fixing both issues, globus-common cross builds
successfully. Please consider applying the attached patch after stretch
is released.

Helmut
diff --minimal -Nru globus-common-17.1/debian/changelog 
globus-common-17.1/debian/changelog
--- globus-common-17.1/debian/changelog 2017-03-17 15:44:28.000000000 +0100
+++ globus-common-17.1/debian/changelog 2017-06-10 17:07:51.000000000 +0200
@@ -1,3 +1,12 @@
+globus-common (17.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_configure pass --host flag.
+    + Honour DEB_BUILD_OPTIONS=nocheck.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 10 Jun 2017 17:07:51 +0200
+
 globus-common (17.1-1) unstable; urgency=medium
 
   * GT6 update: Add additional error handling api
diff --minimal -Nru globus-common-17.1/debian/rules 
globus-common-17.1/debian/rules
--- globus-common-17.1/debian/rules     2016-11-08 18:47:32.000000000 +0100
+++ globus-common-17.1/debian/rules     2017-06-10 17:07:49.000000000 +0200
@@ -33,12 +33,8 @@
        CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
        FFLAGS="$(FFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
        LDFLAGS="$(LDFLAGS) -Wl,--as-needed -Wl,-z,defs" \
-       GLOBUS_VERSION=6.0 ./configure \
+       GLOBUS_VERSION=6.0 dh_auto_configure -- \
           --disable-static \
-          --prefix=$(_prefix) \
-          --libdir='$${prefix}/lib/$(DEB_HOST_MULTIARCH)' \
-          --sysconfdir=/etc \
-          --localstatedir=/var \
           --sharedstatedir=/var/lib \
           --mandir='$${datadir}/man' \
           --includedir='$${prefix}/include/globus' \
@@ -62,7 +58,9 @@
        dh_testdir
 
        $(MAKE)
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
        $(MAKE) check VERBOSE=1 NO_EXTERNAL_NET=1
+endif
 
        touch $@
 

Reply via email to