Bug#869493: cld2 FTCBFS: runs tests despite DEB_BUILD_OPTIONS=nocheck

Helmut Grohne helmut at subdivi.de
Sun Jul 23 16:23:09 UTC 2017


Source: cld2
Version: 0.0.0-git20150806-5
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

cld2 fails to cross build from source, because it fails running tests
that should have been skipped due to DEB_BUILD_OPTIONS=nocheck. After
honouring DEB_BUILD_OPTIONS=nocheck (see attached patch), it cross
builds successfully. Please consider applying the patch.

Helmut
-------------- next part --------------
diff --minimal -Nru cld2-0.0.0-git20150806/debian/changelog cld2-0.0.0-git20150806/debian/changelog
--- cld2-0.0.0-git20150806/debian/changelog	2016-07-15 17:41:18.000000000 +0200
+++ cld2-0.0.0-git20150806/debian/changelog	2017-07-23 18:19:26.000000000 +0200
@@ -1,3 +1,10 @@
+cld2 (0.0.0-git20150806-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Honour DEB_BUILD_OPTIONS=nocheck. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sun, 23 Jul 2017 18:19:26 +0200
+
 cld2 (0.0.0-git20150806-5) unstable; urgency=medium
 
   * Fix another typo in VCS
diff --minimal -Nru cld2-0.0.0-git20150806/debian/rules cld2-0.0.0-git20150806/debian/rules
--- cld2-0.0.0-git20150806/debian/rules	2016-07-15 09:09:03.000000000 +0200
+++ cld2-0.0.0-git20150806/debian/rules	2017-07-23 18:19:23.000000000 +0200
@@ -8,6 +8,7 @@
 %:
 	dh  $@ --parallel
 
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
 override_dh_auto_test:
 	cd obj-* && echo "this is some english text" | ./compact_lang_det_test_chrome_2
 	cd obj-* && echo "this is some english text" | ./compact_lang_det_test_chrome_16
@@ -20,3 +21,4 @@
 	cd obj-* && ./cld2_dynamic_data_tool --verify cld2_data.bin
 	cd obj-* && echo "this is some english text" | ./compact_lang_det_dynamic_test_chrome --data-file cld2_data.bin
 	cd obj-* && ./cld2_dynamic_unittest --data-file cld2_data.bin > /dev/null
+endif


More information about the debian-science-maintainers mailing list