public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] ccache and sandbox
@ 2002-05-24 17:12 John White
  2002-05-24 18:07 ` Defresne Sylvain
  2002-05-24 18:18 ` [gentoo-dev] sandbox howto? Sean P. Kane
  0 siblings, 2 replies; 3+ messages in thread
From: John White @ 2002-05-24 17:12 UTC (permalink / raw
  To: gentoo-dev

I heard an interesting question on irc just now.  Does anyone have
ccache on a system actually working to accellerate repeat compiles?

For a ccache overview: http://ccache.samba.org/

Short version, ccache speeds up repeat compiles by caching compiler
i/o.

However, because of the sandbox, ccache info results in a sandbox
violation.  The user patched sandbox to allow writes to /var/cache/ccache
but I'm wondering if there is supposed to be a better way.

-- 
John White


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-dev] ccache and sandbox
  2002-05-24 17:12 [gentoo-dev] ccache and sandbox John White
@ 2002-05-24 18:07 ` Defresne Sylvain
  2002-05-24 18:18 ` [gentoo-dev] sandbox howto? Sean P. Kane
  1 sibling, 0 replies; 3+ messages in thread
From: Defresne Sylvain @ 2002-05-24 18:07 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 849 bytes --]

Hello !

* John White (johnjohn@triceratops.com) wrote:
> I heard an interesting question on irc just now.  Does anyone have
> ccache on a system actually working to accellerate repeat compiles?
>
> For a ccache overview: http://ccache.samba.org/
> 
> Short version, ccache speeds up repeat compiles by caching compiler
> i/o.
> 
> However, because of the sandbox, ccache info results in a sandbox
> violation.  The user patched sandbox to allow writes to /var/cache/ccache
> but I'm wondering if there is supposed to be a better way.

  I've got another solution. In fact, the standard sanbox allows full
read / write acces in /tmp directory. So, I just set CCACHE_DIR to
'/tmp/root/ccache' and CC to 'ccache gcc' before calling emerge.

  It works well this way and it doesn't need to modify the sandbox !

Bye
-- 
Keiichi

[-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-dev] sandbox howto?
  2002-05-24 17:12 [gentoo-dev] ccache and sandbox John White
  2002-05-24 18:07 ` Defresne Sylvain
@ 2002-05-24 18:18 ` Sean P. Kane
  1 sibling, 0 replies; 3+ messages in thread
From: Sean P. Kane @ 2002-05-24 18:18 UTC (permalink / raw
  To: gentoo-dev

Where is the documentation for sandbox or at least a detailed
description of how it works, settings, etc?

Thanks,
Sean

-- 
-------------------------------------------------------------------------
Sean P. Kane                                       
spkane@genomatica.com
Lead Infrastructure Architect                       Genomatica, Inc.
-------------------------------------------------------------------------
   "When we destroy something man has created we call it vandalism......
    When we destroy something that Gaia has created we call it
progress."



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-05-24 18:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-24 17:12 [gentoo-dev] ccache and sandbox John White
2002-05-24 18:07 ` Defresne Sylvain
2002-05-24 18:18 ` [gentoo-dev] sandbox howto? Sean P. Kane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox