'port pkg' on 10.8

Adam Mercer ram at macports.org
Wed Jun 26 19:01:32 PDT 2013


On Wed, Jun 26, 2013 at 8:35 PM, Joshua Root <jmr at macports.org> wrote:

> 'sudo port pkg MacPorts' will do. Then look in Console and see what's
> being denied.

The only thing I can see in Console relating to this the the sudo
calls to build the pkg, i.e.:

26/06/2013 20:53:23.542 sudo[28919]:      ram : TTY=ttys002 ;
PWD=/Users/ram ; USER=root ; COMMAND=/opt/local/bin/port pkg MacPorts

I've definitely made the change to portsandbox.tcl:

$ sed -n '79,86p' /opt/local/share/macports/Tcl/port1.0/portsandbox.tcl
        lappend allow_dirs $ccache_dir
    }

    set portsandbox_profile "(version 1) (debug deny) (allow default)
(deny file-write*) \
(allow file-write-data (literal \"/dev/null\") (literal \"/dev/zero\") \
(literal \"/dev/dtracehelper\") (literal \"/dev/tty\") \
(literal \"/dev/stdin\") (literal \"/dev/stdout\") (literal \"/dev/stderr\") \
(regex #\"^/dev/fd/\")) (allow file-write* \
$

Cheers

Adam


More information about the macports-dev mailing list