[MacPorts] #66031: selfupdate throws error changing directory permissions on Monterey and Big Sur
MacPorts
noreply at macports.org
Sat Oct 22 18:05:41 UTC 2022
#66031: selfupdate throws error changing directory permissions on Monterey and Big
Sur
--------------------------+--------------------------------------
Reporter: petermichor | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.8.0
Resolution: | Keywords: catalina bigsur monterey
Port: |
--------------------------+--------------------------------------
Comment (by ballapete):
On my Monterey (12.6) Mac the second `selfupdate` leads to:
{{{
EBUG: euid/egid changed to: 501/0, env: HOME=/opt/local/var/macports/home
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.6zAVX3We7g/Listeners
DEBUG: couldn't change working directory to "": no such file or directory
while executing
"cd $oldPWD"
(procedure "macports::GetVCSUpdateCmd" line 33)
invoked from within
"macports::GetVCSUpdateCmd $portdir"
Could not access contents of /opt/local_ports
DEBUG: euid/egid restored to: 0/0, env restored
DEBUG: Couldn't sync the ports tree: Synchronization of 1 source failed
while executing
"error "Couldn't sync the ports tree: $eMessage""
(procedure "selfupdate::main" line 118)
invoked from within
"selfupdate::main {options_global_order {} options_selfupdate_order {}}
base_updated"
("uplevel" body line 1)
invoked from within
"uplevel [list selfupdate::main $optionslist $updatestatusvar]"
(procedure "macports::selfupdate" line 2)
invoked from within
"macports::selfupdate [array get options] base_updated"
Error: Couldn't sync the ports tree: Synchronization of 1 source failed
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the
ports tree: Synchronization of 1 source failed
root 238 /\ .
.
/var/root
root 239 /\ port -v
port -v
MacPorts 2.8.0
Entering shell mode... ("help" for help, "quit" to quit)
[var/root] >
^D
Goodbye
root 240 /\
}}}
Besides this the `stty` setting are changed and commands now are echoed.
--
Ticket URL: <https://trac.macports.org/ticket/66031#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list