<pre style='margin:0'>
Clemens Lang (neverpanic) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/edff5a86e5bda0ef1e4ae410ae89e2d2b20954c8">https://github.com/macports/macports-base/commit/edff5a86e5bda0ef1e4ae410ae89e2d2b20954c8</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new edff5a8 port1.0: Fix tracing with empty configure.sdkroot
</span>edff5a8 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit edff5a86e5bda0ef1e4ae410ae89e2d2b20954c8
</span>Author: Clemens Lang <cal@macports.org>
AuthorDate: Mon Jul 16 23:26:22 2018 +0200
<span style='display:block; white-space:pre;color:#404040;'> port1.0: Fix tracing with empty configure.sdkroot
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> a9579836 introduced adding $configure.sdkroot to the trace exception
</span><span style='display:block; white-space:pre;color:#404040;'> list for users that set it manually to a path outside of
</span><span style='display:block; white-space:pre;color:#404040;'> /Applications/Xcode.app. However, in case this does not end up being
</span><span style='display:block; white-space:pre;color:#404040;'> set, it adds an empty entry to the trace mode sandbox, which completely
</span><span style='display:block; white-space:pre;color:#404040;'> breaks it.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fix it by only adding the path if it is not empty.
</span>---
src/port1.0/porttrace.tcl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/porttrace.tcl b/src/port1.0/porttrace.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index b9ae811..2817226 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/porttrace.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/porttrace.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -208,7 +208,9 @@ namespace eval porttrace {
</span> }
# Allow access to SDK if it's not inside the Developer folder.
<span style='display:block; white-space:pre;background:#ffe0e0;'>- allow trace_sandbox "${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${configure.sdkroot} ne ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ allow trace_sandbox "${configure.sdkroot}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
# Allow access to some Xcode specifics
allow trace_sandbox "/var/db/xcode_select_link"
</pre><pre style='margin:0'>
</pre>