Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I don't think this will work out well with the tools we have.

    Let me explain: The default installation paths for the traditional Perl resources are taken from the compile-time %Config hash. This includes various paths for modules and their binary parts, but no concept of user directories, /var/www or any other resources.

    Naturally, %Config being populated on perl-compile time cannot and should not provide this information. But scanning the system File::HomeDir-esque during installation and making guesses on behalf of the user can result in (for the user) very unexpected behaviour. For CGI's this path is completely impossible to take. I assume that's why you even ask in your journal and didn't just figure it out for yourself in a second.

    Worse yet is asking the user during installation of a CPAN module. These kinds of questions are what makes the lives of sysadmins and cpan testers alike miserable.

    What's left? Find a better configuration mechanism for the installation targets of various resources from CPAN. Or keep CPAN and its tools to what they can handle today. I don't think an in-between solution will be beneficial to most.

    By the way: these were exactly the issues I was struggling with when I hacked on an external-library-system for Strawberry Perl. With the notable difference that I could build tools myself and didn't have to rely on CPAN(PLUS) in the least.

    Good luck!

    Steffen
    • Worse yet is asking the user during installation of a CPAN module. These kinds of questions are what makes the lives of sysadmins and cpan testers alike miserable.

      What you need is the installation of some tool in the bindir which can complete the installation. Taking the same approach that e.g. kwiki or rails takes. It does involve packaging all the assets into a Perl module somehow and then extracting them. In fact, a framework that does this might well be a useful CPAN module...

      -Dom

    • There are at least a few methods for leveraging "their binary parts".

      File::ShareDir is built entirely on it. It installs files into the /auto/ lib area.

      While I agree that teaching the CPAN infrastructure about the other resource types is likely to be impossible, I'm not entirely sure that asking the user is necesarily a bad idea.

      We already let users override the installation paths via things like PREFIX. So in principle the concept of user-driven configuration is not necesarily a bad idea, particularly on s