Opened 18 months ago

Last modified 14 months ago

#67534 new defect

port rev-upgrade --id-loadcmd-check fails on MacPorts 2.8.1

Reported by: captainproton1971 (Captain Proton) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.8.1
Keywords: Cc:
Port:

Description

My macports installation hasn't been refreshed in a while, and I wanted to check it for inconsistencies. As part of that, I tried a port rev-upgrade --id-loadcmd-check but it threw an error re: @rpath.

√ root ~ # sudo port rev-upgrade --id-loadcmd-check                   9:39:12
--->  Scanning binaries for linking errors
Error: rev-upgrade failed: @rpath in loadcommand         
    while executing
"error "@rpath in loadcommand""
    (procedure "revupgrade_handle_special_paths" line 18)
    invoked from within
"revupgrade_handle_special_paths $bpath [$architecture cget -mat_install_name]"
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.

I've tried trashing /opt/local/etc/macports and reinstalling a fresh copy without success.

Change History (2)

comment:1 Changed 14 months ago by captainproton1971 (Captain Proton)

Same happens on Apple Silicon, MacPorts 2.8.1, macOS 14.0.

This time, it does seem to pick up some ID load commands containing relative paths before crashing with the same issue. So this may be associated with a single port. I'm not sure how

DEBUG: Copying /Users/*****/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
--->  Scanning binaries for linking errors
Warning: ID load command in /opt/local/lib/bash/accept, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/basename, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/csv, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/cut, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/dirname, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/dsv, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/fdflags, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/finfo, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/getconf, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/head, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/id, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/ln, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/logname, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/mkdir, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/mkfifo, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/mktemp, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/mypid, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/pathchk, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/print, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/printenv, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/push, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/realpath, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/rm, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/rmdir, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/seq, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/setpgid, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/sleep, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/stat, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/strftime, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/sync, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/tee, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/truefalse, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/tty, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/uname, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/unlink, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/lib/bash/whoami, arch arm64 (belonging to port bash) contains relative path
Warning: ID load command in /opt/local/libexec/coreutils/libstdbuf.so, arch arm64 (belonging to port coreutils) contains relative path
DEBUG: Ignoring loadcommand containing @rpath in /opt/local/lib/libgcc/libatomic.1.dylib
DEBUG: rev-upgrade failed: @rpath in loadcommand
    while executing
"error "@rpath in loadcommand""
    (procedure "revupgrade_handle_special_paths" line 18)
    invoked from within
"revupgrade_handle_special_paths $bpath [$architecture cget -mat_install_name]"
    while executing
"throw [dict get $eOptions -errorcode] [dict get $eOptions -errorinfo]"
    (procedure "revupgrade_scanandrebuild" line 221)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
Error: rev-upgrade failed: @rpath in loadcommand
    while executing
"error "@rpath in loadcommand""
    (procedure "revupgrade_handle_special_paths" line 18)
    invoked from within
"revupgrade_handle_special_paths $bpath [$architecture cget -mat_install_name]"

comment:2 Changed 14 months ago by captainproton1971 (Captain Proton)

Summary: port rev-upgrade --id-loadcmd-check fails on intel macports 2.8.1port rev-upgrade --id-loadcmd-check fails on MacPorts 2.8.1
Note: See TracTickets for help on using tickets.