[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#839394: grantlee FTCBFS: runs test suite despite DEB_BUILD_OPTIONS=nocheck



Source: grantlee
Version: 0.4.0-3
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

grantlee fails to cross build from source, because it runs the test
suite despite DEB_BUILD_OPTIONS=nocheck. Running a testsuite is doomed
to fail when one cannot execute the host architecture, so that causes a
build failure. Please consider applying the attached patch.

Helmut
diff --minimal -Nru grantlee-0.4.0/debian/changelog grantlee-0.4.0/debian/changelog
--- grantlee-0.4.0/debian/changelog	2015-08-06 16:58:43.000000000 +0200
+++ grantlee-0.4.0/debian/changelog	2016-10-01 14:13:26.000000000 +0200
@@ -1,3 +1,10 @@
+grantlee (0.4.0-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Support DEB_BUILD_OPTIONS=nocheck. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sat, 01 Oct 2016 14:13:09 +0200
+
 grantlee (0.4.0-3) unstable; urgency=medium
 
   * Update symbols files. (Closes: #777889)
diff --minimal -Nru grantlee-0.4.0/debian/rules grantlee-0.4.0/debian/rules
--- grantlee-0.4.0/debian/rules	2015-08-06 16:58:43.000000000 +0200
+++ grantlee-0.4.0/debian/rules	2016-10-01 14:13:06.000000000 +0200
@@ -13,8 +13,10 @@
 override_dh_auto_configure:
 	dh_auto_configure -- -DBUILD_TESTS=ON
 
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
 override_dh_auto_test:
 	xvfb-run dh_auto_test $(fail_param)
+endif
 
 override_dh_makeshlibs:
 	dh_makeshlibs -V -X/usr/lib/grantlee/

Reply to: