Source: libarchive
Version: 3.1.2-7
Severity: wishlist
Tags: patch

While working on bootstrapping Debian, I noticed that libarchive doesn't 
support skipping testing on DEB_BUILD_OPTIONS=nocheck.  Here's a patch to 
implement that.
-- 
Daniel Schepler
diff -urN libarchive-3.1.2.old/debian/rules libarchive-3.1.2/debian/rules
--- libarchive-3.1.2.old/debian/rules	2013-05-25 13:06:45.000000000 -0700
+++ libarchive-3.1.2/debian/rules	2013-06-04 16:22:10.629154189 -0700
@@ -13,6 +13,7 @@
 		--enable-bsdtar=shared --enable-bsdcpio=shared
 
 override_dh_auto_test:
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 ifneq (,$(shell locale -a | grep en_US.utf8))
 	_VERBOSITY_LEVEL=1 dh_auto_test --parallel
 else
@@ -22,3 +23,4 @@
 	_VERBOSITY_LEVEL=1 LOCPATH=$(CURDIR)/tmp-locales dh_auto_test --parallel
 	rm -rf tmp-locales
 endif
+endif

Reply via email to