# equery files dev-lang/perl | grep /usr/local /usr/local /usr/local/lib /usr/local/lib/perl5 /usr/local/lib/perl5/5.16.0 /usr/local/lib/perl5/5.16.0/i686-freebsd Reproducible: Always
Not BSD specific
*** Bug 431712 has been marked as a duplicate of this bug. ***
$ qfile -v /usr/local/lib64/perl5/5.16.0/x86_64-linux dev-lang/perl-5.16.0 (/usr/local/lib64/perl5/5.16.0/x86_64-linux)
The directory /usr/local/lib64/perl5/ is being used for locally installed perl modules with e.g. cpan, cpanp... If we'd remove the directory, cpan will report on the first run where it checks whether the directories are writable: install_help => qq{ Warning: You do not have write permission for Perl library directories. To install modules, you need to configure a local Perl library directory or escalate your privileges. CPAN can help you by bootstrapping the local::lib module or by configuring itself to use 'sudo' (if available). You may also resolve this problem manually if you need to customize your setup. What approach do you want? (Choose 'local::lib', 'sudo' or 'manual') }, What are our options?
(In reply to comment #4) > What are our options? Go for it ;)
Your solution of deleting "${D}"/usr/local causes breakage for prefixes living in /usr/local. I've opened a separate bug 455926 for this.
This has been fixed. Thanks.