From matthias.andree@gmx.de  Sun Jan  4 09:45:13 2009
Return-Path: <matthias.andree@gmx.de>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 60265106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  4 Jan 2009 09:45:13 +0000 (UTC)
	(envelope-from matthias.andree@gmx.de)
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20])
	by mx1.freebsd.org (Postfix) with SMTP id BF7EF8FC17
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  4 Jan 2009 09:45:12 +0000 (UTC)
	(envelope-from matthias.andree@gmx.de)
Received: (qmail invoked by alias); 04 Jan 2009 09:45:10 -0000
Received: from e179160204.adsl.alicedsl.de (EHLO m2a2.dyndns.org) [85.179.160.204]
  by mail.gmx.net (mp047) with SMTP; 04 Jan 2009 10:45:10 +0100
Received: from rho.emma.line.org (unknown [192.168.0.198])
	by merlin.emma.line.org (Postfix) with ESMTP id 5D88317134;
	Sun,  4 Jan 2009 10:45:09 +0100 (CET)
Received: by rho.emma.line.org (Postfix, from userid 500)
	id D60725CB5; Sun,  4 Jan 2009 10:45:08 +0100 (CET)
Message-Id: <20090104094508.D60725CB5@rho.emma.line.org>
Date: Sun,  4 Jan 2009 10:45:08 +0100 (CET)
From: Matthias Andree <matthias.andree@gmx.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [MAINTAINER] archivers/lzo: add self-test
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         130153
>Category:       ports
>Synopsis:       [MAINTAINER] archivers/lzo: add self-test
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 04 09:50:04 UTC 2009
>Closed-Date:    Wed Jan 07 22:17:36 UTC 2009
>Last-Modified:  Wed Jan  7 22:20:07 UTC 2009
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Sun Jan 4 10:47:17 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=130153 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Wed Jan 7 22:17:35 UTC 2009 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=130153 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/130153: commit references a PR
Date: Wed,  7 Jan 2009 22:17:50 +0000 (UTC)

 miwi        2009-01-07 22:17:25 UTC
 
   FreeBSD ports repository
 
   Modified files:
     archivers/lzo        Makefile 
   Added files:
     archivers/lzo/files  patch-util-check.sh 
   Log:
   - 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 <matthias.andree@gmx.de> (maintainer)
   
   Revision  Changes    Path
   1.38      +6 -1      ports/archivers/lzo/Makefile
   1.1       +11 -0     ports/archivers/lzo/files/patch-util-check.sh (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
