'port build' is getting EPERM from access(2) on "/var/tmp"

Clemens Lang cal at macports.org
Sat May 10 15:52:40 PDT 2014


Hi,

> Any ideas why under "port build" access(2) returns EPERM on "/var/tmp"
> and how best to resolve this problem?

This might be due to sandboxing used by MacPorts. See
  http://trac.macports.org/browser/trunk/base/src/port1.0/portsandbox.tcl?marks=93#L90
for the line that deals with /var/tmp. Note that the regex that allows
writing matches "/var/tmp/" and everything below it, but not "/var/tmp".

I'm not sure if that's actually the problem here, but that's certainly
something worth trying. You can temporarily disable sandboxing in
macports.conf using `sandbox_enable no' to see if that helps.

-- 
Clemens Lang


More information about the macports-users mailing list