FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > CentOS > CentOS Development

 
 
LinkBack Thread Tools
 
Old 03-04-2010, 01:30 AM
Brian Schueler
 
Default distributed compiling with icecc out of a mock-chroot

Hi, CentOSers,

I found out that icecc (icecream package), the distributed compiling
system delivers a great advantage for me when building software.
It's quite easy to set up mock 0.9.19 to use icecream by default.
There must be the lines

config_opts['chroot_setup_cmd'] = 'install buildsys-build icecream'
...
config_opts['macros']['%_smp_mflags'] = "-jX"

in the specific OS definition, where X in the _smp_mplags line is the
summary of all CPU cores in your compiler network.
You have to add a repository containing the icecream RPM. I'm using
icecream-0.9.4. The icecream cache must be delegated to the mock chroot
by adding

config_opts['plugin_conf']['bind_mount_opts']['dirs'].append
(('/var/cache/icecream', '/var/cache/icecream' ))

to the site-defaults.cfg file. This is why mock 0.9.19 is required for
this. Be sure that your icecream package contains
/etc/profile.d/icecream.sh which is needed to wrap cc,gcc,g++,... for
icecc in the mock chroot. Or you simply take my RPM.

Remember, that the compile nodes must be in the same subnet, so it's
a good idea that moving together your build machines using VPN bridges
or whatever. Pure compile nodes may even be something else than CentOS
(i.e. Debian) because the needed (target) compiler binaries are
delivered over the icecc network, too - and held in a cache.

What do you think about that?

Cheers,
Brian


_______________________________________________
CentOS-devel mailing list
CentOS-devel@centos.org
http://lists.centos.org/mailman/listinfo/centos-devel
 

Thread Tools




All times are GMT. The time now is 01:51 PM.

VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org