[scotch] 01/02: Don't halt on test errors on hurd, m68k

Drew Parsons dparsons at moszumanska.debian.org
Mon Nov 27 03:04:49 UTC 2017


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

dparsons pushed a commit to tag debian/6.0.4.dfsg1-7
in repository scotch.

commit bfa166603f6fcebb49483d741bc5e1546c1576bc
Author: Drew Parsons <dparsons at debian.org>
Date:   Mon Nov 27 10:39:19 2017 +0800

    Don't halt on test errors on hurd, m68k
    
    - hurd times out on buildd during build-time checks
    This is a worry, but can be better investigated at runtime if we allow
    the hurd package build to complete.
    
    - m68k checks segfault inside the qemu emulator used for builds
    
    The test failures will still be on the record in build logs.
---
 debian/changelog |  9 +++++++++
 debian/rules     | 19 ++++++++++++++++++-
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 13fe351..7b52062 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+scotch (6.0.4.dfsg1-7) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Don't halt on test errors on hurd, m68k:
+    - hurd times out on buildd during build-time checks
+    - m68k segfaults inside the qemu emulator used for builds
+
+ -- Drew Parsons <dparsons at debian.org>  Mon, 27 Nov 2017 10:37:49 +0800
+
 scotch (6.0.4.dfsg1-6) unstable; urgency=medium
 
   * Team upload.
diff --git a/debian/rules b/debian/rules
index 40a5c9e..9904193 100755
--- a/debian/rules
+++ b/debian/rules
@@ -39,6 +39,19 @@ else
   CFLAGS_COMMON += -DSCOTCH_PTHREAD_AFFINITY_LINUX
 endif
 
+# By default, halt on test (check) failures. But,
+# - hurd times out on buildd during build-time checks
+# - m68k segfaults inside the qemu emulator used for builds
+# so don't halt on test failures on these arches.
+ifeq ($(DEB_BUILD_ARCH_OS),hurd)
+  HALT_ON_TEST_ERROR = no
+else ifeq ($(DEB_BUILD_ARCH_OS),m68k)
+  HALT_ON_TEST_ERROR = no
+else
+  HALT_ON_TEST_ERROR = yes
+endif
+
+
 DEB_DBG_PACKAGE_scotch = scotch-dbg
 DEB_DBG_PACKAGE_ptscotch = ptscotch-dbg
 DEB_DBG_PACKAGE_libscotch-6.0 = libscotch-dbg
@@ -80,7 +93,11 @@ build-arch-stamp: patch-stamp
 	   (cd src && $(MAKE) scotch ptscotch prefix=$(CURDIR)/$$v); \
 	   (cd src && $(MAKE) esmumps ptesmumps prefix=$(CURDIR)/$$v); \
 	   echo "check for $$v"; \
-	   (cd src && LD_LIBRARY_PATH=$(CURDIR)/src/check/../../lib:$(LD_LIBRARY_PATH) $(MAKE) check prefix=$(CURDIR)/$$v); \
+	   if [ "x$(HALT_ON_TEST_ERROR)" = "xno" ]; then \
+	     (cd src && LD_LIBRARY_PATH=$(CURDIR)/src/check/../../lib:$(LD_LIBRARY_PATH) $(MAKE) check prefix=$(CURDIR)/$$v) || /bin/true; \
+	   else \
+	     (cd src && LD_LIBRARY_PATH=$(CURDIR)/src/check/../../lib:$(LD_LIBRARY_PATH) $(MAKE) check prefix=$(CURDIR)/$$v); \
+	   fi; \
 	   echo "install for $$v"; \
 	   (cd src && $(MAKE) install prefix=$(CURDIR)/$$v); \
 	   mv $$v/bin/gbase $$v/bin/scotch_gbase; \

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



More information about the debian-science-commits mailing list