Joerg Schilling wrote: > "C. Bergström" <[EMAIL PROTECTED]> wrote: > >> How do I replace the system libc? >> >> After I build it.. doing >> >> # Note.. cp libc and all other tools are 64bit.. >> >> cp ./libs.so.1 /lib/amd64 >> > > You should be able to do this with Sun cpio (depending on the > undocumented behavior of Sun cpio)
Yeah, I guess that was added to make patching "work" :) > and with star if you use > the star option -install > > In theory, install(1) should also work. > install(1M) (i.e. /usr/sbin/install) on OpenSolaris 2008.11 doesn't quite hack it ... Without the -o flag we get ... cp <source> <target> With the -o flag we get mv -f <target> <OLDtarget> cp <OLDtarget> <target> ... cp <source> <target> So it preserves the original, but leaves a window when there is no <target>, and another window where there is a copy of the old version (which puts us back to square one with libc, because the second cp will overwrite the libc it is using). > If you copy data into the original file, all programs that use libc > may dump core. > > Jörg _______________________________________________ opensolaris-discuss mailing list [email protected]
