Source: libfann
Version: 2.2.0+ds-3
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

libfann fails to cross build from source, because it runs the test suite
despite DEB_BUILD_OPTIONS containing nocheck and fails doing that. After
honouring DEB_BUILD_OPTIONS=nocheck, it cross builds successfully.
Please consider applying the attached patch after stretch is released.

Helmut
diff --minimal -Nru libfann-2.2.0+ds/debian/changelog 
libfann-2.2.0+ds/debian/changelog
--- libfann-2.2.0+ds/debian/changelog   2016-04-24 17:31:47.000000000 +0200
+++ libfann-2.2.0+ds/debian/changelog   2017-06-10 19:53:34.000000000 +0200
@@ -1,3 +1,10 @@
+libfann (2.2.0+ds-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Honour DEB_BUILD_OPTIONS=nocheck. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 10 Jun 2017 19:53:34 +0200
+
 libfann (2.2.0+ds-3) unstable; urgency=medium
 
   * Drop package libfann-dbg in favor of automatic dbgsym packages, as per
diff --minimal -Nru libfann-2.2.0+ds/debian/rules libfann-2.2.0+ds/debian/rules
--- libfann-2.2.0+ds/debian/rules       2016-04-24 17:31:47.000000000 +0200
+++ libfann-2.2.0+ds/debian/rules       2017-06-10 19:53:32.000000000 +0200
@@ -40,6 +40,7 @@
        naturaldocs -i src/include -o HTML doc/html -p doc/proj
 
 
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
 override_dh_auto_test-arch:
        # Simulate partial autopkgtest run by providing an ADTTMP and setting
        # CPATH/LIBRARY_PATH/LD_LIBRARY_PATH for the build test
@@ -52,6 +53,7 @@
        res=$$? ;\
        rm -rf "$$testrundir" ;\
        exit $$res
+endif
 
 
 override_dh_auto_test-indep:

Reply via email to