ports/138866: [patch] archivers/lzmautils-devel: update to 4.999.9

Anonymous swell.k at gmail.com
Wed Sep 16 01:10:02 UTC 2009


>Number:         138866
>Category:       ports
>Synopsis:       [patch] archivers/lzmautils-devel: update to 4.999.9
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 16 01:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD 9.0-CURRENT #0 r197214M: Tue Sep 15 03:21:13 UTC 2009     root at luffy:/usr/obj/usr/src/sys/PHOENIX  amd64
>Description:
- update
- amd64 is actually X86_64, so define it there; affects liblzma/common/bsr.h
- use system byteswapping functions
- enable static library; useful if one wants to compile tar/libarchive with
  xz/lzma support into /rescue
- force dynamic linking against liblzma.so for binaries. Much like
  system gzip(1) and bzip2(1) that use shared lib.
>How-To-Repeat:
>Fix:
--- lzmautils-devel.diff begins here ---
Index: archivers/lzmautils-devel/Makefile
===================================================================
RCS file: /home/csup/ports/archivers/lzmautils-devel/Makefile,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile
--- archivers/lzmautils-devel/Makefile	16 Feb 2009 10:07:41 -0000	1.8
+++ archivers/lzmautils-devel/Makefile	16 Sep 2009 00:48:32 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	lzmautils
-DISTVERSION=	4.999.8
+DISTVERSION=	4.999.9
 CATEGORIES=	archivers
 MASTER_SITES=	http://tukaani.org/xz/ \
 		http://freebsd.unixfreunde.de/sources/
@@ -22,16 +22,41 @@ USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 USE_GNOME=	gnomehack
 
-CONFIGURE_ARGS+=	--disable-static --disable-nls  # No translations apparent
+CONFIGURE_ARGS+=	--disable-nls --enable-dynamic # No translations apparent
 
 .if defined(WITHOUT_THREADS)
 CONFIGURE_ARGS+=	--disable-threads
 .endif
 
-MAN1=		lzdiff.1 lzgrep.1 lzmore.1
-MLINKS=		lzdiff.1 lzcmp.1 \
-		lzgrep.1 lzegrep.1 \
-		lzgrep.1 lzfgrep.1 \
-		lzmore.1 lzless.1
+DOCSDIR_REL=	share/doc/xz
+
+MAN1=		lzmainfo.1 xz.1 \
+		xzdec.1 xzdiff.1 \
+		xzgrep.1 xzless.1 \
+		xzmore.1
+
+MLINKS=		xz.1 lzcat.1 \
+		xz.1 lzma.1 \
+		xz.1 unlzma.1 \
+		xz.1 unxz.1 \
+		xz.1 xzcat.1 \
+		xzdec.1 lzmadec.1 \
+		xzdiff.1 lzcmp.1 \
+		xzdiff.1 lzdiff.1 \
+		xzdiff.1 xzcmp.1 \
+		xzgrep.1 lzegrep.1 \
+		xzgrep.1 lzfgrep.1 \
+		xzgrep.1 lzgrep.1 \
+		xzgrep.1 xzegrep.1 \
+		xzgrep.1 xzfgrep.1 \
+		xzless.1 lzless.1 \
+		xzmore.1 lzmore.1
+
+post-patch:	.SILENT
+	${REINPLACE_CMD} -E -e 's/x86_64/amd64/g' \
+		-e 's/(bswap)_(16|32|64)/\1\2/g' \
+		-e 's|byteswap\.h|sys/endian.h|g' \
+		-e 's|byteswap_h|sys_endian_h|g' \
+		${WRKSRC}/configure
 
 .include <bsd.port.mk>
Index: archivers/lzmautils-devel/distinfo
===================================================================
RCS file: /home/csup/ports/archivers/lzmautils-devel/distinfo,v
retrieving revision 1.6
diff -u -p -r1.6 distinfo
--- archivers/lzmautils-devel/distinfo	15 Feb 2009 17:15:19 -0000	1.6
+++ archivers/lzmautils-devel/distinfo	16 Sep 2009 00:05:42 -0000
@@ -1,3 +1,3 @@
-MD5 (xz-4.999.8beta.tar.gz) = f00967331a487e88d51207fe17c56f52
-SHA256 (xz-4.999.8beta.tar.gz) = 059da5a9fe51c28b38f67e5b8063a451c516f37fbb268177fd1081b70dd97f53
-SIZE (xz-4.999.8beta.tar.gz) = 879382
+MD5 (xz-4.999.9beta.tar.gz) = f2073579b6da2fe35d453adee1aaf1b2
+SHA256 (xz-4.999.9beta.tar.gz) = fa3901d1c034842da47fec1a24a9b5a5bd435f5ecfbb444c168512e2daddb86f
+SIZE (xz-4.999.9beta.tar.gz) = 1037541
Index: archivers/lzmautils-devel/pkg-plist
===================================================================
RCS file: /home/csup/ports/archivers/lzmautils-devel/pkg-plist,v
retrieving revision 1.4
diff -u -p -r1.4 pkg-plist
--- archivers/lzmautils-devel/pkg-plist	15 Feb 2009 17:15:19 -0000	1.4
+++ archivers/lzmautils-devel/pkg-plist	16 Sep 2009 00:30:42 -0000
@@ -7,12 +7,20 @@ bin/lzgrep
 bin/lzless
 bin/lzma
 bin/lzmadec
+bin/lzmainfo
 bin/lzmore
 bin/unlzma
 bin/unxz
 bin/xz
 bin/xzcat
+bin/xzcmp
 bin/xzdec
+bin/xzdiff
+bin/xzegrep
+bin/xzfgrep
+bin/xzgrep
+bin/xzless
+bin/xzmore
 include/lzma.h
 include/lzma/base.h
 include/lzma/bcj.h
@@ -28,8 +36,21 @@ include/lzma/stream_flags.h
 include/lzma/subblock.h
 include/lzma/version.h
 include/lzma/vli.h
+lib/liblzma.a
 lib/liblzma.la
 lib/liblzma.so
 lib/liblzma.so.0
 libdata/pkgconfig/liblzma.pc
+%%DOCSDIR%%/AUTHORS
+%%DOCSDIR%%/COPYING
+%%DOCSDIR%%/COPYING.GPLv2
+%%DOCSDIR%%/NEWS
+%%DOCSDIR%%/README
+%%DOCSDIR%%/THANKS
+%%DOCSDIR%%/TODO
+%%DOCSDIR%%/faq.txt
+%%DOCSDIR%%/history.txt
+%%DOCSDIR%%/lzma-file-format.txt
+%%DOCSDIR%%/xz-file-format.txt
 @dirrm include/lzma
+ at dirrm %%DOCSDIR%%
Index: archivers/lzmautils-devel/files/patch-config.h.in
===================================================================
RCS file: archivers/lzmautils-devel/files/patch-config.h.in
diff -N archivers/lzmautils-devel/files/patch-config.h.in
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ archivers/lzmautils-devel/files/patch-config.h.in	16 Sep 2009 00:23:05 -0000
@@ -0,0 +1,13 @@
+--- config.h.in~
++++ config.h.in
+@@ -22,8 +22,8 @@
+ /* Define to 1 if bswap_64 is available. */
+ #undef HAVE_BSWAP_64
+ 
+-/* Define to 1 if you have the <byteswap.h> header file. */
+-#undef HAVE_BYTESWAP_H
++/* Define to 1 if you have the <sys/endian.h> header file. */
++#undef HAVE_SYS_ENDIAN_H
+ 
+ /* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the
+    CoreFoundation framework. */
Index: archivers/lzmautils-devel/files/patch-src-common-bswap.h
===================================================================
RCS file: archivers/lzmautils-devel/files/patch-src-common-bswap.h
diff -N archivers/lzmautils-devel/files/patch-src-common-bswap.h
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ archivers/lzmautils-devel/files/patch-src-common-bswap.h	16 Sep 2009 00:22:04 -0000
@@ -0,0 +1,16 @@
+--- src/common/bswap.h~
++++ src/common/bswap.h
+@@ -20,8 +20,11 @@
+ // bswap_xx macros/functions, which is why we check them separately even
+ // if byteswap.h is available.
+ 
+-#ifdef HAVE_BYTESWAP_H
+-#	include <byteswap.h>
++#ifdef HAVE_SYS_ENDIAN_H
++#	include <sys/endian.h>
++#	define bswap_16 bswap16
++#	define bswap_32 bswap32
++#	define bswap_64 bswap64
+ #endif
+ 
+ #ifndef HAVE_BSWAP_16
--- lzmautils-devel.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list