[Buildbot-devel] ccache and buildbot (was Re: Buildbot 1.0: The Shimmering Vision)

Bailey, Darragh dbailey at hp.com
Wed Aug 20 17:27:32 UTC 2008





> -----Original Message-----
> From: buildbot-devel-bounces at lists.sourceforge.net [mailto:buildbot-devel-
> bounces at lists.sourceforge.net] On Behalf Of Charles Lepple
> Sent: 20 August 2008 17:01
> To: Kai Blin
> Cc: buildbot
> Subject: Re: [Buildbot-devel] ccache and buildbot (was Re: Buildbot 1.0:
> The Shimmering Vision)
>
> On Wed, Aug 20, 2008 at 10:55 AM, Kai Blin <kai.blin at gmail.com> wrote:
> > On Wednesday 20 August 2008 02:12:23 Charles Lepple wrote:
> >> On Aug 19, 2008, at 5:53 PM, Kai Blin wrote:
> >> > Wouldn't it make more sense to simply use ccache and do a full
> >> > build every
> >> > time? The samba build farm does that and it performs reasonably well.
> >>
> >> I'm curious, how are you integrating ccache into the build?
> >
> > Not at all so far, but I didn't expect this to be complicated.

I wouldn't worry about trying to integrate ccache into buildbot, just set it up on the slaves to be available so that it's available to use for the buildbot user.

> >> The last time that I tried to set up ccache and buildbot (maybe
> >> around 0.7.6?), I had trouble getting the path changes to propagate
> >> into the buildsteps. (Using a set of symlinks in /usr/lib/ccache, as
> >> provided by Debian/Ubuntu.)
> >
> > Uh, I don't know about your setup, but on my Ubuntu box, I manually do:
> > sudo ln -s /usr/bin/ccache /usr/local/bin/gcc
> > sudo ln -s /usr/bin/ccache /usr/local/bin/g++
> > sudo ln -s /usr/bin/ccache /usr/local/bin/cc
> >
> > and never think about it again. :)
>
> That would work as well, but I usually use the /usr/lib/ccache links
> because it won't automatically interfere with any other compilation
> (in case a build slave is also a developer's box).
>
> I might give that a try, though.

Personally I prefer to have it appear transparently to any users of a system that I decide that should have ccache installed. If they don't want to use it they can set CCACHE_DISABLE in their environment to switch it off.

Add files to /etc/profile.d
ccache.sh
if [ -x "/usr/bin/ccache" -a -d "/usr/lib64/ccache/bin" ]; then
        if ! echo "$PATH" | grep -q /usr/lib64/ccache/bin; then
                PATH="/usr/lib64/ccache/bin:$PATH"
        fi
fi

Symlinks are installed as part of the rpm package, which I build and install locally, under usr/lib64/ccache/bin.

--
Regards,
Darragh Bailey

Systems Software Engineer
Hewlett Packard Galway Ltd.
+353 91 75-4674

Postal Address:    Hewlett Packard Galway Limited, Ballybrit Business Park, Galway
Registered Office: Hewlett Packard Galway Limited, 63-74 Sir John Rogerson's Quay Dublin 2
Registered Number: 361933

_______________________________________________
The contents of this message and any attachments to it are confidential and may be legally privileged. If you have received this message in error you should delete it from your system immediately and advise the sender.
To any recipient of this message within HP, unless otherwise stated you should consider this message and attachments as "HP CONFIDENTIAL".




More information about the devel mailing list