summaryrefslogtreecommitdiff
path: root/lang/gnat-aux
diff options
context:
space:
mode:
authormarino <marino>2012-01-08 15:15:04 +0000
committermarino <marino>2012-01-08 15:15:04 +0000
commitfc700916a09eeded6ae359dc25c2226de88e1947 (patch)
tree516a1d7cae61c5f3eb2a3c89712ff2fce7ed17a6 /lang/gnat-aux
parente2685ba8354685556a469cb08e8856702774bfae (diff)
downloadpkgsrc-fc700916a09eeded6ae359dc25c2226de88e1947.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.
Diffstat (limited to 'lang/gnat-aux')
-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