Debian::AptContents cannot find Contents.gz file

Bug #1034881 reported by ChrisCauser
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dh-make-perl (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Not sure how best to describe this one.

$ dh-make-perl locate Config::Tiny

Unable to locate module packages, because APT Contents files
are not available on the system.

Install the 'apt-file' package, run 'apt-file update' as root
and retry.

$ apt-file search Config/Tiny.pm
libconfig-tiny-perl: /usr/share/perl5/Config/Tiny.pm

This is because apt-file and Debian::AptContents parse the sources lists differently and so reach different Contents file locations

e.g., my /etc/apt/sources.list

## review or updates from the Ubuntu security team.
## security team.
## or updates from the Ubuntu security team.
deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse

apt-file's parse_sources_list, the sources list discards the last bit (i.e. the part after the dists) and writes to
/var/cache/apt/apt-file/security.ubuntu.com_ubuntu_dists_precise-security_Contents-amd64.gz

Debian::AptContents::repo_source_to_contents_paths parses it differently and ends up with a new line for each source I've mentioned above. This leads to, for example
/var/cache/apt/apt-file/security.ubuntu.com_ubuntu_dists_precise-security_main_Contents-amd64.gz

As it currently stands, dh-make-perl is not able to work out dependencies at all.

ubuntu: precise
dh-make-perl:0.75-1
apt-file:2.5.0ubuntu1

I hope I have explained myself sufficiently

Related branches

Revision history for this message
gregor herrmann (gregoa) wrote : Re: [Pkg-perl-maintainers] [Bug 1034881] [NEW] Debian::AptContents cannot find Contents.gz file

On Thu, 09 Aug 2012 12:49:19 -0000, ChrisCauser wrote:

> This is because apt-file and Debian::AptContents parse the sources lists differently and so reach different Contents file locations

Right.

That was already mentioned in
https://bugs.launchpad.net/ubuntu/+source/dh-make-perl/+bug/914479
in advance ...

Cheers,
gregor

--
 .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/
 `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `- Captain's Log, star date 21:34.5...

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dh-make-perl (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dh-make-perl - 0.79-1

---------------
dh-make-perl (0.79-1) unstable; urgency=low

  * silence a warning when reporting about a core-satisfied dependency without
    a version
  * fix problems with perl 5.18:
    (Closes: #719829)
    + fix missing =back in Debian::Control::Stanza::CommaSeparated POD
    + sort a couple of hash key walks breaking tests with perl 5.18
  * remove the trailing slash from ustream/watch URLs
  * drop usage of experimental given/when in Packaging.pm
  * rework --only internal representation to be a hash
  * t/dists.t: rework running dh-make-perl and give all diagnostics when a
    test fails
  * fix special handling of changed copyright years
  * make dh-make-perl report its version on every invocation

 -- Damyan Ivanov <email address hidden> Fri, 16 Aug 2013 14:00:30 +0200

Changed in dh-make-perl (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.