diff options
author | gdt <gdt@pkgsrc.org> | 2020-03-19 19:28:52 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2020-03-19 19:28:52 +0000 |
commit | ba694abb3cbf795a667b0766c6f2080db09d0667 (patch) | |
tree | 2d16c04848b11568fc7268fdd4c552934cd151d2 /math | |
parent | 8f2495d43269528473a2df0e20962a3adcffe06c (diff) | |
download | pkgsrc-ba694abb3cbf795a667b0766c6f2080db09d0667.tar.gz |
math/py-scipy12: Work around mac extraction woes
On macOS 10.13 (at least), unpacking the distfile as root results in
files that have strange permissions, including group/world writable
and executable. The upstream distfile has these, but extracting on
other systems or on mac not as root applies some sort of umask. On
Darwin only, chmod these spurious bits away. Tested to work as
non-root and root on macOS 10.13, and by inspection will not affect
!macOS.
Diffstat (limited to 'math')
-rw-r--r-- | math/py-scipy12/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/math/py-scipy12/Makefile b/math/py-scipy12/Makefile index 5dfc89a6ebd..fc97eecc0b1 100644 --- a/math/py-scipy12/Makefile +++ b/math/py-scipy12/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2019/11/04 17:47:30 rillig Exp $ +# $NetBSD: Makefile,v 1.4 2020/03/19 19:28:52 gdt Exp $ DISTNAME= scipy-1.2.2 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} @@ -35,6 +35,14 @@ REPLACE_PYTHON+= scipy/sparse/linalg/isolve/tests/test_gcrotmk.py .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "Darwin" +# When unpacked by root, files with excessive permissions (group and +# world writable, gratuitously executable) result, apparently only on +# Darwin. Use a large hammer for now. +# \todo Consider using a working EXTRACT tool. +post-extract: + chmod -R go-w ${WRKDIR} + ${FIND} ${WRKDIR} -type f | xargs chmod -x + .PHONY: fix-darwin-install-name post-install: fix-darwin-install-name fix-darwin-install-name: |