Bug#942852: perl-modules-5.30: cpan writes configuration under .local/share/.cpan instead of .cpan

Niko Tyni ntyni at debian.org
Wed Oct 23 20:33:36 BST 2019


Control: reassign -1 src:perl 5.30.0-8

On Tue, Oct 22, 2019 at 01:48:56PM +0200, Vincent Lefevre wrote:
> Package: perl-modules-5.30
> Version: 5.30.0-8
> Severity: normal
> 
> When I run "cpan" after purging my configuration, the new
> configuration is written under the .local/share/.cpan directory,
> instead of .cpan as documented in the CPAN(3perl) man page.

It looks like this happens if both libfile-homedir-perl and xdg-user-dirs
are installed, in which case CPAN.pm uses File::HomeDir to look
up the directory, and File::HomeDir assumes you want to follow the
FreeDesktop.org specification.

Assuming this behaviour is deliberate, the CPAN.pm documentation
should probably refer to File::HomeDir or something like that.
-- 
Niko Tyni   ntyni at debian.org




More information about the Perl-maintainers mailing list