diff options
author | abs <abs@pkgsrc.org> | 2009-09-06 23:35:59 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2009-09-06 23:35:59 +0000 |
commit | 0146032c959cd5e3ea6fb0cfa54445c9e472d5df (patch) | |
tree | 80f8c5c6fd76ea5d04e6d09ca40243cbe34b3437 /devel/py-setuptools | |
parent | fbf3300591b6408d3e0d7402020b30adeeed6edd (diff) | |
download | pkgsrc-0146032c959cd5e3ea6fb0cfa54445c9e472d5df.tar.gz |
The workaround for NetBSD-current's unzip(1) not appearing to look
for a zip header anywhere but byte offset 0 makes normal unzip
report an error after extraction, so add a '|| true' workaround to
the workaround... and a comment as to what is going on so the next
person poking here doesn't have quite such a wtf moment...
Fixes build on at least NetBSD 5.0
Diffstat (limited to 'devel/py-setuptools')
-rw-r--r-- | devel/py-setuptools/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/devel/py-setuptools/Makefile b/devel/py-setuptools/Makefile index 2fa0426683b..ebb553e7deb 100644 --- a/devel/py-setuptools/Makefile +++ b/devel/py-setuptools/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2009/09/05 21:53:51 tnn Exp $ +# $NetBSD: Makefile,v 1.13 2009/09/06 23:35:59 abs Exp $ # EGG_VERSION= 0.6c9 @@ -32,9 +32,12 @@ EGG_NAME= ${DISTNAME:S/2.4/${PYVERSSUFFIX}/} TARGET_NAME= ${PREFIX}/${PYSITELIB}/${EGG_NAME} do-extract: + # Ugly workaround for NetBSD-current's unzip(1) not appearing to look for a zip + # header anywhere but byte offset 0. Unfortunately the workaround then makes + # normal unzip report an error after extraction, hence the '|| true' ${MKDIR} ${WRKSRC} dd if=${DISTDIR}/${DISTNAME} of=${WRKDIR}/tmp.zip skip=376 bs=1 - ${TOOLS_CMD.unzip} -d ${WRKSRC} ${WRKDIR}/tmp.zip + ${TOOLS_CMD.unzip} -d ${WRKSRC} ${WRKDIR}/tmp.zip || true post-extract: chmod -R go-w ${WRKSRC} |