https://gihyo.jp/dev/serial/01/perl-hackers-hub/008002?utm_source=feed
#gihyo #技術評論社 #gihyo_jp #技術解説 #プログラミング #Perl #プログラミング言語 #Carmel #cpanm
I’ve just published a new Ansible module called perlmod_install_info whose purpose is to help you install Perl modules on systems in the most portable way possible.
Specifically, this module knows how to search for Perl modules in dnf, yum, and apt repositories as well as in cpanm. It prefers the OS repositories over CPAN because generally speaking you’re better off going with the OS-packaged versions of modules when they’re available, both because that’s more robust and because the OS packages install much faster than CPAN. CPAN is needed as a backstop because the OS distributions don’t include all Perl modules.
What’s especially clever about this module is that when it does need to resort to CPAN to find a module that isn’t available in the OS repository, it recursively determines all of the dependencies of that module and checks for them in the OS repository. It then returns lists of modules you can install from the OS and modules you need to install from CPAN, so you can minimize the number of modules that end up coming from CPAN.
If this sounds useful to you, you can check it out on GitHub.
#Ansible #apt #CPAN #cpanm #dnf #Perl #perlmodInstallInfo #yum
https://blog.kamens.us/2023/09/13/just-published-perlmod_install_info-ansible-module/
I tried to tinker a bit with some Git branch for a future #PullRequest before “doing the real work” …
Now I’ve dug deeply into `cpanm` code, created two truth tables of 32 cases each and lost the whole day writing a lengthy update on this #GitHub issue. 😂
https://github.com/miyagawa/cpanminus/issues/651#issuecomment-1693607035
The issue is actually about building small #Docker containers with minimal @Perl dependencies while using the #CPAN client #cpanm alias #cpanminus.