Hi,

on my 10.13 MacBook Pro I have other issues than 10.11, but similar in concept. "port upgrade" stops at a certain point because a tool is broken and before rev-upgrade, rev-upgrade doesn't complete because it breaks on the first package it finds.

port has been synced today.

I am left with a couple of outdated packages right now:
The following installed ports are outdated:
ccache                         4.12.3_0 < 4.13.1_0
emacs                          30.2_2 < 30.2_3
emacs-app                      30.2_2 < 30.2_3
gtksourceview4                 4.8.4_0 < 4.8.4_1
librsvg                        2.58.5_0 < 2.58.5_1
llvm-19                        19.1.7_1 < 19.1.7_2
llvm-21                        21.1.8_0 < 21.1.8_1
p5.34-clone                    0.470.0_0 < 0.480.0_0
poppler                        24.04.0_3 < 26.01.0_0
shared-mime-info               2.4_0 < 2.4_1

upgrade outdated tells me:
The following new ports will be installed as dependencies:
 rust
 cargo

ccache fails due to xar missing libmxml2
:info:configure     Linking C executable cmTC_4737e
:info:configure     /opt/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4737e.dir/link.txt --verbose=1
:info:configure     dyld: Library not loaded: /opt/local/lib/libxml2.2.dylib
:info:configure       Referenced from: /opt/local/lib/libxar.1.dylib
:info:configure       Reason: Incompatible library version: libxar.1.dylib requires version 16.0.0 or later, but libxml2.2.dylib provides version 10.0.0

this is classic upgrade path, where rev-upgraded is run "at the end" after upgrading packages.

If I force it, I see:
The following ports will be rebuilt:
 shared-mime-info @2.4
 librsvg @2.58.5
 xar @1.8.0.501
 emacs-app @30.2+nativecomp+rsvg+treesitter
 emacs @30.2+nativecomp+treesitter
 gtksourceview4 @4.8.4+quartz
 poppler @24.04.0+boost
 llvm-19 @19.1.7
 llvm-21 @21.1.8

it fails because it cannot upgrade shared-mime-info with clang 17
Detecting Apple linker via: `/opt/local/bin/clang-mp-17 -Wl,-v -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -L/opt/local/lib/libcxx -arch x86_64 -pipe -Os -arch x86_64 -isystem/opt/local/include/libcxx/v1 -nostdinc++ -isystem/opt/local/include/LegacySupport -I/opt/local/include` -> 1
stderr:
dyld: Library not loaded: /opt/local/lib/libxml2.2.dylib
  Referenced from: /opt/local/lib/libxar.1.dylib
  Reason: Incompatible library version: libxar.1.dylib requires version 16.0.0 or later, but libxml2.2.dylib provides version 10.0.0
clang: error: unable to execute command: Abort trap: 6
clang: error: linker command failed due to signal (use -v to see invocation)

and so doesn't get to rebuild xar.


so I think I could work around this like on 10.11 bu rebuilding selectively xar.

Or could "port rev-upgrade" respect "-p" so don't stop on the first error but continue trying to build?

I need to break out this vicious circle. xar vs libxml2 has proven a nasty fallout.

Riccardo

Reply via email to