[Pkg-clamav-devel] Bug#960843: clamav FTCBFS: fails running tests despite DEB_BUILD_OPTIONS=nocheck

Helmut Grohne helmut at subdivi.de
Sun May 17 11:20:51 BST 2020


Source: clamav
Version: 0.102.3+dfsg-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

clamav regressed in the reported version in that it now runs tests
despite DEB_BUILD_OPTIONS=nocheck. In a cross build setting, this makes
the build fail. Please consider applying the attached patch to restore
nocheck support.

Helmut
-------------- next part --------------
diff --minimal -Nru clamav-0.102.3+dfsg/debian/changelog clamav-0.102.3+dfsg/debian/changelog
--- clamav-0.102.3+dfsg/debian/changelog	2020-05-16 17:12:04.000000000 +0200
+++ clamav-0.102.3+dfsg/debian/changelog	2020-05-17 12:15:30.000000000 +0200
@@ -1,3 +1,10 @@
+clamav (0.102.3+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Honour DEB_BUILD_OPTIONS=nocheck again. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sun, 17 May 2020 12:15:30 +0200
+
 clamav (0.102.3+dfsg-1) unstable; urgency=medium
 
   * Import 0.102.3
diff --minimal -Nru clamav-0.102.3+dfsg/debian/rules clamav-0.102.3+dfsg/debian/rules
--- clamav-0.102.3+dfsg/debian/rules	2020-05-16 15:01:00.000000000 +0200
+++ clamav-0.102.3+dfsg/debian/rules	2020-05-17 12:15:28.000000000 +0200
@@ -136,11 +136,13 @@
 	dh_auto_build -a -- V=1
 
 override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 ifneq (,$(filter ia64 sparc, $(DEB_HOST_ARCH)))
 	T=900 $(MAKE) check EF_ALIGNMENT=8 V=1 VERBOSE=1
 else
 	T=900 $(MAKE) check V=1 VERBOSE=1
 endif
+endif
 
 override_dh_install:
 	dh_install


More information about the Pkg-clamav-devel mailing list