At Tue, 30 Apr 2019 09:23:44 -0400, Greg Troxel <[email protected]> wrote: Subject: Re: upgrade - what will happen? > > "Greg A. Woods" <[email protected]> writes: > > > Isn't there's one small caveat about old shared library versions? > > > > Postinstall(8), which will be run by sysinst during an upgrade, or if > > you do a manual upgrade and then similarly run "postinstall fix" as is > > recommended, will remove "obsolete" files, including old system shared > > libraries. > > The highest minor of any particular major is not supposed to be marked > obsolete, for this very reason. If so, it's a bug; please report it.
Ah, of course, the highest minor for every major (and its major-only
symlink), i.e. the one that was still pointed to by the symlinks just
_before_ the upgrade, and the major-only links of which should be the
one directly referenced by any dynamic-linked programs built before the
upgrade, will be kept.
I too have at least one example of this on one of my systems which
started life as 7.0 or so and was recently upgraded to 8.99 with a full
"postinstall fix" (I didn't spot it on an earlier check):
$ ls -l /usr/lib/libmagic.so*
lrwxr-xr-x 1 root wheel 15 Feb 4 14:06 /usr/lib/libmagic.so ->
libmagic.so.6.0
lrwxr-xr-x 1 root wheel 15 Feb 20 2015 /usr/lib/libmagic.so.5 ->
libmagic.so.5.1
-r--r--r-- 1 root wheel 126225 Feb 20 2015 /usr/lib/libmagic.so.5.1
lrwxr-xr-x 1 root wheel 15 Feb 4 14:06 /usr/lib/libmagic.so.6 ->
libmagic.so.6.0
-r--r--r-- 1 root wheel 149016 Feb 3 18:17 /usr/lib/libmagic.so.6.0
(For the record, here if there had been a "libmagic.so.5.0" then it
could have been marked as obsolete and have been removed by postinstall
with no loss to software built when it was all that existed.)
(Shows you how quickly I forget about stuff I try to avoid using!)
--
Greg A. Woods <[email protected]>
+1 250 762-7675 RoboHack <[email protected]>
Planix, Inc. <[email protected]> Avoncote Farms <[email protected]>
pgpc22TlmlIUd.pgp
Description: OpenPGP Digital Signature
