SPECS (AC-branch): glibc.spec - workaround to be able upgrade
Elan Ruusamäe
glen at delfi.ee
Fri Dec 17 19:44:07 CET 2004
On Friday 17 December 2004 18:19, Andrzej Krzysztofowicz wrote:
> Elan =?iso-8859-2?q?Ruusam=E4e?= wrote:
> > this is to resolve such issue:
> >
> > http://glen.alkohol.ee/pld/glibc-fc.txt
>
> But you get uninstalable glibc probably.
> As /bin/sh is rather not available at glibc install.
i tested it a lot.
there exists *also* /lib/libc.so besides /lib/i686/libc.so
and killing the /lib/i686 (also /lib/tls) will keep system running, it will
load /lib/libc.so, if can't find from /lib/i686.
so after the PLD glibc is placed to system, the dir structure could look like
# l /lib/libc.so* /lib/i686/libc.so*
lrwxrwxrwx 1 root root 13 Oct 24 17:47 /lib/i686/libc.so.6 -> libc-2.2.5.so*
lrwxrwxrwx 1 root root 13 Oct 24 17:47 /lib/libc.so.6 -> libc-2.2.5.so*
AND the new file is also there:
lrwxrwx--- 1 root root 13 Dec 7 21:58 /lib/libc.so.6 -> libc-2.3.3.so*
as there's no newer version in /lib/i686, the symlink stays for old version,
and eventually it will be /lib/ld-linux.so is from newer glibc and libc from
older one.
uh. hope it explained it.
> > > +%pre
> > > +# make it safe to upgrade from RH / FC
> > > +if [ -d /lib/i686 ]; then
> > > + mv -fv /lib/i686 /lib/i686.rpmsave
> > > +fi
> > > +if [ -d /lib/tls ]; then
> > > + mv -fv /lib/tls /lib/tls.rpmsave
> > > +fi
--
glen
More information about the pld-devel-en
mailing list