[MacPorts] #66031: selfupdate throws error changing directory permissions on Monterey and Big Sur

MacPorts noreply at macports.org
Sat Oct 29 21:59:17 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):

 Running the command `port -vd selfupdate` (of version 2.8) as user root in
 a *shell* buffer in `GNU Emacs` in root's home directory `/var/root` on
 `macOS Monterey, Version 12.6` leads to errors:

 {{{
 total size is 18150409  speedup is 58.21
 DEBUG: successful verification with key /opt/local/share/macports
 /macports-pubkey.pem
 DEBUG: system: chmod -R a+r
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
 Synchronizing local ports tree from file:///opt/local_ports
 DEBUG: 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
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/66031#comment:21>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list