Bug#852355: ptlib: runs tests despite DEB_BUILD_OPTIONS=nocheck

Helmut Grohne helmut at subdivi.de
Mon Jan 23 20:12:58 UTC 2017


Source: ptlib
Version: 2.10.11~dfsg-2.1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

A build of ptlib runs the testsuite even when DEB_BUILD_OPTIONS=nocheck
is given. This breaks e.g. cross building. Please consider applying the
attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru ptlib-2.10.11~dfsg/debian/changelog ptlib-2.10.11~dfsg/debian/changelog
--- ptlib-2.10.11~dfsg/debian/changelog	2016-11-30 18:58:13.000000000 +0100
+++ ptlib-2.10.11~dfsg/debian/changelog	2017-01-23 21:10:44.000000000 +0100
@@ -1,3 +1,10 @@
+ptlib (2.10.11~dfsg-2.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Support DEB_BUILD_OPTIONS=nocheck (Closes: #-1).
+
+ -- Helmut Grohne <helmut at subdivi.de>  Mon, 23 Jan 2017 21:10:44 +0100
+
 ptlib (2.10.11~dfsg-2.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru ptlib-2.10.11~dfsg/debian/rules ptlib-2.10.11~dfsg/debian/rules
--- ptlib-2.10.11~dfsg/debian/rules	2016-11-30 18:58:13.000000000 +0100
+++ ptlib-2.10.11~dfsg/debian/rules	2017-01-23 21:10:42.000000000 +0100
@@ -35,6 +35,7 @@
 	rm -f debian/libpt-doc/usr/share/doc/libpt-doc/html/jquery.js
 	dh_link
 
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
 override_dh_auto_test:
 	$(MAKE) PTLIBDIR=$(CURDIR) -C samples/hello_world clean
 	$(MAKE) PTLIBDIR=$(CURDIR) -C samples/hello_world opt
@@ -49,6 +50,7 @@
 	# make sure samples are clean before we install them into libpt-doc
 	$(MAKE) PTLIBDIR=$(CURDIR) -C samples/hello_world clean
 	rm -rf samples/hello_world/obj_*
+endif
 
 print-version:
 	@@echo "Debian version:          $(DEBVERSION)"


More information about the Pkg-voip-maintainers mailing list