Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147767 - Gentoo Distcc Documentation should mention PORTAGE_TMPDIR
Summary: Gentoo Distcc Documentation should mention PORTAGE_TMPDIR
Status: RESOLVED WONTFIX
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Docs Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-15 22:31 UTC by Carl Hudkins
Modified: 2006-09-17 14:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Added a bit about PORTAGE_TMPDIR to doc/en/distcc.xml (distcc.diff,723 bytes, patch)
2006-09-17 10:45 UTC, Thomas Skyt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carl Hudkins 2006-09-15 22:31:42 UTC
I have discovered that if we leave the variable PORTAGE_TMPDIR in make.conf commented out (as is the default), distcc will attempt to use /.distcc as its working directory!

This is because of the line in make.conf:

DISTCC_DIR="${PORTAGE_TMPDIR}/.distcc"

That's fine if PORTAGE_TMPDIR is defined, but if not, the variable expands to nothing, .distcc gets created in the root directory, and we run into access violations when attempting to compile.

As it's perfectly possible to maintain a working system without uncommenting that line (to keep the default), some users may get hit with this odd problem, as I did.

Mentioning this in the Docs may prevent this bit of head-scratching.  :)
Comment 1 Thomas Skyt 2006-09-17 10:45:13 UTC
Created attachment 97265 [details, diff]
Added a bit about PORTAGE_TMPDIR to doc/en/distcc.xml

I have added a few lines to code listing 2.2 regarding this bug.
Comment 2 Xavier Neys (RETIRED) gentoo-dev 2006-09-17 14:37:43 UTC
(In reply to comment #0)
> This is because of the line in make.conf:
> 
> DISTCC_DIR="${PORTAGE_TMPDIR}/.distcc"

The only reason you have that line in your make.conf is because you added it and you reference an undefined variable.
The doc does not tell you to add DISTCC_DIR (removed more than 2 years ago, see bug #53015).
If you want to override defaults, you're on your own.