innupgrade for old shared libraries?
Dominik 'Rathann' Mierzejewski
dominik at greysector.net
Sat Nov 20 23:06:39 UTC 2021
On Saturday, 20 November 2021 at 08:35, Julien ÉLIE wrote:
> Hi all,
>
> Shared libraries installed by previous INN versions tend to accumulate in
> the pathlib directory.
> Shouldn't we remove old ones? (keeping only the previous one for instance)
>
> Or should we expect other programs installed on the system, outside INN, to
> go on using old versions of our libraries and therefore we should leave
> them?
>
>
>
> %ls -la
> -rw-r--r-- 1 news news 219K sept. 19 16:17 libinnhist.a
> -r-xr-xr-x 1 news news 1016 sept. 19 16:09 libinnhist.la*
> lrwxrwxrwx 1 root root 19 sept. 19 16:17 libinnhist.so ->
> libinnhist.so.3.0.4*
> lrwxrwxrwx 1 root root 19 sept. 19 16:17 libinnhist.so.3 ->
> libinnhist.so.3.0.4*
> -r-xr-xr-x 1 news news 94K août 8 2015 libinnhist.so.3.0.0*
> -r-xr-xr-x 1 news news 137K nov. 26 2017 libinnhist.so.3.0.1*
> -r-xr-xr-x 1 news news 137K nov. 10 2018 libinnhist.so.3.0.2*
> -r-xr-xr-x 1 news news 137K nov. 22 2020 libinnhist.so.3.0.3*
> -r-xr-xr-x 1 news news 137K sept. 19 16:17 libinnhist.so.3.0.4*
Libraries with the same SONAME should have backwards-compatible ABI, so
there should be no need to keep old versions.
> -rw-r--r-- 1 news news 1,5M sept. 19 16:17 libinn.a
> -r-xr-xr-x 1 news news 925 sept. 19 16:08 libinn.la*
> lrwxrwxrwx 1 root root 15 sept. 19 16:17 libinn.so -> libinn.so.6.0.1*
> lrwxrwxrwx 1 root root 15 août 8 2015 libinn.so.3 -> libinn.so.3.0.0*
> -r-xr-xr-x 1 news news 603K août 6 2015 libinn.so.3.0.0*
> lrwxrwxrwx 1 root root 15 nov. 26 2017 libinn.so.4 -> libinn.so.4.0.0*
> -r-xr-xr-x 1 news news 718K nov. 26 2017 libinn.so.4.0.0*
> lrwxrwxrwx 1 root root 15 nov. 10 2018 libinn.so.5 -> libinn.so.5.0.0*
> -r-xr-xr-x 1 news news 718K sept. 20 2018 libinn.so.5.0.0*
> lrwxrwxrwx 1 root root 15 sept. 19 16:17 libinn.so.6 -> libinn.so.6.0.1*
> -r-xr-xr-x 1 news news 725K nov. 22 2020 libinn.so.6.0.0*
> -r-xr-xr-x 1 news news 725K sept. 19 16:08 libinn.so.6.0.1*
Here we have different SONAMEs, so different ABI. In Fedora we usually
keep just one version of a package unless there are very good reasons
like significant portion of consumers not ported to the new ABI. As
upstream you might have a different policy. Keeping one older SONAME
around sounds like a safe policy for upgrades.
> -rw-r--r-- 1 news news 2,1M sept. 19 16:17 libstorage.a
> -r-xr-xr-x 1 news news 987 sept. 19 16:09 libstorage.la*
> lrwxrwxrwx 1 root root 19 sept. 19 16:17 libstorage.so ->
> libstorage.so.3.0.4*
> lrwxrwxrwx 1 root root 19 sept. 19 16:17 libstorage.so.3 ->
> libstorage.so.3.0.4*
> -r-xr-xr-x 1 news news 746K août 8 2015 libstorage.so.3.0.0*
> -r-xr-xr-x 1 news news 949K nov. 26 2017 libstorage.so.3.0.1*
> -r-xr-xr-x 1 news news 954K nov. 10 2018 libstorage.so.3.0.2*
> -r-xr-xr-x 1 news news 955K nov. 22 2020 libstorage.so.3.0.3*
> -r-xr-xr-x 1 news news 1014K sept. 19 16:17 libstorage.so.3.0.4*
Same SONAME here, too.
Regards,
Dominik
--
Fedora https://getfedora.org | RPM Fusion http://rpmfusion.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
-- from "Collected Sayings of Muad'Dib" by the Princess Irulan
More information about the inn-workers
mailing list