← Back to team overview

pkg-perl-maintainers team mailing list archive

[Bug 561598] [NEW] Debian::AptContents doesn't parse package names correctly

 

Public bug reported:

Binary package hint: dh-make-perl

Ubuntu 9.10
dh-make-perl 0.60

When you run dh-make-perl on a Perl module that depends on Log::Log4perl
(for example), it generates a debian/control file that lists "perl
/liblog-log4perl-perl" as a dependency. The expected behaviour is
generation of a dependency on "liblog-log4perl-perl".

The problem seems to be in the find_file_packages sub in the Perl module
Debian::AptContents, on the line 378:

367 sub find_file_packages {
368     my( $self, $file ) = @_;
369 
370     my $packages = $self->cache->{apt_contents}{$file};
371 
372     return () unless $packages;
373 
374     my @packages = split( /,/, $packages );     # Contents contains a
375                                                 # comma-delimitted list
376                                                 # of packages
377 
378     s{[^/]+/}{} for @packages;  # remove section
379 
380     return @packages;
381 }

The list @packages includes things like "universe/perl/liblog-log4perl-
perl", and the "s{[^/]+/}{}" removes only the "universe/"-part.

ProblemType: Bug
Architecture: amd64
Date: Mon Apr 12 16:54:50 2010
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelModules: nvidia
Package: dh-make-perl 0.60
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-20.58-generic
SourcePackage: dh-make-perl
Uname: Linux 2.6.31-20-generic x86_64

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


** Tags: amd64 apport-bug

-- 
Debian::AptContents doesn't parse package names correctly
https://bugs.launchpad.net/bugs/561598
You received this bug notification because you are a member of Debian
Perl Group, which is subscribed to dh-make-perl in ubuntu.



Follow ups

References