pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/math/py-scipy12
Module Name: pkgsrc
Committed By: gdt
Date: Thu Mar 19 19:28:52 UTC 2020
Modified Files:
pkgsrc/math/py-scipy12: Makefile
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/math/py-scipy12/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/math/py-scipy12/Makefile
diff -u pkgsrc/math/py-scipy12/Makefile:1.3 pkgsrc/math/py-scipy12/Makefile:1.4
--- pkgsrc/math/py-scipy12/Makefile:1.3 Mon Nov 4 17:47:30 2019
+++ pkgsrc/math/py-scipy12/Makefile Thu Mar 19 19:28:52 2020
@@ -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/iso
.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