Skip to Content.
Sympa Menu

sm-grimoire - Re: [SM-Grimoire]Glibc casting

sm-grimoire AT lists.ibiblio.org

Subject: Discussion of Spells and Grimoire items

List archive

Chronological Thread  
  • From: Andrew <afrayedknot AT thefrayedknot.armory.com>
  • To: Grimoire <sm-grimoire AT lists.ibiblio.org>
  • Subject: Re: [SM-Grimoire]Glibc casting
  • Date: Mon, 18 Nov 2002 08:43:53 +0000

first off, if theres been any list traffic on this since my last posts,
im sorry i havent gotten it. due to my mucking around with glibc mail
has probably been bouncing like crazy.

ive been trying to figure out a good way of making glibc install. heres
what ive come up with.

you can make glibc install in some random location by adding install_root
to the command line
make install install_root=/tmp/glibcinstall
puts everything in /tmp/glibcinstall
from there i wrote the following script to actually install glibc:
(the makefile tramples ld-linux.so.2, leaving the system helpless)

for each in /tmp/glibcinstall/lib/*; do
if [ -h $each ] ; then
ln -sf $each /lib
fi
done
echo linked
sleep 2
for each in /tmp/glibcinstall/lib/*; do
if [ ! -h $each ] ; then
cp -v $each /lib
fi
done
echo copied
sleep 2
ldconfig
sleep 2
cp -Rdvfp /tmp/glibcinstall/etc /
cp -Rdvfp /tmp/glibcinstall/usr /
cp -Rdvfp /tmp/glibcinstall/sbin /
ldconfig

basically it redirects all the symlinks in /lib to updated libraries in
/tmp/glibcinstall/lib then copies the new libraries across, then runs
ldconfig to swap all the symlinks back. The problem ive been running
into is if you replace ld-2.3.1.so you get a segfault and everyone gets
logged out. If you run the script again, then it finishes. I suppose
that wouldnt be a problem going from glibc 2.2.5 to 2.3.1 but if you
are recompiling the same version, then you get that problem.

im not sure how to proceed with this anymore (and im running out of
free time).

a statically linked ln may help, or maybe a statically linked busybox,
maybe if we split glibc into two spells, one to make it into a seperate
directory, and a second to actually install it...perhaps in single
usermode

i suppose i could look on my gentoo box and see how they did it later today.

i hope we can get this worked out before 1.0

Andrew




Archive powered by MHonArc 2.6.24.

Top of Page