From 6833d827970526dc9f9f63d9f89d75e2875303f4 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Thu, 21 Aug 2008 14:54:22 +0000 Subject: [PATCH] Update to a new 8/19 snapshot that passes the regression tests. "Fix" the regression tests by running them as nobody if the regression-test target is run by root. Remove the .if defined(MAINTAINER_MODE) guards so the package cluster will run the tests (they pass correctly on i386). --- devel/llvm-devel/Makefile | 12 ++++++++---- devel/llvm-devel/distinfo | 6 +++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/devel/llvm-devel/Makefile b/devel/llvm-devel/Makefile index 32149e810f4b..b0beee96c21a 100644 --- a/devel/llvm-devel/Makefile +++ b/devel/llvm-devel/Makefile @@ -25,7 +25,7 @@ BUILD_DEPENDS+= f2c:${PORTSDIR}/lang/f2c .if defined(BOOTSTRAP) SVN_SNAPDATE!= date -v-1d +%Y-%m-%d .else -SVN_SNAPDATE= 2008-08-17 +SVN_SNAPDATE= 2008-08-19 .endif SNAPDATE= ${SVN_SNAPDATE:S/-//g} @@ -81,9 +81,13 @@ post-install: @${RM} ${PREFIX}/bin/.dir \ ${PREFIX}/lib/.dir -.if defined(MAINTAINER_MODE) +TEST_CMD= '(cd ${WRKSRC}/test; ${SETENV} ${MAKE_ENV} ${GMAKE} check)' regression-test: ${BUILD_COOKIE} - (cd ${WRKSRC}/test; ${SETENV} ${MAKE_ENV} ${GMAKE} check) -.endif + if [ `${ID} -u` = 0 ]; then \ + ${CHOWN} -R nobody ${WRKSRC}/test; \ + su -m nobody -c ${TEST_CMD}; \ + else \ + ${SH} -c ${TEST_CMD}; \ + fi .include diff --git a/devel/llvm-devel/distinfo b/devel/llvm-devel/distinfo index 67902c1a11e1..aa873f2e552b 100644 --- a/devel/llvm-devel/distinfo +++ b/devel/llvm-devel/distinfo @@ -1,3 +1,3 @@ -MD5 (llvm-2.4.snap20080817.tar.bz2) = d139c92cefb1f4a273a7860047f69f44 -SHA256 (llvm-2.4.snap20080817.tar.bz2) = 8b74597f76b82a559be5fb250ece965f5e08066686294382837ed8667871ca44 -SIZE (llvm-2.4.snap20080817.tar.bz2) = 6018126 +MD5 (llvm-2.4.snap20080819.tar.bz2) = 85dc06de904b487432e388aa9863cbe2 +SHA256 (llvm-2.4.snap20080819.tar.bz2) = 451f6fb4feef716fc780f4f299afbd637e17b05f6592847f626912377a564b2b +SIZE (llvm-2.4.snap20080819.tar.bz2) = 6023479