Skip to content

Instantly share code, notes, and snippets.

@Patola
Created April 30, 2025 11:15
Show Gist options
  • Save Patola/38ab49223a12f1224fd5bfddfa634e94 to your computer and use it in GitHub Desktop.
Save Patola/38ab49223a12f1224fd5bfddfa634e94 to your computer and use it in GitHub Desktop.
inconsistency in arch packaging
OBS needs some library to work:
[11:38] [5077] [patola@risadinha patola]% obs
obs: error while loading shared libraries: libavcodec.so.61: cannot open shared object file: No such file or directory
[11:39] [5078] [patola@risadinha patola]% ls -la /usr/lib/libavcodec.so*
lrwxrwxrwx 1 root root 22 Apr 22 05:26 /usr/lib/libavcodec.so -> libavcodec.so.62.0.101
lrwxrwxrwx 1 root root 24 Mar 2 16:52 /usr/lib/libavcodec.so.58 -> libavcodec.so.58.134.100
-rwxr-xr-x 1 root root 15230640 Mar 2 16:52 /usr/lib/libavcodec.so.58.134.100
lrwxrwxrwx 1 root root 23 Mar 14 02:42 /usr/lib/libavcodec.so.59 -> libavcodec.so.59.37.100
-rwxr-xr-x 1 root root 15540600 Mar 14 02:42 /usr/lib/libavcodec.so.59.37.100
lrwxrwxrwx 1 root root 22 Apr 22 05:26 /usr/lib/libavcodec.so.62 -> libavcodec.so.62.0.101
-rwxr-xr-x 1 root root 16976360 Apr 22 05:26 /usr/lib/libavcodec.so.62.0.101
and then I use the usual command, paru -F (actually pacman -F behind the curtains) and pkgfile:
[11:39] [5079] [patola@risadinha patola]% paru -F /usr/lib/libavcodec.so.58
usr/lib/libavcodec.so.58 is owned by extra/ffmpeg4.4 4.4.5-3
[11:39] [5080] [patola@risadinha patola]% paru -F /usr/lib/libavcodec.so.59.37.100
[11:39] [5081] [patola@risadinha patola]% pkgfile /usr/lib/libavcodec.so.59.37.100
[11:40] [5082] [patola@risadinha patola]% pkgfile /usr/lib/libavcodec.so.59
[11:40] [5083] [patola@risadinha patola]% paru -F /usr/lib/libavcodec.so.59
[11:40] [5084] [patola@risadinha patola]%
Why can't it find the owner of /usr/lib/libavcodec.so.59 ? It's ffmpeg5.1:
[11:41] [5086] [patola@risadinha patola]% pacman -Ql ffmpeg5.1 | grep libavcodec.so.59
ffmpeg5.1 /usr/lib/libavcodec.so.59
ffmpeg5.1 /usr/lib/libavcodec.so.59.37.100
Updating the databases doesn't change the results:
[11:41] [5088] [patola@risadinha patola]% paru -Fy
:: Synchronizing package databases...
core-testing 828.2 KiB 1596 KiB/s 00:01 [##########################################] 100%
core is up to date
extra 45.3 MiB 38.2 MiB/s 00:01 [##########################################] 100%
extra-testing 4.8 MiB 26.1 MiB/s 00:00 [##########################################] 100%
multilib-testing 7.8 KiB 106 KiB/s 00:00 [##########################################] 100%
multilib 226.0 KiB 2.43 MiB/s 00:00 [##########################################] 100%
chaotic-aur 43.1 MiB 52.6 MiB/s 00:01 [##########################################] 100%
[11:41] [5089] [patola@risadinha patola]% sudo pkgfile -u
:: Updating 7 repos...
download complete: multilib-testing [ 3.8 KiB 19.3K/s 6 remaining]
download complete: core-testing [ 1260.0 B 5.45K/s 5 remaining]
download complete: multilib [ 228.0 KiB 499K/s 4 remaining]
download complete: core [ 1312.8 KiB 2.05M/s 3 remaining]
download complete: chaotic-aur [ 43.1 MiB 46.3M/s 2 remaining]
download complete: extra-testing [ 3.5 MiB 3.09M/s 1 remaining]
download complete: extra [ 45.1 MiB 3.65M/s 0 remaining]
:: download complete in 12.37s < 93.2 MiB 7.54M/s 7 files >
:: waiting for 1 repo to finish repacking...
[11:42] [5090] [patola@risadinha patola]% pkgfile /usr/lib/libavcodec.so.59
[11:42] [5091] [patola@risadinha patola]% paru -F /usr/lib/libavcodec.so.59
[11:42] [5092] [patola@risadinha patola]%
That never happens with other package formats. rpm -qf always gives me the rpm package the file belongs to. Same thing with dpkg -S. Why does it happen that way with arch?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment