#536838 dh-make-perl: Incorrect assumptions about perl module version -> debian package version

#536838#5
Date:
2009-07-13 22:21:12 UTC
From:
To:
My Build.PL states:

   build_requires => {
                        'XML::SAX::ParserFactory' => '1.00',
                        ...
                     }

which comes out in META.yml as:

  build_requires:
    XML::SAX::ParserFactory: 1.00
    ...

dh-make-perl parsed this into:

  Build-Depends-Indep: perl (>= 5.6.0-12), perl-modules,
    libxml-sax-perl (>= 1.00)


This is an incorrect assumption about the mapping from perl module
versions into debian package versions.

As it happens, I only have installed:

  ii  libxml-sax-perl   0.96+dfsg-1    Perl module for using and building Perl SAX2 XML processors

which provides:

  package XML::SAX::ParserFactory;
  ...
  $VERSION = '1.01';

and should therefore be sufficient to build this module.

#536838#8
Date:
2009-07-27 12:14:12 UTC
From:
To:
Hi,

Hmmm. Not really. The Debian package version format is defined
as

<upstream_version>-<debian_revision>

So IMHO tools in Debian should be able to assume that a
given upstream version really reflects the upstream version of
a given project. The problem is somewhere different: Upstream
seems to handle to seperate versions and does not keep it in sync,
this seems to be clearly wrong and he should be educated to change
this.

Best Regards,
Patrick

#536838#13
Date:
2009-09-23 07:54:12 UTC
From:
To:
If Perl modules are allowed to have a different version for the distribution and
for the included modules, then dh-make-perl should support that.

#536838#18
Date:
2009-09-23 16:55:59 UTC
From:
To:
I agree that this would be nice; it just seems that noone has yet
come up with an idea on how dh-make-perl should know that libfoo-perl
0.08 ships Bar::Baz 0.15.

Cheers,
gregor

#536838#21
Date:
2010-03-06 18:08:59 UTC
From:
To:
-=| gregor herrmann, Wed, Sep 23, 2009 at 06:55:59PM +0200 |=-

Sounds like Module::CoreList, but for non-core modules. Does such a thing
exist?

#536838#30
Date:
2010-05-06 09:07:54 UTC
From:
To:
Could dh-make-perl not utilize CPAN's module index for finding out which
version of the distribution is required to get a certain module version?

#536838#33
Date:
2010-05-07 16:29:00 UTC
From:
To:
-=| Maximilian Gass, Thu, May 06, 2010 at 11:07:54AM +0200 |=-

Tht would solve the problem only when the wanted module version is
available in the latest distrobution on CPAN. This *is* the case with
XML-SAX-ParserFactory now.

Any idea what to do when it is not? For example one looks for Foo::Bar
0.14, but CPAN::Shell->expand('Module', 'Foo::Bar') returns info about
Foo::Bar 0.16.