Date: Fri, 24 Oct 2008 06:35:05 GMT From: bf <bf2006a@yahoo.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/128330: [PATCH]archivers/lzma: update to 4.60 beta Message-ID: <200810240635.m9O6Z5HU003236@www.freebsd.org> Resent-Message-ID: <200810240640.m9O6e1xt095335@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 128330 >Category: ports >Synopsis: [PATCH]archivers/lzma: update to 4.60 beta >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: Fri Oct 24 06:40:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: bf >Release: 7-STABLE i386 >Organization: - >Environment: >Description: update to 4.60 beta; remove an outdated change to the source code; add two build knobs and a regression-test target. >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN lzma.orig/Makefile lzma/Makefile --- lzma.orig/Makefile 2008-10-24 00:41:51.709628739 -0400 +++ lzma/Makefile 2008-10-24 02:08:34.970344835 -0400 @@ -6,7 +6,7 @@ # PORTNAME= lzma -PORTVERSION= 4.58 +PORTVERSION= 4.60 CATEGORIES= archivers MASTER_SITES= SFE/sevenzip DISTNAME= lzma${PORTVERSION:S/.//g} @@ -24,11 +24,18 @@ MAKEFILE= makefile.gcc PLIST_FILES= bin/${PORTNAME} CFLAGS+= -D_LZMA_SYSTEM_SIZE_T +.ifdef(WITH_LZMA_PROB32) +#increase the speed of decoding on some 32-bit CPUs, at the expense of doubled +#memory usage for CLzmaDec::probs +CFLAGS+= -D_LZMA_PROB32 +.endif +.ifdef(WITH_LZMA_SIZE_OPT) +#enable some optimizations in LZMA Decoder to get smaller executable code +CFLAGS+= -D_LZMA_SIZE_OPT +.endif PORTDOCS= 7zC.txt 7zFormat.txt Methods.txt history.txt lzma.txt post-patch: - @${REINPLACE_CMD} -e 's|4\.56|${DISTVERSION}|' \ - ${BUILD_WRKSRC}/LzmaAlone.cpp @${REINPLACE_CMD} -e '/bool Open(LPCTSTR fileName, DWORD creationDisposition)/,/}/d'\ ${WRKSRC}/CPP/7zip/Common/FileStreams.h @${REINPLACE_CMD} -e \ @@ -42,4 +49,7 @@ @cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ .endif +regression-test: build + ${BUILD_WRKSRC}/${PORTNAME} b + .include <bsd.port.mk> diff -ruN lzma.orig/distinfo lzma/distinfo --- lzma.orig/distinfo 2008-10-24 00:41:51.710629704 -0400 +++ lzma/distinfo 2008-10-24 02:08:34.970344835 -0400 @@ -1,3 +1,3 @@ -MD5 (lzma458.tar.bz2) = 3cd59ed43ed5cf24202b435dae8deb28 -SHA256 (lzma458.tar.bz2) = 787801737498b018d67f413deddbc32fbde83aa83c6cac53547b85a1344bc436 -SIZE (lzma458.tar.bz2) = 309128 +MD5 (lzma460.tar.bz2) = ba060723502e15256c15debae611909a +SHA256 (lzma460.tar.bz2) = 9e6140563f19ca58c31a8e233cdad652269a758aaddc07b96f3655b19f892c1b +SIZE (lzma460.tar.bz2) = 308767 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810240635.m9O6Z5HU003236>