[KLUG Members] building from rpm source

Tony Gettig members@kalamazoolinux.org
01 Jun 2002 14:00:01 -0400


On Sat, 2002-06-01 at 13:30, Adam Williams wrote:
> >Yep, sorry about that. I'm actually doing this (as root):
> >rpm -ivh mypackage.src.rpm
> >rpm --rebuild mypackage.src.rpm
> 
> This (the second one) should have caused a rebuild and dumped the
> resulting RPM in /usr/src/redhat/RPMS/i386/

That's what I thought, but that darned error about tar and the -I option
kept popping up.

> 
> ><momentary pause as Tony slaps himself for impersonating an end
> >user...WHACK...ah, that's better :) 
> 
> Ah, those user moments.  Some people spend their entire lives like
> that,  which might explain a few things about human civilization....

Agreed. 

> >But I got to thinking, 
> 
> Uh Oh!

Yes, scary. lol.

> 
> >if I installed the source rpm, where did it go?
> >Thanks to your message, I got to looking in /usr/src/redhat and found
> >what looked to be the directory of the source in BUILD. Sure enough, I
> >found it. rpm --rebuild in here (a .spec file was present now) didn't
> >work, but configure, make, and make install did. So, now my app is
> >installed. 
> >Is there a better method for installing from source rpm? 
> 
> Yes "installing" as source RPM usually leaves a tar ball in build and a
> spec file in SPECS.  You can go into the SPECS dir and do an rpm -ba
> blah.spec and the package will build and be found in
> /usr/src/redhat/RPMS/i386

Cool! I ran rpm -ba in the SPECS dir and sure enough, it started to
building. But it stops at the same tar error, something about -I not
supported, perhaps I meant -j or -T? I am beginning to think there is a
problem with this source rpm. Oh well, at least it's installed. I'll try
rpm -ba with the spec file later today when I try installing something
else from src.rpm. 

This has been a good learning experience. Thanks all for the help!