Subject: | File::HomeDir 0.93 (maybe earlier) breaks CPAN |
Date: | Mon, 15 Nov 2010 02:06:51 +0100 |
To: | bug-CPAN [...] rt.cpan.org |
From: | Marc Lehmann <schmorp [...] schmorp.de> |
After upgrading to File::HomeDir 0.93, cpan suddenly told me I needed to
do configuration again.
The reason was found quickly: File::HomeDir apparently returns
$HOME/.local/share as the directory to put the .cpan dir in, which means
the correct location ($HOME/.cpan) is ignored.
This is either a bug in the docs (which say File::HomeDir is only used on
windows) AND in the cpan code OR a bug just in the cpan code:
If cpan wishes to use the xdg basedir directories (a stupid idea, IMHO,
changing the cpan directory location after a a decade or even more), then
it would actually need to put the caches into the xdg cache directory
($HOME/.cache/cpan), not the data directory ($HOME/.local/share/.cpan),
and arguably, the build directories are also cached files, not application
data. Last not leats, config fiels would need to go to $HOME/.config.
In my opinion, doing what the documentation claims (using File::HomeDir
only on windows) would probably the best approach. Breaking each and every
cpan unix install is not really sensible at this point, especially as CPAN
doesn't even follow the xdg standard :)
(Maybe somebody could convince the File::HomeDir maintainer to revert
this, as many methods just croak because they are suddenly no longer
supported, so apparently xdg doesn't map well on what File::HomeDir wants
to know, but regardless, the real issue is in CPAN).
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp@schmorp.de
-=====/_/_//_/\_,_/ /_/\_\