From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jun 2 10:56:46 2008 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E74D1065673 for ; Mon, 2 Jun 2008 10:56:46 +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 8E4C38FC14 for ; Mon, 2 Jun 2008 10:56:45 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: (qmail invoked by alias); 02 Jun 2008 10:56:43 -0000 Received: from f048065199.adsl.alicedsl.de (EHLO m2a2.dyndns.org) [78.48.65.199] by mail.gmx.net (mp013) with SMTP; 02 Jun 2008 12:56:43 +0200 X-Authenticated: #428038 X-Provags-ID: V01U2FsdGVkX1/fqIJZBiffjDxidAazb/p3uLv0h8bZI2skcSSzLo nqV0k0kUNXb6zR Received: from localhost (localhost [127.0.0.1]) by merlin.emma.line.org (Postfix) with ESMTP id C361F200FC9; Mon, 2 Jun 2008 12:56:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at emma.line.org Received: from m2a2.dyndns.org ([127.0.0.1]) by localhost (m2a2.dyndns.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8qBy-Q1CRCnC; Mon, 2 Jun 2008 12:56:39 +0200 (CEST) Received: from rho.emma.line.org (vpn-rho.emma.line.org [192.168.0.198]) by merlin.emma.line.org (Postfix) with ESMTP id 287F520095C; Mon, 2 Jun 2008 12:56:39 +0200 (CEST) Received: by rho.emma.line.org (Postfix, from userid 500) id 4D1845C8D; Mon, 2 Jun 2008 12:56:41 +0200 (CEST) To: FreeBSD-gnats-submit@freebsd.org From: Matthias Andree Message-Id: <20080602105641.4D1845C8D@rho.emma.line.org> Date: Mon, 2 Jun 2008 12:56:41 +0200 (CEST) X-Y-GMX-Trusted: 0 Cc: freebsd-ports-bugs@freebsd.org Subject: Re: ports/124184: [MAINTAINER] archivers/lzo2: reduce self-test X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2008 10:56:46 -0000 verbosity, add documentation New patch below to heed EXAMPLESDIR, NOPORTEXAMPLES and thereabouts. --- lzo2-2.03_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/archivers/lzo2/Makefile /usr/home/emma/ports/archivers/lzo2/Makefile --- /usr/ports/archivers/lzo2/Makefile 2008-05-30 17:39:24.000000000 +0200 +++ /usr/home/emma/ports/archivers/lzo2/Makefile 2008-06-02 12:47:54.000000000 +0200 @@ -7,6 +7,7 @@ PORTNAME= lzo2 PORTVERSION= 2.03 +PORTREVISION= 1 CATEGORIES= archivers devel MASTER_SITES= http://www.oberhumer.com/opensource/lzo/download/ \ http://fresh.t-systems-sfr.com/unix/src/misc/ \ @@ -24,12 +25,21 @@ USE_LDCONFIG= yes post-build: + @${ECHO_MSG} "===> Running self-tests for ${PKGNAME} (can take a few minutes, without output)" cd ${WRKSRC} && ${MAKE} test post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${REINPLACE_CMD} -e 's,doc/,,' NEWS README +.for i in AUTHORS BUGS COPYING NEWS README THANKS + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/ +.endfor ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR} .endif +.if !defined(NOPORTEXAMPLES) + ${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/[a-z]*.[ch] ${EXAMPLESDIR}/ +.endif .include diff -ruN --exclude=CVS /usr/ports/archivers/lzo2/Makefile~ /usr/home/emma/ports/archivers/lzo2/Makefile~ --- /usr/ports/archivers/lzo2/Makefile~ 1970-01-01 01:00:00.000000000 +0100 +++ /usr/home/emma/ports/archivers/lzo2/Makefile~ 2008-06-02 11:54:54.000000000 +0200 @@ -0,0 +1,45 @@ +# New ports collection makefile for: lzo +# Date created: 21 Feb 1998 +# Whom: giffunip@asme.org +# +# $FreeBSD: ports/archivers/lzo2/Makefile,v 1.41 2008/05/30 15:39:24 miwi Exp $ +# + +PORTNAME= lzo2 +PORTVERSION= 2.03 +PORTREVISION= 1 +CATEGORIES= archivers devel +MASTER_SITES= http://www.oberhumer.com/opensource/lzo/download/ \ + http://fresh.t-systems-sfr.com/unix/src/misc/ \ + http://ftp.uni-koeln.de/util/arc/ +MASTER_SITE_SUBDIR= libs/compression +DISTNAME= lzo-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX} + +MAINTAINER= matthias.andree@gmx.de +COMMENT= Portable speedy, lossless data compression library + +USE_AUTOTOOLS= libtool:15 +GNU_CONFIGURE= yes +CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ARGS= --enable-shared +USE_LDCONFIG= yes + +post-build: + @${ECHO_MSG} "===> Running self-tests for ${PKGNAME} (can take a few minutes, without output)" + cd ${WRKSRC} && ${MAKE} test + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${REINPLACE_CMD} -e 's,doc/,,' NEWS README +.for i in AUTHORS BUGS COPYING NEWS README THANKS + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/ +.endfor + ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR} +.endif +.if !defined(NOPORTEXAMPLES) + ${MKDIR} ${EXAMPLESDIR}/examples + ${INSTALL_DATA} ${WRKSRC}/examples/[a-z]*.[ch] ${EXAMPLESDIR}/ +.endif + +.include diff -ruN --exclude=CVS /usr/ports/archivers/lzo2/files/patch-silence-lzotest.c /usr/home/emma/ports/archivers/lzo2/files/patch-silence-lzotest.c --- /usr/ports/archivers/lzo2/files/patch-silence-lzotest.c 1970-01-01 01:00:00.000000000 +0100 +++ /usr/home/emma/ports/archivers/lzo2/files/patch-silence-lzotest.c 2008-06-02 11:52:19.000000000 +0200 @@ -0,0 +1,27 @@ +This test reduces the lzotest verbosity so that it doesn't print anything +on success. + +--- lzotest/lzotest.c.orig 2008-06-01 10:01:36.000000000 +0200 ++++ lzotest/lzotest.c 2008-06-01 10:03:10.000000000 +0200 +@@ -226,7 +226,7 @@ + + struct corpus_entry_t; + +-int opt_verbose = 2; ++int opt_verbose = 1; + + long opt_c_loops = 0; + long opt_d_loops = 0; +@@ -1910,10 +1910,12 @@ + #elif defined(LZOTEST_USE_DYNLOAD) + # include "dynload/init.ch" + #else ++#if 0 + printf("\nLZO real-time data compression library (v%s, %s).\n", + lzo_version_string(), lzo_version_date()); + printf("Copyright (C) 1996-2008 Markus Franz Xaver Johannes Oberhumer\nAll Rights Reserved.\n\n"); ++#endif + #endif + + + /* diff -ruN --exclude=CVS /usr/ports/archivers/lzo2/pkg-plist /usr/home/emma/ports/archivers/lzo2/pkg-plist --- /usr/ports/archivers/lzo2/pkg-plist 2006-02-23 11:34:20.000000000 +0100 +++ /usr/home/emma/ports/archivers/lzo2/pkg-plist 2008-06-02 11:54:17.000000000 +0200 @@ -11,13 +11,28 @@ include/lzo/lzoconf.h include/lzo/lzodefs.h include/lzo/lzoutil.h +@dirrm include/lzo lib/liblzo2.a lib/liblzo2.la lib/liblzo2.so lib/liblzo2.so.2 +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/BUGS +%%PORTDOCS%%%%DOCSDIR%%/COPYING %%PORTDOCS%%%%DOCSDIR%%/LZO.FAQ %%PORTDOCS%%%%DOCSDIR%%/LZO.TXT %%PORTDOCS%%%%DOCSDIR%%/LZOAPI.TXT %%PORTDOCS%%%%DOCSDIR%%/LZOTEST.TXT +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/THANKS +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dict.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lzopack.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/overlap.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/portab.h +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/portab_a.h +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/precomp.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/precomp2.c +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/simple.c +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%% -@dirrm include/lzo --- lzo2-2.03_1.patch ends here ---