Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 422981

Summary: dev-lang/perl-5.16.0 installs empty directory in /usr/local
Product: Gentoo/Alt Reporter: Dmitri Bogomolov <4glitch>
Component: FreeBSDAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: trivial CC: qa, ssuominen, tdalman
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 415485    

Description Dmitri Bogomolov 2012-06-22 14:45:39 UTC
# 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
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-06-22 15:53:49 UTC
Not BSD specific
Comment 2 Torsten Veller (RETIRED) gentoo-dev 2012-08-17 11:26:45 UTC
*** Bug 431712 has been marked as a duplicate of this bug. ***
Comment 3 SpanKY gentoo-dev 2012-08-23 21:45:01 UTC
$ 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)
Comment 4 Torsten Veller (RETIRED) gentoo-dev 2012-09-05 11:47:52 UTC
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?
Comment 5 Tolga Dalman 2012-12-16 15:22:40 UTC
(In reply to comment #4)

> What are our options?

Go for it ;)
Comment 6 Michael Weiser 2013-02-06 22:59:11 UTC
Your solution of deleting "${D}"/usr/local causes breakage for prefixes living in /usr/local. I've opened a separate bug 455926 for this.
Comment 7 Torsten Veller (RETIRED) gentoo-dev 2013-03-14 12:48:19 UTC
This has been fixed.

Thanks.