summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorabs <abs>2009-09-06 23:35:59 +0000
committerabs <abs>2009-09-06 23:35:59 +0000
commit54321f59bd8c1489a8f46006f7bc3f926a5b6f7a (patch)
tree80f8c5c6fd76ea5d04e6d09ca40243cbe34b3437 /devel
parent182bd9291b64e0f3b6a3db316a704acb04b70768 (diff)
downloadpkgsrc-54321f59bd8c1489a8f46006f7bc3f926a5b6f7a.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')
-rw-r--r--devel/py-setuptools/Makefile7
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}