From 36a2942c35768a126340d3a4865d67994c057723 Mon Sep 17 00:00:00 2001 From: Christopher Chavez Date: Mon, 16 Oct 2023 18:49:37 -0500 Subject: [PATCH] rev-upgrade: skip weakly-linked Fixes: https://trac.macports.org/ticket/52700 --- src/macports1.0/macports.tcl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/macports1.0/macports.tcl b/src/macports1.0/macports.tcl index e22443fd55..ec2b445676 100644 --- a/src/macports1.0/macports.tcl +++ b/src/macports1.0/macports.tcl @@ -5226,6 +5226,14 @@ proc macports::revupgrade_scanandrebuild {broken_port_counts_name opts} { set loadcommand [$architecture cget -mat_loadcmds] while {$loadcommand ne "NULL"} { + # see https://trac.macports.org/ticket/52700 + set LC_LOAD_WEAK_DYLIB 0x80000018 + if {[$loadcommand cget -mlt_type] == $LC_LOAD_WEAK_DYLIB} { + ui_debug "[msgcat::mc "Skipping weakly-linked"] [$loadcommand cget -mlt_install_name]" + set loadcommand [$loadcommand cget -next] + continue + } + try { set filepath [revupgrade_handle_special_paths $bpath [$loadcommand cget -mlt_install_name]] } trap {POSIX SIG SIGINT} {_ eOptions} {