Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 802303

Summary: sys-apps/util-linux has versioned symbols not tracked by portage
Product: Gentoo Linux Reporter: Daniel M. Weeks <dan>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniel M. Weeks 2021-07-15 18:02:45 UTC
util-linux libraries (such as libblkid and libuuid) contain versioned symbols which are not tracked in portage dependency calculations (no subslots). This can result in behavior like portage not rebuilding packages when downgrading util-linux and/or selecting incorrect dependent binary packages for the installed version of util-linux. Ultimately this can cause broken binaries in dependent packages.

Example: udev linked against libblkid from util-linux 2.37 and util-linux is downgraded to 2.36 (or binary package is installed on system with 2.36):

# udevadm 
udevadm: /lib64/libblkid.so.1: version `BLKID_2_37' not found (required by udevadm)

From a system with util-linux 2.37:
# nm -D /lib64/libblkid.so.1|grep BLKID_2_37
0000000000000000 A BLKID_2_37
0000000000012e70 T blkid_probe_reset_hints@@BLKID_2_37
0000000000012950 T blkid_probe_set_hint@@BLKID_2_37

Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2021-07-15 18:27:39 UTC
Generally, we do not support library downgrades under any circumstance.
Comment 2 David Seifert gentoo-dev 2021-07-15 18:29:38 UTC
This is an unsolvable problem in general, because SONAME compatibility is only forward in time, not backwards.
Comment 3 Mike Gilbert gentoo-dev 2021-07-15 18:31:16 UTC
I think your point about symbol versions in relation to binpkgs is covered by bug 753500.

*** This bug has been marked as a duplicate of bug 753500 ***