[MacPorts] #63545: port selfupdate silently fails

MacPorts noreply at macports.org
Wed Sep 29 10:07:24 UTC 2021


#63545: port selfupdate silently fails
----------------------+--------------------
 Reporter:  lcvisser  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  base      |    Version:  2.6.4
 Keywords:            |       Port:
----------------------+--------------------
 I routinely run `port selfupdate` as suggested by the application (twice a
 month or so). I noticed I'm still at 2.6.4, while 2.7.1 is available. It
 seems to silently fail:


 {{{
 % sudo port selfupdate
 --->  Updating MacPorts base sources using rsync
 MacPorts base version 2.6.4 installed,
 MacPorts base version 2.7.1 downloaded.
 --->  Updating the ports tree
 --->  MacPorts base is outdated, installing new version 2.7.1
 Installing new MacPorts release in /opt/local as root:wheel; permissions
 0755
 }}}

 Running again immediately after:
 {{{
 % sudo port selfupdate
 --->  Updating MacPorts base sources using rsync
 MacPorts base version 2.6.4 installed,
 MacPorts base version 2.7.1 downloaded.
 --->  Updating the ports tree
 --->  MacPorts base is outdated, installing new version 2.7.1
 Installing new MacPorts release in /opt/local as root:wheel; permissions
 0755
 }}}

 The last message of `port -d selfupdate` shows:

 {{{
 Command failed: CC=/usr/bin/cc ./configure --prefix=/opt/local --with-
 install-user=root --with-install-group=wheel --with-directory-mode=0755
 --enable-readline && make SELFUPDATING=1 && make install SELFUPDATING=1
 Exit code: 2
 }}}


 More complete output:
 {{{
 % sudo port -d selfupdate 2>&1 > selfupdate_log.txt
 Password:
 DEBUG: MacPorts sources location:
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
 DEBUG: system: /usr/bin/rsync -rtzvl --delete-after
 rsync://rsync.macports.org/macports/release/tarballs/base.tar
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
 DEBUG: system: /usr/bin/rsync -rtzvl --delete-after
 rsync://rsync.macports.org/macports/release/tarballs/base.tar.rmd160
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
 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
 DEBUG: Rebuilding and reinstalling MacPorts if needed
 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
 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
 rsync://rsync.macports.org/macports/release/tarballs/PortIndex_darwin_20_i386/PortIndex
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
 DEBUG: system: /usr/bin/rsync -rtzvl --delete-after
 rsync://rsync.macports.org/macports/release/tarballs/PortIndex_darwin_20_i386/PortIndex.rmd160
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
 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
 DEBUG: Permissions OK
 DEBUG: system -W
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/base:
 CC=/usr/bin/cc ./configure --prefix=/opt/local --with-install-user=root
 --with-install-group=wheel --with-directory-mode=0755 --enable-readline &&
 make SELFUPDATING=1 && make install SELFUPDATING=1
 }}}
 `selfupdate_log.txt` is attached

 I can download the installer for 2.7.1 and move forward, but selfupdate
 should report a failure.

-- 
Ticket URL: <https://trac.macports.org/ticket/63545>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list