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

MacPorts noreply at macports.org
Wed Jan 4 11:50:55 UTC 2023


#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 macOS Monterey, Version 12.6, it also does not work from
 /var/root/.emacs.d:

 {{{
 root 260 /\ port -vd selfupdate
 DEBUG: Copying /var/root/Library/Preferences/com.apple.dt.Xcode.plist to
 /opt/local/var/macports/home/Library/Preferences
 DEBUG: MacPorts sources location:
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
 --->  Updating MacPorts base sources using rsync
 DEBUG: system: /usr/bin/rsync -rtzvl --delete-after --include=/base.tar
 --include=/base.tar.rmd160 --exclude=*
 rsync://rsync.macports.org/macports/release/tarballs/
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs

 Willkommen auf dem RSYNC-server auf ftp.fau.de.
 Nicht all unsere Mirror sind per rsync verfuegbar.

 Welcome to the RSYNC daemon on ftp.fau.de.
 Not all of our mirrors are available through rsync.


 receiving file list ... done
 ./

 sent 66 bytes  received 98 bytes  328.00 bytes/sec
 total size is 113716736  speedup is 693394.73
 DEBUG: successful verification with key /opt/local/share/macports
 /macports-pubkey.pem
 DEBUG: system: /usr/bin/tar -C
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/tmp
 -xf
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/base.tar
 MacPorts base version 2.8.0 installed,
 DEBUG: Rebuilding and reinstalling MacPorts if needed
 MacPorts base version 2.8.0 downloaded.
 --->  Updating the ports tree
 Synchronizing local ports tree from
 rsync://rsync.macports.org/macports/release/tarballs/ports.tar
 DEBUG: system: /usr/bin/rsync -rtzvl --delete-after --include=/ports.tar
 --include=/ports.tar.rmd160 --exclude=*
 rsync://rsync.macports.org/macports/release/tarballs/
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs

 Willkommen auf dem RSYNC-server auf ftp.fau.de.
 Nicht all unsere Mirror sind per rsync verfuegbar.

 Welcome to the RSYNC daemon on ftp.fau.de.
 Not all of our mirrors are available through rsync.


 receiving file list ... done
 ./
 ports.tar
 ports.tar.rmd160

 sent 70650 bytes  received 494005 bytes  376436.67 bytes/sec
 total size is 101424128  speedup is 179.62
 DEBUG: successful verification with key /opt/local/share/macports
 /macports-pubkey.pem
 DEBUG: system: /usr/bin/tar -C
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/tmp
 -xf
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports.tar
 DEBUG: system: /usr/bin/rsync -rtzvl --delete-after
 --include=/PortIndex.rmd160 --include=/PortIndex --exclude=*
 rsync://rsync.macports.org/macports/release/tarballs/PortIndex_darwin_21_i386/
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs

 Willkommen auf dem RSYNC-server auf ftp.fau.de.
 Nicht all unsere Mirror sind per rsync verfuegbar.

 Welcome to the RSYNC daemon on ftp.fau.de.
 Not all of our mirrors are available through rsync.


 receiving file list ... done
 ./
 PortIndex
 PortIndex.rmd160

 sent 26092 bytes  received 123551 bytes  99762.00 bytes/sec
 total size is 18718157  speedup is 125.09
 DEBUG: failed verification with key /opt/local/share/macports/macports-
 pubkey.pem
 DEBUG: openssl output: Verification Failure
 child process exited abnormally
 DEBUG: system: chmod -R a+r
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
 DEBUG: system: /opt/local/bin/portindex
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports
 Creating port index in
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports
 Adding port audio/abcde
 Adding port audio/audacity
 Adding subport audacity-manual
 Adding subport audacity-legacy
 Adding subport audacity-devel
 Adding port audio/audiofile
 …
 Adding port textproc/miller
 Adding port textproc/ov
 Adding port textproc/qsv
 Adding port textproc/yj
 Adding port x11/tk

 Total number of ports parsed:   438
 Ports successfully parsed:      438
 Ports failed:                   0
 Up-to-date ports skipped:       30260

 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.XxtVAThczQ/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:30>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list