Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port1.0: Allow accessing clonebin in trace mode #355

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/port1.0/port_autoconf.tcl.in
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ namespace eval portutil::autoconf {
variable prefix "@prefix_expanded@"
variable tcl_package_path "@TCL_PACKAGE_PATH@"
variable trace_sipworkaround_path "@DARWINTRACE_SIP_WORKAROUND_PATH@"
variable clonebin_path "@CLONEBIN_PATH@"
}
2 changes: 2 additions & 0 deletions src/port1.0/porttrace.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ namespace eval porttrace {

# Grant access to the directory we use to mirror binaries under SIP
allow trace_sandbox ${portutil::autoconf::trace_sipworkaround_path}
# Grant access to MacPorts' clonebin utilities
allow trace_sandbox ${portutil::autoconf::clonebin_path}
# Defer back to MacPorts for dependency checks inside $prefix. This must be at the end,
# or it'll be used instead of more specific rules.
ask trace_sandbox $prefix
Expand Down