← Back to team overview

pkg-perl-maintainers team mailing list archive

[Bug 1034881] [NEW] Debian::AptContents cannot find Contents.gz file

 

*** This bug is a duplicate of bug 1004080 ***
    https://bugs.launchpad.net/bugs/1004080

Public bug reported:

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

** Affects: dh-make-perl (Ubuntu)
     Importance: Undecided
         Status: New

** This bug has been marked a duplicate of bug 1004080
   Debian::AptContents doesn't correctly source apt-file contents files

-- 
You received this bug notification because you are a member of Debian
Perl Group, which is subscribed to dh-make-perl in Ubuntu.
https://bugs.launchpad.net/bugs/1034881

Title:
  Debian::AptContents cannot find Contents.gz file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dh-make-perl/+bug/1034881/+subscriptions


Follow ups

References