- Create a package
foov1 containing a shared library (
/usr/local/lib/libfoo.so) which does not set the
- Create a package bar using this shared library
# rpm -qRp bar.rpm | grep foo libfoo.so
- Create a new version of package
foov2 where the shared library now sets the
sonameand is installed as a symbolic link from
barprogram built against the original verson of
libfoocan find it regardless of whether the old or new version is installed.
- However, installation of
foov2 is installed fails dependency checking.
error: Failed dependencies: libfoo.so is needed by bar
- Likewise an upgrade from
foov1 to foo v2 will fail for the same reason.
- One needs to recompile (relink)
rpmshould not understand that
libfoo.sois inclusive of
libfoo.so.1when checking dependencies.
- That is, the behavior of
rpmshould match the behavior of the OS.
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.