chiark / gitweb /
Correctly increase stack limit
authorMatthew Vernon <matthew@debian.org>
Mon, 4 Dec 2017 05:26:39 +0000 (05:26 +0000)
committerMatthew Vernon <matthew@debian.org>
Mon, 4 Dec 2017 05:26:39 +0000 (05:26 +0000)
We want the increased stack size to apply to the make check step
(running it by itself doesn't achieve anything); also ignore a
permission error (which we get on freebsd) - if the tests succeed it
doesn't matter.

debian/rules

index 3b705e1ff967510739f623afd2cc22354f072cd9..aa6542970459270d4dd012ab57ede45bf436e732 100755 (executable)
@@ -53,8 +53,9 @@ build-stamp:  configure-stamp
        # Add here commands to compile the package.
        $(MAKE) $(NJOBS)
 ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
-       ulimit -s unlimited
-       $(MAKE) check VERBOSE=1
+       #ulimit returns EPERM on the freebsd buildds, but that's OK
+       #as stack limit increase only really necessary on s390
+       ulimit -s unlimited || true ; $(MAKE) check VERBOSE=1
 endif
 
        touch build-stamp