[MacPorts] #46118: gmp pre-configure fails with "couldn't create error file for command"
MacPorts
noreply at macports.org
Wed Dec 3 19:29:12 PST 2014
#46118: gmp pre-configure fails with "couldn't create error file for command"
------------------------------+--------------------------------
Reporter: mgs0lid_sn4ke@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.3.3
Resolution: | Keywords:
Port: |
------------------------------+--------------------------------
Comment (by ryandesign@…):
Yes you are using `sudo`, but MacPorts drops privileges to an unprivileged
"macports" user. gmp's pre-configure block runs `exec`. According to my
Google search, the error message can occur when `exec` tries to create a
temporary file but does not have permission to do so, because the tmp
directory is not world writable. The question is: which tmp
directory—/tmp, /var/tmp, something in /var/folders? MacPorts creates a
.tmp directory in the work directory, but Tcl might be using a different
one; certainly the MacPorts-created one should have correct permissions.
We've seen other errors before due to tmp directories in /var/folders
mysteriously having wrong permissions, which were resolved by removing the
offending directory and letting the system recreate it, possibly following
a restart.
--
Ticket URL: <https://trac.macports.org/ticket/46118#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list