Bug#844403: src:nfft: FTBFS on ppc64el

Breno Leitao brenohl at br.ibm.com
Mon Dec 12 15:09:10 UTC 2016


> Sure.  Since the problem is only related to long double, you can bypass
> either all the tests on ppc64el, or, disable long double on ppc64el and keep
> the tests. Either way it should work.

In fact, I came up with a better solution. Just disable the tests for long on
ppc64el.

Let me know if it works for you.

Thank you,
Breno
-------------- next part --------------
diff -Nru nfft-3.3.2/debian/changelog nfft-3.3.2/debian/changelog
--- nfft-3.3.2/debian/changelog	2016-10-31 05:00:52.000000000 -0400
+++ nfft-3.3.2/debian/changelog	2016-12-09 16:12:51.000000000 -0500
@@ -1,3 +1,11 @@
+nfft (3.3.2-1.1) UNRELEASED; urgency=medium
+
+  * Avoid running tests with long double on ppc64el due to failing tests
+    (Closes: #844403)
+  * Add build-dependency for latex.
+
+ -- Breno Leitao <leitao at debian.org>  Fri, 09 Dec 2016 16:12:51 -0500
+
 nfft (3.3.2-1) unstable; urgency=medium
 
   * New upstream version 3.3.2
diff -Nru nfft-3.3.2/debian/control nfft-3.3.2/debian/control
--- nfft-3.3.2/debian/control	2016-10-31 05:00:52.000000000 -0400
+++ nfft-3.3.2/debian/control	2016-12-09 16:12:51.000000000 -0500
@@ -8,7 +8,8 @@
                libcunit1-dev,
                libfftw3-dev,
                libncurses5-dev,
-               pkg-config
+               pkg-config,
+               texlive
 Build-Depends-Indep: doxygen
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/nfft.git
diff -Nru nfft-3.3.2/debian/rules nfft-3.3.2/debian/rules
--- nfft-3.3.2/debian/rules	2016-10-31 05:00:52.000000000 -0400
+++ nfft-3.3.2/debian/rules	2016-12-09 16:12:51.000000000 -0500
@@ -7,6 +7,7 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+export DEB_HOST_ARCH = $(shell dpkg-architecture -q DEB_HOST_ARCH)
 
 # Available precisions.
 PRECISIONS = single double
@@ -57,7 +58,13 @@
 	dh_auto_build --builddirectory=build-double -- doc
 
 override_dh_auto_test-arch:
-	for p in $(PRECISIONS) ; do \
+	# Not running test for long double on ppc64el
+	if [ "$(DEB_HOST_ARCH)" = "ppc64el" ] ; then  \
+		PRECISIONS_TEST="single double" ;\
+	else \
+		PRECISIONS_TEST="$(PRECISIONS)" ;\
+	fi ;\
+	for p in $$PRECISIONS_TEST; do \
 		dh_auto_test --builddirectory=build-$$p ; \
 	done
 


More information about the debian-science-maintainers mailing list