Control: retitle -1 distcc: fails to run ccache without setting CCACHE_DIR
Control: tags -1 + wontfix

The problematic situation here is that ccache is masquerading as gcc in
distccd's PATH.  This is not the recommended way to use these two
programs together, see my previous response.

The default of ccache is to store the compilation cache under the home
directory of the current user.  It can also be configured via CCACHE_DIR
to use another directory.  Ok.

The distcc daemon runs as a system user, distccd, with a HOME of "/".
The reporter claims that changing this to another directory will resolve
the issue.  It will.

However, it does not seem generally ok for a program to use a system
users HOME the same way that it would use a non-system users.  Consider
that a system users home:
- may be in a filesystem location with special restrictions;
- is often expected to be under the total control of programs associated
  with that user;
- contains system configuration; and
- is sometimes added to PATH.

Compare this with a non-system users home which is intended to be used
to store arbitrary, user-related files.

So although we may assign another HOME for distccd, it is not truely a
resolution of this bug.  If ccache is running as a system user (as it is
in the described setup) it must be configured via CCACHE_DIR to store
its data is a location setup by the local admin.

I'm tagging this wontfix, to indicate that it is unsupported to have
ccache masquerade in distccd's PATH without also configuring CCACHE_DIR.

This is only my assessment.  I am open to comments and opinion on this.

Regards


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to