summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-01-08 15:15:04 +0000
committermarino <marino@pkgsrc.org>2012-01-08 15:15:04 +0000
commit66362d4748ce7e80b38eea21c1f845bd1482aef9 (patch)
tree516a1d7cae61c5f3eb2a3c89712ff2fce7ed17a6
parent7ceb0c05bcf226271e0438772314fc9e9beb8466 (diff)
downloadpkgsrc-66362d4748ce7e80b38eea21c1f845bd1482aef9.tar.gz
lang/gnat-aux: Fix introduced gnat.dg test failure on i386-netbsdelf-*
Previously the Ada testsuite was given unlimited stack resources for the x86_64 arch on NetBSD. Since all platforms now need unlimited stack resources to build gnat-aux due to the addition of <platform>-stdint.h header, this platform specific restriction on the Ada testsuite was removed. Unfortunately that resulted in a new stack test failure on i386 NetBSD platforms (gnat.dg/task_stack_align.adb execution test), so the original restriction seen in gnat-aux-20110627 was restored. Now i386 NetBSD once again pass all gnat.dg tests. This is strictly a testsuite issue so no PKGREVISION bump is necessary.
-rw-r--r--lang/gnat-aux/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/gnat-aux/Makefile b/lang/gnat-aux/Makefile
index 3c41f8edd58..4cb8c432012 100644
--- a/lang/gnat-aux/Makefile
+++ b/lang/gnat-aux/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2012/01/08 11:17:07 marino Exp $
+# $NetBSD: Makefile,v 1.9 2012/01/08 15:15:04 marino Exp $
#
PKGNAME= gnat-aux-${SNAPSHOT}
@@ -259,12 +259,17 @@ do-build:
do-test: build
.if !empty(PKG_OPTIONS:Mtestada)
+.if (${OPSYS} == "NetBSD") && (${MACHINE_ARCH} == "x86_64")
# NetBSD has an extremely small default stacksize of 2MB, which is
# insufficient for the gnat.dg testsuite.
# specifically: entry_queues test on AMD64
+ # Unlimiting stack resources on i386-netbsdelf* will result in
+ # failure of gnat.dg/task_stack_align.adb execution test.
cd ${BUILDDIR} && \
${ULIMIT_CMD_stacksize} && \
${SETENV} ${MY_MAKE_ENV} ${GMAKE} -sk check-ada
+.else
+ cd ${BUILDDIR} && ${SETENV} ${MY_MAKE_ENV} ${GMAKE} -sk check-ada
.endif
.if !empty(PKG_OPTIONS:Mfortran) && !empty(PKG_OPTIONS:Mtestfortran)
cd ${BUILDDIR} && ${SETENV} ${MY_MAKE_ENV} ${GMAKE} -sk check-fortran