#11986 rawhide buildroot: /usr/bin/dnf5: error while loading shared libraries: libcap.so.2
Closed: Fixed a year ago by churchyard. Opened a year ago by petersen.

Koji builds for rawhide are failing in root.log with:

:
package_manager.py:289:  ['/usr/bin/dnf5', '--installroot', '/var/lib/mock/f41-build-49336727-5867250/root/', 'group', 'install', 'build', '--setopt=deltarpm=False', '--setopt=allow_vendor_change=yes']
util.py:553:  Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.5poqs784:/etc/resolv.conf']
util.py:461:  /usr/bin/dnf5: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file or directory
util.py:610:  Child return code was: 127

This just start happening about 1 hour ago, but I don't think it should have been caused by any recent - was there some configuration change?


Copying from Koji web, when it started happening:

2411885     gitit-0.15.1.1-6.fc41   petersen    2024-02-28 06:30:50     failed
2411884     patat-0.11.0.0-1.fc41   petersen    2024-02-28 06:26:01     complete

This could be a systemd-nspawn problem (on builders, not in chroot).

Comparing the two root.log files there are a surprisingly large amount of differences in the bootstrap package set: see this edited diff:

--- patat-root.log  2024-02-28 15:55:28.691927492 +0800
+++ gitit-root.log  2024-02-28 15:55:59.239127748 +0800
@@ -5,0 +6 @@
+abattis-cantarell-vf-fonts    noarch 0.301-12.fc40              192.7 KiB
@@ -7 +8 @@
-audit-libs                    x86_64 4.0-8.fc40                 311.3 KiB
+avahi-libs                    x86_64 0.8-26.fc40                166.3 KiB
@@ -10 +11 @@
-bzip2-libs                    x86_64 1.0.8-18.fc40               80.7 KiB
+bluez-libs                    x86_64 5.72-3.fc40                198.0 KiB
@@ -16 +17 @@
-cyrus-sasl-lib                x86_64 2.1.28-19.fc40               2.3 MiB
+default-fonts-core-sans       noarch 4.0-12.fc40                 11.9 KiB
@@ -20,0 +22,2 @@
+expat                         x86_64 2.6.0-1.fc41               276.9 KiB
+fdk-aac-free                  x86_64 2.0.0-13.fc40              603.2 KiB
@@ -29,0 +33 @@
+flac-libs                     x86_64 1.4.3-4.fc40               674.2 KiB
@@ -31 +35,3 @@
-gawk                          x86_64 5.3.0-3.fc40                 1.7 MiB
+fontconfig                    x86_64 2.15.0-4.fc40              767.3 KiB
+fonts-filesystem              noarch 1:2.0.5-14.fc40              0.0   B
+freetype                      x86_64 2.13.2-5.fc40              842.6 KiB
@@ -38,0 +45,2 @@
+google-noto-fonts-common      noarch 20240201-2.fc41             17.4 KiB
+google-noto-sans-vf-fonts     noarch 20240201-2.fc41              1.2 MiB
@@ -39,0 +48,5 @@
+gsm                           x86_64 1.0.22-6.fc40               68.8 KiB
+hicolor-icon-theme            noarch 0.17-18.fc40                72.2 KiB
+hwdata                        noarch 0.379-1.fc40                 9.0 MiB
+hyperhdr                      x86_64 20.0.0.0-0.5.fc41            7.1 KiB
+hyperhdr-common               x86_64 20.0.0.0-0.5.fc41          256.9 MiB
@@ -41,2 +54 @@
-keyutils-libs                 x86_64 1.6.3-3.fc40                54.4 KiB
-krb5-libs                     x86_64 1.21.2-5.fc40                2.3 MiB
+lame-libs                     x86_64 3.100-17.fc40                1.2 MiB
@@ -44,0 +57 @@
+libasyncns                    x86_64 0.8-28.fc40                 59.4 KiB
@@ -47,4 +59,0 @@
-libbrotli                     x86_64 1.1.0-3.fc40               829.5 KiB
-libcap                        x86_64 2.69-3.fc40                217.2 KiB
-libcap-ng                     x86_64 0.8.4-4.fc40                73.1 KiB
-libcom_err                    x86_64 1.47.0-5.fc40               67.2 KiB
@@ -54,2 +63,2 @@
-libeconf                      x86_64 0.5.2-3.fc40                52.0 KiB
-libevent                      x86_64 2.1.12-12.fc40             895.6 KiB
+libdrm                        x86_64 2.4.120-3.fc40             401.9 KiB
+libevdev                      x86_64 1.13.1-4.fc40               86.1 KiB
@@ -58,2 +67,4 @@
-libgomp                       x86_64 14.0.1-0.7.fc41            518.0 KiB
-libidn2                       x86_64 2.3.7-1.fc40               329.1 KiB
+libgudev                      x86_64 238-5.fc40                  87.9 KiB
+libinput                      x86_64 1.25.0-3.fc40              553.0 KiB
+liblc3                        x86_64 1.0.4-4.fc40               131.9 KiB
+libldac                       x86_64 2.0.2.3-15.fc40             78.4 KiB
@@ -62,0 +74,3 @@
+libnsl2                       x86_64 2.0.1-1.fc40                57.9 KiB
+libogg                        x86_64 2:1.3.5-8.fc40              49.4 KiB
+libpciaccess                  x86_64 0.16-12.fc40                44.6 KiB
@@ -65,0 +80 @@
+libsbc                        x86_64 2.0-4.fc40                  93.5 KiB
@@ -68,0 +84 @@
+libsndfile                    x86_64 1.2.2-2.fc40               526.0 KiB
@@ -74,2 +90,2 @@
-libtool-ltdl                  x86_64 2.4.7-10.fc40               66.2 KiB
-libunistring                  x86_64 1.1-7.fc41                   1.7 MiB
+libtirpc                      x86_64 1.3.4-1.rc2.fc40.2         202.8 KiB
+libusb1                       x86_64 1.0.26-6.fc40              161.1 KiB
@@ -77,2 +93,6 @@
-libverto                      x86_64 0.3.2-8.fc40                29.5 KiB
-libxcrypt                     x86_64 4.4.36-5.fc40              262.8 KiB
+libvorbis                     x86_64 1:1.3.7-10.fc40            829.6 KiB
+libwacom                      x86_64 2.10.0-1.fc40               94.4 KiB
+libwacom-data                 noarch 2.10.0-1.fc40              613.0 KiB
+libxcb                        x86_64 1.16-4.fc40                  1.1 MiB
+libxkbcommon                  x86_64 1.6.0-2.fc40               328.3 KiB
+libxkbcommon-x11              x86_64 1.6.0-2.fc40                39.6 KiB
@@ -81 +100,0 @@
-libzstd                       x86_64 1.5.5-5.fc40               772.0 KiB
@@ -83,2 +102,3 @@
-lz4-libs                      x86_64 1.9.4-6.fc40               129.4 KiB
-mpfr                          x86_64 4.2.1-3.fc40               832.0 KiB
+mpdecimal                     x86_64 2.5.1-9.fc40               200.9 KiB
+mpg123-libs                   x86_64 1.31.3-4.fc40              787.3 KiB
+mtdev                         x86_64 1.1.6-8.fc40                25.3 KiB
@@ -88 +107,0 @@
-openldap                      x86_64 2.6.7-1.fc40               635.1 KiB
@@ -89,0 +109 @@
+opus                          x86_64 1.4-4.fc40                 391.6 KiB
@@ -92 +111,0 @@
-pam-libs                      x86_64 1.6.0-2.fc41               135.0 KiB
@@ -94,0 +114 @@
+pipewire-libs                 x86_64 1.0.3-1.fc40                 6.8 MiB
@@ -96,0 +117,4 @@
+pulseaudio-libs               x86_64 16.1-7.fc40                  3.2 MiB
+python-pip-wheel              noarch 23.3.2-1.fc40                1.5 MiB
+python3                       x86_64 3.12.2-2.fc41               31.9 KiB
+python3-libs                  x86_64 3.12.2-2.fc41               41.0 MiB
@@ -107 +131,9 @@
-xz-libs                       x86_64 5.4.6-1.fc40               209.8 KiB
+tzdata                        noarch 2024a-2.fc40                 1.6 MiB
+webrtc-audio-processing0.3    x86_64 0.3.1-12.fc40              737.5 KiB
+xcb-util                      x86_64 0.4.1-5.fc40                30.4 KiB
+xcb-util-image                x86_64 0.4.1-5.fc40                22.2 KiB
+xcb-util-keysyms              x86_64 0.4.1-5.fc40                16.8 KiB
+xcb-util-renderutil           x86_64 0.3.10-5.fc40               28.5 KiB
+xcb-util-wm                   x86_64 0.4.2-5.fc40                85.4 KiB
+xkeyboard-config              noarch 2.41-1.fc40                  6.6 MiB
+xml-common                    noarch 0.6.3-63.fc40               78.4 KiB

The message says libcap.so.2 library is missing. The root.log indeed does not list libcap package to be installed. And petersen's difference confirms libcap package disappeared from the build root. Probably something else than libpcap started to provide "libcap.so.2()(64bit)".

# dnf5 --disable-repo=rawhide --enable-repo=f41-build repoquery --whatprovides 'libcap.so.2()(64bit)'
Updating and loading repositories:
Repositories loaded.
hyperhdr-common-0:20.0.0.0-0.5.fc41.x86_64
libcap-0:2.69-3.fc40.x86_64
# dnf5 --disable-repo=rawhide --enable-repo=f41-build repoquery --list hyperhdr-common |grep cap
/usr/share/hyperhdr/lib/libcap.so.2
/usr/share/hyperhdr/lib/libcap.so.2.69

The cause is faulty hyperhdr-20.0.0.0-0.5.fc41. Untag it please.

It's not just libcap, hyperhdr is claiming to provide a huge laundry list of libraries, from libEGL.so.1()(64bit) all the way to libzstd.so.1()(64bit) and hundreds of others in between. This is also blowing up openQA tests. Concur with the untag request.

Untagged from rawhide:

$ koji buildinfo hyperhdr-20.0.0.0-0.5.fc41
BUILD: hyperhdr-20.0.0.0-0.5.fc41 [2411876]
State: COMPLETE
Built by: vascom
Source: git+https://src.fedoraproject.org/rpms/hyperhdr.git#43fd78901f3e9eab3c4eb2d767c1b1dd3e72422e
Volume: DEFAULT
Task: 114167979 build (rawhide, /rpms/hyperhdr.git:43fd78901f3e9eab3c4eb2d767c1b1dd3e72422e)
Finished: Wed, 28 Feb 2024 07:14:49 CET
Tags: 

This can be closed now.

Metadata Update from @churchyard:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

a year ago

Log in to comment on this ticket.

Metadata