ports/130153: [MAINTAINER] archivers/lzo: add self-test

Matthias Andree matthias.andree at gmx.de
Sun Jan 4 09:50:05 UTC 2009


>Number:         130153
>Category:       ports
>Synopsis:       [MAINTAINER] archivers/lzo: add self-test
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 04 09:50:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Andree
>Release:        FreeBSD 7.0-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD rho.emma.line.org 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #10: Thu Nov  6 02:12:42 CET
>Description:
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.

Fix whitespace (blanks, rather than TAB, on GNU_CONFIGURE line) to
please portlint.

Added file(s):
- files/patch-util-check.sh

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- lzo-1.08_2,1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/archivers/lzo/Makefile /usr/home/emma/ports/archivers/lzo/Makefile
--- /usr/ports/archivers/lzo/Makefile	2008-08-21 08:16:13.000000000 +0200
+++ /usr/home/emma/ports/archivers/lzo/Makefile	2009-01-04 10:42:49.000000000 +0100
@@ -17,10 +17,15 @@
 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 -ruN --exclude=CVS /usr/ports/archivers/lzo/files/patch-util-check.sh /usr/home/emma/ports/archivers/lzo/files/patch-util-check.sh
--- /usr/ports/archivers/lzo/files/patch-util-check.sh	1970-01-01 01:00:00.000000000 +0100
+++ /usr/home/emma/ports/archivers/lzo/files/patch-util-check.sh	2009-01-04 10:33:51.000000000 +0100
@@ -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="${*-.}"
+ 
--- lzo-1.08_2,1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list