On Tue, 10 Feb 2015 18:19:52 +0000, Andrew Beverley wrote: > It seems that there are 2 versions of DBIx::Class on CPAN. The proper > one under authors/id/R/RI/RIBASUSHI/DBIx-Class-0.082810.tar.gz and then > another one in authors/id/A/AB/ABRAXXA/DBIx-Class-0.08195.tar.gz I'd use the packaged version :) > The problem is that cpan2deb is picking up the incorrect older version. > However, when I run cpan directly it picks up the correct newer version. Not for me. - Well, at least not dh-make-perl itself: % dh-make-perl --cpan DBIx::Class == dh-make-perl 0.84 == CPAN: Term::ANSIColor loaded ok (v4.02) CPAN: File::HomeDir loaded ok (v1.00) Reading '/home/gregoa/.cpan/Metadata' Database was generated on Sun, 08 Feb 2015 16:41:02 GMT CPAN: Time::HiRes loaded ok (v1.9726) Fetching with LWP: ftp://cpan.inode.at/authors/01mailrc.txt.gz Reading '/home/gregoa/.cpan/sources/authors/01mailrc.txt.gz' ............................................................................DONE Fetching with LWP: ftp://cpan.inode.at/modules/02packages.details.txt.gz Reading '/home/gregoa/.cpan/sources/modules/02packages.details.txt.gz' Database was generated on Tue, 10 Feb 2015 16:53:15 GMT ............................................................................DONE Fetching with LWP: ftp://cpan.inode.at/modules/03modlist.data.gz Reading '/home/gregoa/.cpan/sources/modules/03modlist.data.gz' DONE Writing /home/gregoa/.cpan/Metadata Fetching with LWP: ftp://cpan.inode.at/authors/id/R/RI/RIBASUSHI/DBIx-Class-0.082810.tar.gz CPAN: Digest::SHA loaded ok (v5.88) Fetching with LWP: ftp://cpan.inode.at/authors/id/R/RI/RIBASUSHI/CHECKSUMS Checksum for /home/gregoa/.cpan/sources/authors/id/R/RI/RIBASUSHI/DBIx-Class-0.082810.tar.gz ok [...] Okok, that was not cpan2deb. Next try: % cpan2deb DBIx::Class == dh-make-perl 0.84 == CPAN: Term::ANSIColor loaded ok (v4.02) CPAN: File::HomeDir loaded ok (v1.00) Reading '/home/gregoa/.cpan/Metadata' Database was generated on Tue, 10 Feb 2015 16:53:15 GMT CPAN: Digest::SHA loaded ok (v5.88) Checksum for /home/gregoa/.cpan/sources/authors/id/R/RI/RIBASUSHI/DBIx-Class-0.082810.tar.gz ok [..] > I'm happy to investigate why this is happening, but can someone point me > in the direction of the area of code I should be looking in please? cpan2deb is a symlink to dh-make-perl, and dh-make-perl when called as cpan2deb just sets some options: % grep -r cpan2deb * [..] dh-make-perl:=item cpan2deb I<MODULE>|I<DIST> I<options...> dh-make-perl: cpan2deb <options...> Foo::Bar lib/DhMakePerl/Config.pm: 'cpan2deb', lib/DhMakePerl/Config.pm:use constant cpan2deb_DEFAULTS => { lib/DhMakePerl/Config.pm: my $cpan2deb = basename($0) eq 'cpan2deb'; lib/DhMakePerl/Config.pm: ( $cpan2deb lib/DhMakePerl/Config.pm: ? %{ $class->cpan2deb_DEFAULTS } lib/DhMakePerl/Config.pm: cpan2deb => $cpan2deb, lib/DhMakePerl/Config.pm: if ($self->cpan2deb) { lib/DhMakePerl/Config.pm: @ARGV == 1 or die "cpan2deb requires exactly one non-option argument"; % grep -r 'self->cfg->cpan' * lib/DhMakePerl/Command/Packaging.pm: if ( $self->cfg->cpan ) { lib/DhMakePerl/Command/Packaging.pm: my $name = $self->cfg->cpan; [..] Maybe there's some glitch in the interaction between dh-make-perl and the CPAN (config) stuff somewhere ... Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - https://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: David Bowie: The Jean Genie
Attachment:
signature.asc
Description: Digital Signature