hi junichi, On Sunday 18 May 2008 09:34:03 am Junichi Uekawa wrote: > Oh, erm, yeah. I don't think it's a good idea to request everyone to > modify their /etc/profile inside chroot. What would be a proper fix? > I was thinking of dumping PATH and sourcing the PATH value inside > chroot, but what else do I need to special-case? > > I'd like some input from ccache users.
that's the the only variable that i've seen with problems. as i mentioned
earlier setting other arbitrary variables works fine, so setting variables
like CCACHE_UMASK CCACHE_DIR has no problem. besides these variables and
PATH, the only other things you need in a chroot is a bind mount of a ccache
dir and ccache installed inside the chroot (both of which i've done via
pbuilderrc) therefore i don't think there's anything else that needs to be
special cased. PATH is special only because /etc/profile arbitrarily sets it
without consideration to what it may already have been set.
So, if you have a way to get PATH set without needing to modify /etc/profile,
i'm glad to hear it :)
sean
signature.asc
Description: This is a digitally signed message part.

