Rebuilding RHEL3 libc.so from source

Ben Scott dragonhawk at gmail.com
Fri Jul 13 19:56:35 EDT 2007


On 7/13/07, Michael ODonnell <michael.odonnell at comcast.net> wrote:
>> That's pretty much the standard drill on how to build a package.
>
> I understand that, but it wasn't originally my goal to build
> an RPM, just to recreate libc.so so we can try to reproduce a
> certain fault and then instrument it to catch it in the act.
> I'd thought (hoped) I'd end up with a build area full of
> extracted sources that I could just mess around in.

  Well, "rpm -ivh foo.srpm" will unpack the original tarballs and
patches and everything, and then "rpmbuild -bp foo.spec" will unpack
and patch everything.  Then you can play around as you like under
"$RPM/BUILD/foo/", including running "./configure" and "make" or
whatever.  Assuming that this other weirdness with the build
configuration gets figured out, that may help you.

> ... using rpmbuild --rebuild blahblah.src.rpm) the outcome
> was much more as expected, with the resultant libs
> inside the RPM similar in size to those of the installed
> versions.

  Hmmm.  Curiouser and curiouser.

-- Ben


More information about the gnhlug-discuss mailing list