On Tuesday 10 April 2001 06:34 am, Mark Weaver wrote:
> Tom,
> I've been following this thread and others like it and I can't help but
> wonder with BIG curiousity. How does one go about "rebuilding" an rpm.src
> package? And is there already info on this contained on my system?

   Using mozilla as an example, I 'cd' into the dir I d/l'd to and type (as 
root)   'rpm --rebuild  mozilla-0.8.1-2mdk.src.rpm'     rpm unpacks the 
source and compiles and builds the rpms
> >   mozilla-0.8.1-2mdk.i686.rpm,   mozilla-devel-0.8.1-2mdk.i686.rpm,
> >   mozilla-irc-0.8.1-2mdk.i686.rpm,  mozilla-mail-0.8.1-2mdk.i686.rpm,
> >   mozilla-psm-0.8.1-2mdk.i686.rpm
Many src.rpms build more than one rpm, eg SimGear-0.0.14-4mdk.src.rpm
builds   SimGear-0.0.14-4mdk.i686.rpm   and    
SimGear-devel-0.0.14-4mdk.i686.rpm

     --rebuild figures out what optimization to use, in my case PIII, i686. 
When the compile/building process is finished, the new rpms are written to 
/usr/src/RPM/RPMS/i?86/.   When --rebuild finishes, if you look a dozen or 
so lines up in --rebuild's output in the terminal you'll see something like 
" wrote: /usr/src/RPM/RPMS/i686/mozilla-0.8.1-2mdk.i686.rpm "
Then I just copy/paste this after 'rpm -Uvh' to install the new rpm (minus 
the 'wrote:' of course ;)

     Note tho, not all cooker src rpms will --rebuild on a 7.2 system.  
Most often failure I get is a dependency on glibc 2.2.x.  Most single app 
src.rpms (eg, mozilla) will compile just fine using 7.2's glibc-2.1.x
'Course the usual "untested-beta-etc" cautions also apply.
If you're using the new 8.0, then all cooker src.rpms should compile and 
build.
-- 
Dale Earnhardt,  the greatest stock car driver ever, 
 he's won his 8th and  His Greatest Championship
  Tom Brinkman       [EMAIL PROTECTED]       Galveston Bay
>
> On Mon, 9 Apr 2001, Tom Brinkman wrote:
> > On Sunday 08 April 2001 01:10 pm, Benjamin Sher wrote:
> > > Dear Tom and friends:
> > > I tried to rebuild the Cooker versions of Mozilla but still got the
> > > same error messages because of the rpm issue.
> > >
> > > By the way, my AMD K6-2 400 is really a i586, not an i686. There was
> > > a
> >
> >    Never a problem here Ben (P3-450@600).  Out of curiousity, I d/l'd
> > the cooker mozilla-0.8.1-2mdk  src rpm yesterday and rebuilt it on my
> > 7.2, rpm-3.0.5-27mdk version, glibc-2.1.3-18.5mdk, 2.4.3 kernel system.
> > This src rpm builds:
> >   mozilla-0.8.1-2mdk.i686.rpm,   mozilla-devel-0.8.1-2mdk.i686.rpm,
> >   mozilla-irc-0.8.1-2mdk.i686.rpm,  mozilla-mail-0.8.1-2mdk.i686.rpm,
> >   mozilla-psm-0.8.1-2mdk.i686.rpm
> > I installed (rpm -Uvh) only mozilla and mozilla-devel,  no problems.
> > 'Help,  about Mozilla' shows:
> > Mozilla/5.0 (X11; U; Linux 2.4.3-5tom i686; en-US; 0.8.1)
> > Gecko/20010408
> >
> >       This is a very long compile, twice as long as a kernel, over an
> > hour on my box.  In compiles like this (or any for that matter), if you
> > get errors, you should try again a few times.  If you're getting errors
> > in different places, it's most likely that your hardware is not up to
> > the task.

-- 
Dale Earnhardt,  the greatest stock car driver ever, 
 he's won his 8th and  His Greatest Championship
  Tom Brinkman       [EMAIL PROTECTED]       Galveston Bay

Reply via email to