[wplug] Building redhat from source

James O'Kane jo2y at midnightlinux.com
Fri May 30 15:02:34 EDT 2003


On Fri, 30 May 2003, Vanco, Donald wrote:
> 	You could likely lessen that by adding the --clean, --rmspec and (I
> think) --rmsource (possible src?) options
> 	Another option would be to -bb (as opposed to -ba) and build only
> the installable binaries (as opposed to -ba which also re-builds the source)

I was curious how much space it needed, so I wanted to keep everything.
 
> > 140 packages (of the 838 total) failed for uninvestigated reasons.
> 	Yes - but look at the packages in question - some pretty "heavy
> hitters" there...
> 	Did you, in fact, have ALL the "-devel" packages installed?  If not
> - that's a likely reason for many failures (and why I eventually did my
> rebuild against an "everything install" of RH)

No I didn't. That's the reason why glibc failed. I didn't have prelink.


> 	Some packages are just plain "noarch" - so that's likely a few of
> them...

noarch packages were built. To get the count of unbuilt packages, I 
compared the .src.rpm list before and after compiling.


> 	Curious - what did you do the compile on (OS, version and
> architecture (i.e. speed))?  Your time is FAR better than the 283 packages I
> rebuilt on a 4-way Xeon IBM x440 (took me 4 days - but much was duplicated
> effort before I finally did an "everything" install)


This was on my work desktop.

===========================

[root at dax root]# uname -a
Linux dax.cs.pitt.edu 2.4.18-27.8.0 #1 Fri Mar 14 06:45:49 EST 2003 i686 
i686 i386 GNU/Linux
[root at dax root]# cat /etc/redhat-release 
Red Hat Linux release 8.0 (Psyche)
[root at dax root]# egrep "(model name|cpu MHz)" /proc/cpuinfo 
model name      : Intel(R) Pentium(R) 4 CPU 2.40GHz
cpu MHz         : 2405.478
[root at dax root]# free
             total       used       free     shared    buffers     cached
Mem:        513924     496216      17708          0      44812     330532
-/+ buffers/cache:     120872     393052
Swap:      1052248     114320     937928


==============================


You should take a look at ccache http://ccache.samba.org/
I'm sure that helped a bit.
If you have a cluster of machines, look at http://distcc.samba.org/

Both are cool tools.


> 	You're well on your way to a good "How To"...... now if you were
> really bored you'd figure out a way to do it with "rebuild" so that the src
> RPM never has to get installed at all....   :)


eh, howto's imply I know what I'm doing ;)

-james





More information about the wplug mailing list