While trying to emerge perl, I would get permission errors during the compile. Talking to 'rac' on IRC s/he asked that I try with PORTAGE_TMPDIR set to the default, and the problem went away. The most pertinent line seems to be opendir(./../../../../../../../..): Permission denied at ../../lib/File/Find.pm line 579 Sorry I don't have the rest of the error. :-( Reproducible: Always Steps to Reproduce: 1. emerge perl 2. 3. I'd had PORTAGE_TMPDIR set to /home/<user>/tmp/portage. It *looked* like there was a relative path being used that the ebuild didn't like.
This is PORTAGE_TMPDIR specific, has nothing to do with perl.
I'd imagine it was trying to open /home or /home/user. Perhaps the ebuild should cd / and addpredict / ?
Closing... issue was likely the fact that the sandbox has the normal/default tmpdir location hardcoded. ebuild.sh now-adays sets SANDBOX_* vars on it's own, including that directory... as does cvs head, since solar hit this bug :)