[OFFTOPIC] Re: Possible ld-so bug.

Alexander Kjeldaas (astor@fast.no)
Thu, 18 Feb 1999 16:18:46 +0100


On Tue, Feb 16, 1999 at 10:59:36AM -0500, Richard B. Johnson wrote:
> On Tue, 16 Feb 1999, Michiel Boland wrote:
>
> > If you are rebuilding glibc with the same version numbers, try this:
> >
> > - build glibc with make
> > - instead of make install, do
> > # make install install_root=/some/other/place
> > - archive /some/other/place
> > - boot from an emergency repair disk
> > - unarchive /some/other/place (backing up the original files of course)
> >
> > Cheers
> > Michiel
> >
>
> Very good. I will try it tonight. I have already built it. I also will
> tar everything important off my my root-file system just in case.
>
>

There _is_ a way one can update a large set of libraries on a running
system without rebooting. You have to use ldconfig to do the switch
as it is the only way to assure that the operation is atomic.

Here's how I prefer to do it:

1) Link/copy all libraries from /lib and /usr/lib to /usr/lib/tmp
2) Edit /etc/ld.so.conf listing /usr/lib/tmp first
3) ldconfig
4) Install new libraries
5) Edit /etc/ld.so.conf back to normal
6) ldconfig
7) rm -rf /usr/lib/tmp

This way, all libraries are updated in one atomic operation.

astor

-- 
 Alexander Kjeldaas, Fast Search & Transfer

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/