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

jmr at macports.org jmr at macports.org
Sat Nov 3 01:03:45 PDT 2012


Revision: 99363
          http://trac.macports.org//changeset/99363
Author:   jmr at macports.org
Date:     2012-11-03 01:03:45 -0700 (Sat, 03 Nov 2012)
Log Message:
-----------
don't sandbox configure and build phases unless they're run as root, since there's a very noticeable performance penalty on Lion, with sandboxd using a high CPU percentage

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-11-03 07:46:45 UTC (rev 99362)
+++ trunk/base/src/port1.0/portsandbox.tcl	2012-11-03 08:03:45 UTC (rev 99363)
@@ -54,6 +54,14 @@
             set portsandbox_profile ""
             return
         }
+        configure -
+        build {
+            global ${target}.asroot
+            if {![set ${target}.asroot]} {
+                set portsandbox_profile ""
+                return
+            }
+        }
         install -
         uninstall {
             set allow_dirs [list [file dirname [get_portimage_path]]]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121103/fbefbac0/attachment.html>


More information about the macports-changes mailing list