Package: ccache
Version: 2.3-1.1
Severity: important

I use ccache by symlinking /usr/local/bin/gcc to /usr/bin/ccache.  
However when I use the scons build environment this completely breaks 
any use of gcc.

The reason is that scons (to "ensure" a consistent build environment) 
clears all environment variables.  This includes $HOME, which ccache (at 
least in my configuration) needs to find the cache dir.  So I get errors 
like

ccache: failed to create (null)/.ccache (No such file or directory)

any time I run scons.

I've already reported this as a bug to the scons people.  They claim 
it's a feature of scons, not a bug (and offered a complex workaround by 
changing my scons configuration...but I don't use scons enough to make 
this worthwhile).

I'd suggest that if getenv("HOME") is NULL (or in general, if the cache 
dir can't be found) that ccache should just run gcc rather than exiting 
with an error.  It may be useful to have a warning message but an error 
is avoidable.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages ccache depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to