Question : installing glibc-2.3.2 from Redhat RPMs


hi -

I'm running Fedora 1 (kernel 2.4.22) with gcc 3.3.2 on it. I downloaded the Redhat source RPM (glibc-2.3.2-4.80.8.src.rpm). I'm planning to compile from this source as I need to modify certain parts of glibc for experimental purposes. When I unpack the RPM, I get:
glibc-2.3.2-20030312.tar.bz2
glibc-redhat-20030312.tar.bz2
nptl-20030312.tar.bz2 and 39 patches.

I rarely use RPMs, and until now, I directly installed files without having to compile. I have two questions. Would the SRPM for Redhat 8.0 work fine on my Fedora? (it's the only one on Redhat's website).

What should I do with these 42 patches? How do I apply the patches? How do I use the files generated after untarring glibc-redhat-20030312.tar.bz2?

Thanks,

Ozgun.

Answer : installing glibc-2.3.2 from Redhat RPMs

the rpm tool will do most of the work for you.
rpm -ivh will install the spec file under /usr/src/redhat/SPECS and the tar/patches/source under SOURCES.
if you go to SPECS and type
rpmbuild -bp glibc-2.3.2.spec
the rpm tool will unpack the source code, patch it and make it ready for build, then from that point on it is standards (configure,make) and in your case configure make, modify, and make again.
I don't know if Fedora distribution upgraded the glibc, because they are running 3.3 still, so the rpm will definatly tell you.   When you do rpmbuild -bp,  it will spit out dependency if any.


Good luck
Random Solutions  
 
programming4us programming4us