From dc4fbf696ee5c27fbdcb13781c637756ee1f4822 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Wed, 7 Jan 2009 22:17:25 +0000 Subject: [PATCH] - Adds self-test as recommended by INSTALL. Excessively long self-test runs in lzo2 (a different port) were figured (thanks, naddy@) to be caused by "J" in /etc/malloc.conf, so we set MALLOC_OPTIONS=jz to avoid that. PR: 130153 Submitted by: Matthias Andree (maintainer) --- archivers/lzo/Makefile | 7 ++++++- archivers/lzo/files/patch-util-check.sh | 11 +++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 archivers/lzo/files/patch-util-check.sh diff --git a/archivers/lzo/Makefile b/archivers/lzo/Makefile index 367aafb9efec..ca5138ff3dd2 100644 --- a/archivers/lzo/Makefile +++ b/archivers/lzo/Makefile @@ -17,10 +17,15 @@ MAINTAINER= matthias.andree@gmx.de COMMENT= Portable speedy, lossless data compression library USE_AUTOTOOLS= libtool:15 -GNU_CONFIGURE= yes +GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-shared USE_LDCONFIG= yes +post-build: + @${ECHO_MSG} "===> Running self-tests for ${PKGNAME} (can take a few minutes)" + @# override MALLOC_OPTIONS, else tests take excessively long + cd ${WRKSRC} && ${SETENV} MALLOC_OPTIONS=jz ${MAKE} check test + post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} diff --git a/archivers/lzo/files/patch-util-check.sh b/archivers/lzo/files/patch-util-check.sh new file mode 100644 index 000000000000..d661772ff008 --- /dev/null +++ b/archivers/lzo/files/patch-util-check.sh @@ -0,0 +1,11 @@ +--- ./util/check.sh~ 2009-01-04 10:28:23.000000000 +0100 ++++ ./util/check.sh 2009-01-04 10:33:34.000000000 +0100 +@@ -13,7 +13,7 @@ + LTEST="ltest" + test -x ./ltest/ltest && LTEST="./ltest/ltest" + test -x ./ltest.exe && LTEST="./ltest.exe" +-LFLAGS="-q -n2" ++LFLAGS="-Q -n2" + + dir="${*-.}" +