[99028] trunk/base/src/port1.0/portsandbox.tcl

jmr at macports.org jmr at macports.org
Wed Oct 24 07:06:52 PDT 2012


Revision: 99028
          http://trac.macports.org//changeset/99028
Author:   jmr at macports.org
Date:     2012-10-24 07:06:52 -0700 (Wed, 24 Oct 2012)
Log Message:
-----------
add ccache_dir to sandbox when ccache is enabled

Modified Paths:
--------------
    trunk/base/src/port1.0/portsandbox.tcl

Modified: trunk/base/src/port1.0/portsandbox.tcl
===================================================================
--- trunk/base/src/port1.0/portsandbox.tcl	2012-10-24 14:05:42 UTC (rev 99027)
+++ trunk/base/src/port1.0/portsandbox.tcl	2012-10-24 14:06:52 UTC (rev 99028)
@@ -41,7 +41,8 @@
 # command line usage would be:
 # sandbox-exec -p '(version 1) (allow default) (deny file-write*) (allow file-write* <filter>)' some-command
 proc portsandbox::set_profile {target} {
-    global os.major portsandbox_profile workpath distpath altprefix package.destpath
+    global os.major portsandbox_profile workpath distpath altprefix \
+        package.destpath configure.ccache ccache_dir
 
     switch $target {
         activate -
@@ -67,6 +68,9 @@
 
     # TODO: remove altprefix support
     lappend allow_dirs $workpath $altprefix
+    if {${configure.ccache}} {
+        lappend allow_dirs $ccache_dir
+    }
 
     set portsandbox_profile "(version 1) (allow default) (deny file-write*) \
 (allow file-write-data (literal \"/dev/null\")) (allow file-write* (regex #\"^(/private)?(/var)?/tmp/\" \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121024/f3fb0e5f/attachment.html>


More information about the macports-changes mailing list