Source: newmat
Version: 1.10.4-6
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

newmat fails to cross build from source, because it fails running tests
even though DEB_BUILD_OPTIONS contained nocheck. The tests naturally
fail with an "Exec format error". After skipping tests, newmat cross
builds successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru newmat-1.10.4/debian/changelog 
newmat-1.10.4/debian/changelog
--- newmat-1.10.4/debian/changelog      2016-12-11 14:23:04.000000000 +0100
+++ newmat-1.10.4/debian/changelog      2017-10-26 21:28:03.000000000 +0200
@@ -1,3 +1,10 @@
+newmat (1.10.4-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Honour DEB_BUILD_OPTIONS=nocheck. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 26 Oct 2017 21:28:03 +0200
+
 newmat (1.10.4-6) unstable; urgency=medium
 
   [ Philippe Coval ]
diff --minimal -Nru newmat-1.10.4/debian/rules newmat-1.10.4/debian/rules
--- newmat-1.10.4/debian/rules  2016-12-11 14:23:04.000000000 +0100
+++ newmat-1.10.4/debian/rules  2017-10-26 21:28:01.000000000 +0200
@@ -55,9 +55,11 @@
        dh_testdir
        $(MAKE)
 #{ regression tests
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
        ./example
        ./tmt
        ./test_exc
+endif
 #}
        touch $@
 

Reply via email to