Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 422981 - dev-lang/perl-5.16.0 installs empty directory in /usr/local
Summary: dev-lang/perl-5.16.0 installs empty directory in /usr/local
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All All
: Normal trivial (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
: 431712 (view as bug list)
Depends on:
Blocks: perl-5.16
  Show dependency tree
 
Reported: 2012-06-22 14:45 UTC by Dmitri Bogomolov
Modified: 2013-03-14 12:48 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.