Bug#880928: gfan does not support DEB_BUILD_OPTIONS=nocheck

Helmut Grohne helmut at subdivi.de
Sun Nov 5 19:10:23 UTC 2017


Source: gfan
Version: 0.5+dfsg-6
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

While trying to cross build gfan, I noticed that it runs the test suite
despite DEB_BUILD_OPTIONS=nocheck. The attached patch makes it honour
that setting, but doesn't make it cross build. Can you apply it anyway?

Helmut
-------------- next part --------------
diff --minimal -Nru gfan-0.5+dfsg/debian/changelog gfan-0.5+dfsg/debian/changelog
--- gfan-0.5+dfsg/debian/changelog	2016-07-14 09:54:58.000000000 +0200
+++ gfan-0.5+dfsg/debian/changelog	2017-11-05 20:01:21.000000000 +0100
@@ -1,3 +1,10 @@
+gfan (0.5+dfsg-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Honour DEB_BUILD_OPTIONS=nocheck. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sun, 05 Nov 2017 20:01:21 +0100
+
 gfan (0.5+dfsg-6) unstable; urgency=medium
 
   * debian/control:
diff --minimal -Nru gfan-0.5+dfsg/debian/rules gfan-0.5+dfsg/debian/rules
--- gfan-0.5+dfsg/debian/rules	2016-07-14 09:54:58.000000000 +0200
+++ gfan-0.5+dfsg/debian/rules	2017-11-05 20:01:20.000000000 +0100
@@ -15,8 +15,10 @@
 override_dh_auto_install:
 	$(MAKE) install PREFIX=$(DEB_DESTDIR)/usr
 
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
 override_dh_auto_test:
 	./gfan _test
+endif
 
 override_dh_clean:
 	dh_clean -X~


More information about the debian-science-maintainers mailing list