pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/py-scipy12 math/py-scipy12: Work around mac extra...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7985c15c8e7f
branches: trunk
changeset: 425142:7985c15c8e7f
user: gdt <gdt%pkgsrc.org@localhost>
date: Thu Mar 19 19:28:52 2020 +0000
description:
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:
math/py-scipy12/Makefile | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r dcfcda13c577 -r 7985c15c8e7f math/py-scipy12/Makefile
--- a/math/py-scipy12/Makefile Thu Mar 19 17:09:12 2020 +0000
+++ b/math/py-scipy12/Makefile Thu Mar 19 19:28:52 2020 +0000
@@ -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 @@
.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:
Home |
Main Index |
Thread Index |
Old Index