-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure writing temporary files in MacOS X's /var/folders #3576
Comments
After further investigations, the problem comes from So, I think the issue can be reduced to the question of whether
So, from the moment makefiles know how to rely on |
Thanks for reporting. Note that on the linux script, we added the variable |
Yes, they are (via
The following patch e.g. works, whether if [ -z ${TMPDIR+x} ]; then
TMP=`getconf DARWIN_USER_TEMP_DIR`
add_mounts rw $TMP
add_mounts rw /tmp
else
add_mounts rw $TMPDIR
fi Both |
Thanks for the check! |
I can make a PR but I can't certify it works on all intended installations. In particular, |
Sorry, I forgot to give you some indications. |
Ah, ok, that's simpler then. |
Hi, after upgrading to opam 2.0.0, I get fatal
couldn't create cache file '/var/folders/...'
andunable to open output file '/var/folders/...'
errors on MacOS 10.11.1 for many packages (e.g.ocamlfind
,ocamlbuild
,camlp5
, ...). This is apparently due to sandboxing permissions, since, if I add the lineadd_mounts rw "/var/folders/my/local_cryptic_name_folder
tosandbox.sh
, it stops failing. However, I have no idea what is the right thing to do. Do you have an idea whether this is a problem of configuration specifically on my installation or an opam-level problem? For instance, what are the policies wrt temporary files, their location, and there permissions?opam config report
gives:The text was updated successfully, but these errors were encountered: