pacsort (pacman 5.2.0-1) is linked with wrong libalpm.so.11

lsb_release -a
LSB Version: n/a
Distributor ID: Manjaro-ARM
Description: Manjaro ARM Linux
Release: 19.10
Codename: n/a

paccache -dk2
pacsort: error while loading shared libraries: libalpm.so.11: cannot open shared object file: No such file or directory

pacman -Qo /usr/bin/pacsort
/usr/bin/pacsort ist in pacman 5.2.0-1 enthalten

ldd /usr/bin/pacsort
linux-vdso.so.1 (0x0000007fa1a79000)
libarchive.so.13 => /usr/lib/libarchive.so.13 (0x0000007fa1940000)
libalpm.so.11 => not found
libc.so.6 => /usr/lib/libc.so.6 (0x0000007fa17cb000)
libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x0000007fa14fb000)
libacl.so.1 => /usr/lib/libacl.so.1 (0x0000007fa14e2000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0x0000007fa14a3000)
liblzma.so.5 => /usr/lib/liblzma.so.5 (0x0000007fa146d000)
libzstd.so.1 => /usr/lib/libzstd.so.1 (0x0000007fa13d0000)
liblz4.so.1 => /usr/lib/liblz4.so.1 (0x0000007fa13a1000)
libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x0000007fa1380000)
libz.so.1 => /usr/lib/libz.so.1 (0x0000007fa1359000)
/lib/ld-linux-aarch64.so.1 => /usr/lib/ld-linux-aarch64.so.1 (0x0000007fa1a4b000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x0000007fa1345000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x0000007fa1316000)
libattr.so.1 => /usr/lib/libattr.so.1 (0x0000007fa1300000)

This seems to be a platform-specific problem, as it only occurs on the ARM platform. On AMD64 there is a newer version of the pacman package, which is linked ti the correct version of libalpm (libalpm.so.12)

That's really odd.

pacsort, a component of the pacman package, does not work, because of the wrong libalpm version, which is also part of the pacman package....

This should be fixed in pacman 5.2.1-1.

Tested on Pinebook Pro.

It isn't. pacman needs always been rebuilt twice when you keep pacman-contrib like we do in x86_64 in the pacman package.

Ah okay. Didn't know that. Will remember for next time.

It is noted in the he PKGBUILD file

Forum kindly sponsored by