Package: src:cminpack
Severity: normal
Hi. The package sources weren't respecting DEB_BUILD_OPTIONS=nocheck.
That attached patch fixes this.

Thanks!

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

>From dee932e4c54aabb24ba4e0d2d388285082fdbb52 Mon Sep 17 00:00:00 2001
From: Dima Kogan <dko...@debian.org>
Date: Sat, 6 May 2017 19:22:46 -0700
Subject: [PATCH] explicitly supporting DEB_BUILD_OPTIONS=nocheck

override_dh_auto_test ALWAYS runs, it's up to the thing being executed to
respect DEB_BUILD_OPTIONS=nocheck
---
 debian/rules | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debian/rules b/debian/rules
index dc8ea3d..d75f194 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,7 +16,12 @@ override_dh_auto_configure:
 	dh_auto_configure -- $(CMAKE_EXTRA_FLAGS)
 
 override_dh_auto_test:
+ifeq ($(filter $(DEB_BUILD_OPTIONS),nocheck),)
 	$(MAKE) -C examples ctest
+else
+	@echo '"DEB_BUILD_OPTIONS" has "nocheck". Skipping tests'
+	true
+endif
 
 override_dh_clean:
 	dh_clean
-- 
2.11.0

Reply via email to