[nfft] 01/02: Restrict testing to single- and double-precision builds on powerpc architectures

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Dec 14 12:50:34 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository nfft.

commit 7b6ef612a996f7bf88784d4d9ca2e85fb69e5c4b
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Dec 14 11:57:35 2016 +0000

    Restrict testing to single- and double-precision builds on powerpc
    architectures
    
    Gbp-Dch: short
    Closes: #844403
    Thanks: Breno Leitao for the fix
---
 debian/rules | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index ff6c8c4..1d6f79b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE = 1
 
+include /usr/share/dpkg/architecture.mk
+
 # Hardening flags.
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
@@ -14,6 +16,15 @@ ifneq (,$(findstring libnfft3-long2,$(shell dh_listpackages)))
 	PRECISIONS += long
 endif
 
+# Tested precisions.
+# NOTE: Testing is temporarily restricted to single- and double-precision
+# builds on powerpc architectures. See Bug-Debian #844403.
+ifneq (,$(findstring $(DEB_HOST_ARCH_CPU),powerpc ppc64el))
+	TESTED_PRECISIONS = single double
+else
+	TESTED_PRECISIONS = $(PRECISIONS)
+endif
+
 # Build options common to arch and indep targets.
 BUILD_OPTIONS = \
 	--disable-applications \
@@ -57,7 +68,7 @@ override_dh_auto_build-indep:
 	dh_auto_build --builddirectory=build-double -- doc
 
 override_dh_auto_test-arch:
-	for p in $(PRECISIONS) ; do \
+	for p in $(TESTED_PRECISIONS) ; do \
 		dh_auto_test --builddirectory=build-$$p ; \
 	done
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/nfft.git



More information about the debian-science-commits mailing list