[distcc] chroot?

Dag Wieers dag at wieers.com
Wed Mar 10 06:50:15 GMT 2004


On Tue, 9 Mar 2004, Dan Kegel wrote:

> Dag Wieers wrote:
> >>Anyone here using distccd inside a chroot jail on Linux?
> > 
> > 
> > I'm building packages for several Red Hat/Fedora distributions using 
> > distcc an chroot. The following links may be of some interest to you:
> > 
> > 	http://dag.wieers.com/home-made/dar/
> > 	http://dag.wieers.com/home-made/distcc/
> > 
> > Basicly you install a minimal chroot system (you could use mach for that), 
> > install the Red Hat/Fedora compiler package and distcc-server and off you 
> > go.
> 
> Very nice!

After I send the mail I realized you meant chrooting the server and not 
the build-environment. Chrooting the server should be even easier, ldd on 
the server should show you what libraries are needed for gcc/distcc, and 
you may need to have things like an /etc/passwd. If you have problems 
strace should be able to help you find missing files.

I think there's a script somewhere on Internet that does some basic stuff 
automatically (like ldd and the passwd). You just need to tell it what 
binaries you need.

A static version would probably be easier to chroot.

Kind regards,
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]



More information about the distcc mailing list