Skip Menu |

This queue is for tickets about the DhMakePerl CPAN distribution.

Report information
The Basics
Id: 117963
Status: resolved
Priority: 0/
Queue: DhMakePerl

People
Owner: abe+cpan [...] deuxchevaux.org
Requestors: joenio [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: can't locate DBD::SQLite
$ dh-make-perl locate DBD::SQLite3 == dh-make-perl 0.91 == Using cached Contents from Mon Sep 19 19:03:15 2016 DBD::SQLite3 is not found in any Debian package But this module is packaged under libdbd-sqlite3-perl.
Subject: can't locate DBI
$ dh-make-perl locate DBI == dh-make-perl 0.91 == Using cached Contents from Mon Sep 19 19:03:15 2016 DBI is not found in any Debian package
Subject: can't locate List::MoreUtils
$ dh-make-perl locate List::MoreUtils == dh-make-perl 0.91 == Using cached Contents from Mon Sep 19 19:03:15 2016 List::MoreUtils is not found in any Debian package $ apt-cache search liblist-moreutils liblist-moreutils-perl - Perl module with additional list functions not found in List::Util
Subject: Re: [rt.cpan.org #117965] can't locate DBI
Date: Mon, 19 Sep 2016 22:43:48 +0200
To: Joenio Costa via RT <bug-DhMakePerl [...] rt.cpan.org>
From: Axel Beckert <abe+cpan [...] deuxchevaux.org>
Hi, On Mon, Sep 19, 2016 at 04:08:29PM -0400, Joenio Costa via RT wrote: Show quoted text
> $ dh-make-perl locate DBI > == dh-make-perl 0.91 == > Using cached Contents from Mon Sep 19 19:03:15 2016 > DBI is not found in any Debian package
On Mon, Sep 19, 2016 at 04:11:21PM -0400, Joenio Costa via RT wrote: Show quoted text
> $ dh-make-perl locate List::MoreUtils > == dh-make-perl 0.91 == > Using cached Contents from Mon Sep 19 19:03:15 2016 > List::MoreUtils is not found in any Debian package
Thanks for the bug report. Those seem to be all the same issue, so I merged them. I can confirm your findings on Debian Unstable. Nevertheless it works for _some_ Perl modules for me: → dh-make-perl locate List::Util == dh-make-perl 0.91 == Using cached Contents from Mon Sep 19 22:21:15 2016 List::Util is in Perl core (package perl) since 5.7.3 → dh-make-perl locate Run::Parts == dh-make-perl 0.91 == Using cached Contents from Mon Sep 19 22:21:15 2016 Run::Parts is in librun-parts-perl package It's though not yet obvious to me, why this doesn't work for the majority of modules I tried it with. On Mon, Sep 19, 2016 at 04:01:16PM -0400, Joenio Costa via RT wrote: Show quoted text
> $ dh-make-perl locate DBD::SQLite3 > == dh-make-perl 0.91 == > Using cached Contents from Mon Sep 19 19:03:15 2016 > DBD::SQLite3 is not found in any Debian package
This is though correct since libdbd-sqlite3-perl only seems to contain DBD/SQLite.pm… Kind regards, Axel -- /~\ Plain Text Ribbon Campaign | Axel Beckert \ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail) X See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber) / \ I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)
Yes, you're right! dh-make-perl works in most of times.
Em Seg Set 19 16:44:02 2016, ABE escreveu: Show quoted text
> On Mon, Sep 19, 2016 at 04:01:16PM -0400, Joenio Costa via RT wrote:
> > $ dh-make-perl locate DBD::SQLite3 > > == dh-make-perl 0.91 == > > Using cached Contents from Mon Sep 19 19:03:15 2016 > > DBD::SQLite3 is not found in any Debian package
> > This is though correct since libdbd-sqlite3-perl only seems to contain > DBD/SQLite.pm…
Yes, sorry, it's my fault, in fact the issue is when I try `dh-make-perl locate DBD::SQLite`. $ dh-make-perl locate DBD::SQLite == dh-make-perl 0.91 == Using cached Contents from Mon Sep 19 19:03:15 2016 DBD::SQLite is not found in any Debian package
Subject: Re: [rt.cpan.org #117963] can't locate DBD::SQLite
Date: Mon, 19 Sep 2016 23:30:41 +0200
To: Joenio Costa via RT <bug-DhMakePerl [...] rt.cpan.org>
From: Axel Beckert <abe [...] deuxchevaux.org>
Hi, On Mon, Sep 19, 2016 at 05:00:21PM -0400, Joenio Costa via RT wrote: Show quoted text
> Yes, you're right! dh-make-perl works in most of times.
Some more facts: Not all (expected) files are listed in the cache: $ perl -MStorable -MData::Dumper -E 'say Dumper retrieve("/home/abe/.dh-make-perl/Contents.cache");' | fgrep DBI.pm does not show me _the_ DBI.pm file but only some …::DBI.pm files. It doesn't contain anything with List/MoreUtils.pm either. The only match for "MoreUtil" was Hash/MoreUtils.pm from libhash-moreutils-perl. So this explains at least why they're not found. Next question is why they're not indexed/cached. What still works and finds something is: $ /usr/lib/apt/apt-helper cat-file `apt-get indextargets --format '$(CREATED_BY) $(ARCHITECTURE) $(SUITE) $(FILENAME)' | egrep '^Contents-deb' | awk '{print $4}'` | fgrep List/MoreUtil usr/lib/x86_64-linux-gnu/perl5/5.22/List/MoreUtils.pm perl/liblist-moreutils-perl usr/lib/x86_64-linux-gnu/perl5/5.22/List/MoreUtils/Contributing.pod perl/liblist-moreutils-perl usr/lib/x86_64-linux-gnu/perl5/5.22/List/MoreUtils/PP.pm perl/liblist-moreutils-perl usr/lib/x86_64-linux-gnu/perl5/5.22/List/MoreUtils/XS.pm perl/liblist-moreutils-perl usr/lib/x86_64-linux-gnu/perl5/5.22/auto/List/MoreUtils/MoreUtils.so perl/liblist-moreutils-perl usr/lib/x86_64-linux-gnu/perl5/5.22/List/MoreUtils.pm perl/liblist-moreutils-perl usr/lib/x86_64-linux-gnu/perl5/5.22/List/MoreUtils/Contributing.pod perl/liblist-moreutils-perl usr/lib/x86_64-linux-gnu/perl5/5.22/List/MoreUtils/PP.pm perl/liblist-moreutils-perl usr/lib/x86_64-linux-gnu/perl5/5.22/List/MoreUtils/XS.pm perl/liblist-moreutils-perl usr/lib/x86_64-linux-gnu/perl5/5.22/auto/List/MoreUtils/MoreUtils.so perl/liblist-moreutils-perl So the list of files get_contents_files() returns is fine. And we already see the culprit: x86_64-linux-gnu is not expected by dh-make-perl's read_cache() function: next unless $file =~ s{ ^usr/ (?:share|lib)/ (?:perl\d+/ # perl5/ | perl/(?:\d[\d.]+)/ # or perl/5.10/ ) }{}x; This kills any recent XS- or C-written Perl module. Will try to fix this, thanks for the bug report! Kind regards, Axel -- /~\ Plain Text Ribbon Campaign | Axel Beckert \ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail) X See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber) / \ I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)
Em Seg Set 19 17:31:04 2016, abe@deuxchevaux.org escreveu: Show quoted text
> This kills any recent XS- or C-written Perl module.
Yes, that is it! Thank you Abe for your time checking this!