Source: gfan
Version: 0.5+dfsg-6
Tags: patch
User: helm...@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
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 <hel...@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~

Reply via email to