A question about adding a path to the sandbox profile and about `port upgrade outdated`

René J.V. Bertin rjvbertin at gmail.com
Mon Jan 22 20:55:41 UTC 2024


Hello,

1) How do I add information to the portsandbox_profile such that a given path is whitelisted during the destroot step? Based on the few examples that do this in the pre-test I tried to do it in the pre-destroot but that doesn't appear to work. Doing it in the Portfile root also doesn't work. What does work is to disable the sandbox completely, which doesn't make sense. I've copied my syntax from portsandbox.tcl and see no errors when I print portsandbox_profile after appending to it.

2) Does `port upgrade outdated` do an explicit `port clean foo` before doing `port upgrade foo`, when it's the turn of an outdated port:foo to be upgraded? IOW, in the following scenario where an update for port:foo is pulled:

> port selfupdate
> port -n destroot foo configure.optflags="some options" configure.compiler=macports-clang-999
> port upgrade outdated

will port:foo be installed with the standard compiler and options, and its build with custom options and compiler be lost?

Thanks in advance,
R.


More information about the macports-users mailing list