[113024] trunk/base/src/port1.0/porttrace.tcl
cal at macports.org
cal at macports.org
Wed Nov 6 17:31:17 PST 2013
Revision: 113024
https://trac.macports.org/changeset/113024
Author: cal at macports.org
Date: 2013-11-06 17:31:17 -0800 (Wed, 06 Nov 2013)
Log Message:
-----------
porttrace.tcl: remove unused code, add more sandbox exceptions, fixes builds using xcodebuild and most others
Modified Paths:
--------------
trunk/base/src/port1.0/porttrace.tcl
Modified: trunk/base/src/port1.0/porttrace.tcl
===================================================================
--- trunk/base/src/port1.0/porttrace.tcl 2013-11-07 01:30:21 UTC (rev 113023)
+++ trunk/base/src/port1.0/porttrace.tcl 2013-11-07 01:31:17 UTC (rev 113024)
@@ -40,7 +40,7 @@
}
proc porttrace::trace_start {workpath} {
- global os.platform developer_dir
+ global os.platform developer_dir macportsuser
if {${os.platform} == "darwin"} {
if {[catch {package require Thread} error]} {
ui_warn "trace requires Tcl Thread package ($error)"
@@ -87,17 +87,25 @@
/tmp \
/private/tmp \
/var/tmp \
- /var/folders \
/private/var/tmp \
+ /var/folders \
+ /private/var/folders \
/var/empty \
/private/var/empty \
- /private/var/folders \
+ /var/run \
+ /private/var/run \
+ /var/db/xcode_select_link \
+ /private/var/db/xcode_select_link \
+ /var/db/mds \
+ /private/var/db/mds \
+ [file normalize ~${macportsuser}/Library/Preferences/com.apple.dt.Xcode.plist] \
+ "$env(HOME)/Library/Preferences/com.apple.dt.Xcode.plist" \
+ /Library/Caches/com.apple.Xcode \
/dev \
/etc/passwd \
/etc/groups \
/etc/localtime \
[file normalize ${developer_dir}/../..] \
- /Library/Caches/com.apple.Xcode \
"$env(HOME)/.ccache"]
if {[info exists env(TMPDIR)]} {
lappend trace_sandbox $env(TMPDIR)
@@ -119,23 +127,9 @@
# Enable the fence.
# Only done for targets that should only happen in the sandbox.
proc porttrace::trace_enable_fence {} {
- global env trace_sandboxbounds
- set env(DARWINTRACE_SANDBOX_BOUNDS) $trace_sandboxbounds
tracelib enablefence
}
-# Disable the fence.
-# Unused yet.
-proc porttrace::trace_disable_fence {} {
- global env macosx_version
- if [info exists env(DARWINTRACE_SANDBOX_BOUNDS)] {
- unset env(DARWINTRACE_SANDBOX_BOUNDS)
- if {$macosx_version == "10.5"} {
- unsetenv DARWINTRACE_SANDBOX_BOUNDS
- }
- }
-}
-
# Check the list of ports.
# Output a warning for every port the trace revealed a dependency on
# that isn't included in portslist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131106/93de5a27/attachment.html>
More information about the macports-changes
mailing list