A quick check on Mandriva 2007.1 gives a number between:
$ urpmq -y perl|sort -u|wc -l
1249
and
$ urpmf --provides perl|awk -F: '{print $2}'|sort -u|wc -l
2929
depending how you count.

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.