ports/148110: [patch][fix] update py-liblzma 0.5.2 -> 0.5.3
David Naylor
naylor.b.david at gmail.com
Thu Jun 24 14:40:04 UTC 2010
>Number: 148110
>Category: ports
>Synopsis: [patch][fix] update py-liblzma 0.5.2 -> 0.5.3
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu Jun 24 14:40:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: David Naylor
>Release: FreeBSD 9
>Organization:
Private
>Environment:
FreeBSD dragon.dg 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Sat Jun 19 19:08:38 SAST 2010 root at dragon.dg:/tmp/home/freebsd9/src/sys/DRAGON amd64
>Description:
Update py-liblzma 0.5.2 to 0.5.3 and fix failure to link to liblzma.so when xz from ports not installed but available in base. This also prevents py-liblzma from using the ports liblzma.so version when base version is available.
ChangeLog from port:
- update compression option names in API documentation.
- fix segfault with LZMACompressor (#521975).
- fix compress() & LZMACompressor.flush() finishing when there's still data left.
(#521975 & #537199)
- Synchronize code with bz2module.c from python upstream:
o Issue #7205: Fix a possible deadlock when using a LZMAFile object from
several threads at once.
>How-To-Repeat:
python -c "import lzma"
>Fix:
See patch
Patch attached with submission follows:
diff -ur /usr/ports/archivers/py-liblzma/Makefile py-liblzma/Makefile
--- /usr/ports/archivers/py-liblzma/Makefile 2010-05-22 03:03:50.000000000 +0200
+++ py-liblzma/Makefile 2010-06-24 16:21:45.000000000 +0200
@@ -5,8 +5,7 @@
# $FreeBSD: ports/archivers/py-liblzma/Makefile,v 1.5 2010/05/21 16:23:46 naddy Exp $
PORTNAME= liblzma
-PORTVERSION= 0.5.2
-PORTREVISION= 1
+PORTVERSION= 0.5.3
CATEGORIES= archivers python
MASTER_SITES= ${MASTER_SITE_CHEESESHOP}source/p/pyliblzma/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -26,6 +25,10 @@
.if ${OSVERSION} < 800505 || (${OSVERSION} >= 900000 && ${OSVERSION} < 900012)
LIB_DEPENDS+= lzma.0:${PORTSDIR}/archivers/xz
+.else
+post-patch:
+ @${REINPLACE_CMD} -e 's/pc_cflags = .*/pc_cflags = ""/' \
+ -e 's/pc_libs = .*/pc_libs = "-llzma"/' ${WRKSRC}/setup.py
.endif
.include <bsd.port.post.mk>
diff -ur /usr/ports/archivers/py-liblzma/distinfo py-liblzma/distinfo
--- /usr/ports/archivers/py-liblzma/distinfo 2009-03-22 17:22:47.000000000 +0200
+++ py-liblzma/distinfo 2010-06-24 15:52:15.000000000 +0200
@@ -1,3 +1,3 @@
-MD5 (pyliblzma-0.5.2.tar.bz2) = 8e5596bc60e784c74f10e94820655336
-SHA256 (pyliblzma-0.5.2.tar.bz2) = 44716f94108ede658183c4036f60169b58ea77a52aa8fd6a9a412fb8d551a016
-SIZE (pyliblzma-0.5.2.tar.bz2) = 49011
+MD5 (pyliblzma-0.5.3.tar.bz2) = 500f61116ee1ab4063b49c121786863a
+SHA256 (pyliblzma-0.5.3.tar.bz2) = 08d762f36d5e59fb9bb0e22e000c300b21f97e35b713321ee504cfb442667957
+SIZE (pyliblzma-0.5.3.tar.bz2) = 43498
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list