There are sandboxing issues with the current perl eclass files for building a perl module. The errors look to be in how the modules are built/installed, not in sandbox itself.
Problem was with a typo in the perl-modules.eclass file for the pod information and the 2.0.13 release of portage. Under portage 2.0.21 and with the line fixed, perl module ebuilds compile again safely and without errors. Seemant commited the eclass fix, portage is still masked but available.
Going to wait until portage .21's sandbox issues are confirmed and resolved. If the behavior with emerging perl modules dissapeared in .21, but .21 isn't honoring the sandbox, then the problem may still exist.
Created attachment 2672 [details] Syntax fix for perl-modules eclass The attached eclass file changes the perl Makefile.pl line to include the Prefix. In 5.6.1, this was honored later on, but perl 5.8.0 appears to be more strict on where the PREFIX can be used. Technically, the PREFIX line needs to be included in the perl Makefile statement so that the makefile includes the proper PREFIX, instead of being forced on later. The attached modification (based on Seemant's commit from this afternoon) has been tested and works on both perl 5.6.1 and perl 5.8.0 systems, x86 architecture. With the addition of the PREFIX line to the perl Makefile statement in the eclass, there were no sandbox errors on the perl 5.8.0 system.
Mike, The perl modules install an run ok on perl 5.6 with the new PREFIX line?
Seemant, That's actually where perl expectes the PREFIX line to be used. I think perl 5.6.* was just more lax in letting you call it there later. Perl 5.8.0 only honors it if it is used during the perl Makefile.PL PREFIX=/yada. I tested this eclass file on a perl 5.6.1 system, and my perl 5.8.0 box, both were able to install ebuild modules without causing problems (without the addition, 5.8 violates the sandbox). You could probably drop the PREFIX from its later use during the normal make, but it doesn't hurt to have it there as well.
http://www.cpan.org/misc/cpan-faq.html#How_install_private Essentially what you are doing when you use sandbox
New perl-modules.eclass has been commited to portage.
*** This bug has been marked as a duplicate of 6097 ***