Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jul 2010 22:42:16 +0400
From:      Anonymous <swell.k@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/148604: [patch] textproc/diffstat: prefer xz(1) over lzcat(1)
Message-ID:  <86wrsx9a7r.fsf@gmail.com>
Resent-Message-ID: <201007141850.o6EIo1Wq005704@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         148604
>Category:       ports
>Synopsis:       [patch] textproc/diffstat: prefer xz(1) over lzcat(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 14 18:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
>Description:
lzcat(1) is not required to support XZ format. Moreover, lzcat(1) in
/head and in archivers/xz does *not* support it. And that is what is
usually used for XZ_CMD when USE_XZ is defined.
>How-To-Repeat:
$ diffstat iconv-20100708.diff.xz
lzcat: iconv-20100708.diff.xz: File format not recognized
 0 files changed
>Fix:
--- a.diff begins here ---
Index: textproc/diffstat/Makefile
===================================================================
RCS file: /a/.cvsup/ports/textproc/diffstat/Makefile,v
retrieving revision 1.30
diff -u -p -r1.30 Makefile
--- textproc/diffstat/Makefile	12 Dec 2009 05:23:57 -0000	1.30
+++ textproc/diffstat/Makefile	14 Jul 2010 18:34:45 -0000
@@ -20,6 +20,9 @@ MAKEFILE=	makefile
 MAN1=		diffstat.1
 PLIST_FILES=	bin/diffstat
 
+post-patch:	.SILENT
+	${REINPLACE_CMD} 's/lzcat/xz/' ${WRKSRC}/configure
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/diffstat ${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86wrsx9a7r.fsf>