[Techtalk] Quirks of RH8 (was: Re: RH8--no gcc??)

Telsa Gwynne hobbit at aloss.ukuu.org.uk
Tue Oct 22 00:39:02 EST 2002


On Mon, Oct 21, 2002 at 06:37:06PM +0100 or thereabouts, Conor Daly wrote:
> On Sun, Oct 20, 2002 at 12:34:11PM +0100 or so it is rumoured hereabouts, 
> Telsa Gwynne thought:
> > (a) compile it on another box of the same architecture and install the
> > result.
> > (b) "cross-compile it" on another box of a different architecture,
> > telling it, "Build a compiler which will work on my architecture",
> > and install the result.
> > (c) find the binary for your architecture in the first place and
> > install that. 
>  
> (d) build it on your own box.  AIUI, the gcc source tarball includes a
> stage 1 compiler binary(?) which will build a stage 2 compiler which will,
> in turn, build the final gcc compiler.  It's much like the way the
> computer bootstraps itself.  There has to be a precompiled starting point
> but after that, it builds itself.

I did wonder about that. But I was mostly trying to get around to
"find the rpm" :) 

> >   (b) Mixing and matching package-managed apps and compiled-from-
> > source apps can cause confusion down the line later. rpm won't
> > know that stuff you compiled locally is there, unless you
> > compiled it from a source rpm using the rpmbuild command. 
> 
> You _can_ make your own rpms from the source tarball.  It takes a little
> work though.  goes something like:
> 
> 1. Install Some src.rpm or other to create the necessary /usr/src/redhat
> directory tree (maybe it's already there, I never checked first) and to

To my surprise, I just found it isn't created until you rpm --install
a source rpm. Or at least, it's not there on a freshly-installed box.

> 6. Do
> 	rpm -bb SPECS/<rpm-name>.spec
> to build the binary rpm
> 	rpm -bs SPECS/<rpm-name>.spec
> to build a src rpm and
> 	rpm -ba SPECS/<rpm-name>.spec
> to build both.

The original mail was about RH 8.0, I think. There's an interesting
wrinkle there. rpm -b* has been split out into rpmbuild. Just as I
had got the hang of rpm -b, too :) 

Those instructions hold good for all the other rpm-using distros
around currently, as far as I know. RH 8.0 users, though, you 
want rpmbuild. (in a package called rpm-build, just to confuse).

Telsa



More information about the Techtalk mailing list