diff options
author | richard <richard@pkgsrc.org> | 2016-05-21 05:22:40 +0000 |
---|---|---|
committer | richard <richard@pkgsrc.org> | 2016-05-21 05:22:40 +0000 |
commit | 672deebe35473f7b9a5ae71cbde848db517f26df (patch) | |
tree | 0ef5f2072a4423b5d346b51b4c6a0a82c5bceb2a /lang | |
parent | 11e6fceb9423d86ec075e88427ccf68f086b731f (diff) | |
download | pkgsrc-672deebe35473f7b9a5ae71cbde848db517f26df.tar.gz |
Back to the basic problem... check-perms.mk issues warnings/errors on text
files installed group and/or world writeable so only search and fix in DESTDIR.
This avoids touching any files used during build at the same time.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/extension.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk index b8f7dd4074a..6c4207883fb 100644 --- a/lang/python/extension.mk +++ b/lang/python/extension.mk @@ -1,4 +1,4 @@ -# $NetBSD: extension.mk,v 1.44 2016/05/20 16:37:27 wiz Exp $ +# $NetBSD: extension.mk,v 1.45 2016/05/21 05:22:40 richard Exp $ .include "../../lang/python/pyversion.mk" @@ -28,10 +28,11 @@ PYSETUPTESTTARGET?= test PYSETUPTESTARGS?= #empty PYSETUPSUBDIR?= #empty -pre-patch: fixup-python-writeable-source +post-install: fixup-python-writeable-source .PHONY: fixup-python-writeable-source fixup-python-writeable-source: - ${FIND} ${WRKSRC} -type f -exec ${CHMOD} go-w {} \; + ${FIND} ${DESTDIR} -type f \( -perm -g+w -o -perm -o+w \) \ + -exec ${CHMOD} go-w '{}' + do-build: (cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \ |