Module::Packaged should rather use the Mandriva primary mirror (http://carroll.cac.psu.edu/pub/linux/distributions/mandrivalinux/official/), and maybe use the "current" distro (which at present is a symlink to 2007.0). Also, Module::Packaged is only counting the "main" repo in the release, not contrib (which has more perl modules than main).
Module::Packaged::Generate checks the module names it finds in packages with a name matching perl-(.*)-(.*?)-\d+mdk (note that the package suffix has changed to mdv<distro_release>, e.g. mdv2007.1, but packages which have not required a rebuild since the release of 2006 may still have the old suffix), and discards them if there is not a matching package on CPAN. However, the Mandriva perl packaging policy is to name the package perl-<upstream_tarball_name>, so e.g. we ship perl-ldap (not perl-Net-LDAP). I'm not sure if this was handled correctly or not.
Also, since some perl modules have names that exceed the allowable length of an rpm package name (e.g. perl-Catalyst-Plugin-Authentication-Store-LDAP), some packages are abbreviated (perl-Catalyst-P-A-Store-LDAP). As such, it may be better to use the provides fields of the packages (which are automatically generated), e.g.:
$ rpm -q --provides perl-Catalyst-P-A-Store-LDAP
perl-Catalyst-Plugin-Authentication-Store-LDAP
perl(Catalyst::Plugin::Authentication::Store::LDAP)
perl(Catalyst::Plugin::Authentication::Store::LDAP::Backend)
perl(Catalyst::Plugin::Authentication::Store::LDAP::User)
perl-Catalyst-P-A-Store-LDAP = 0.04-4mdv2007.0
So, if these would be more accurate (and not result in duplicates), it might be better to use URPM (I was under the impression it was on CPAN) or some of the MDV::* or Youri::* tools (which are).
Anyway, I'll see if I can answer some of these questions myself, and maybe provide patches for Module::Packaged (and maybe even support RHEL{2,3,4} as well).
In reply to Re: Perl Modules in distributions
by Anonymous Monk
in thread Perl Modules in distributions
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |