[Bug 206790] [NEW] Deprecated call in dpkg-dev to init method in Dpkg::Changelog::Entry

Launchpad Bug Tracker 206790 at bugs.launchpad.net
Thu Feb 17 08:24:50 UTC 2011


You have been subscribed to a public bug by Daniel Holbach (dholbach):

Binary package hint: dpkg

According to the dpkg-dev changelog, some significant changes were made
to the Dpkg::Changelog::Entry clas. One of the significant recent
changes is the removal of the init method from that class. So, instead
of instantiating new entry objects using Dpkg::Changelog::Entry->init(),
new Dpkg::Changelog::Entry should be used instead.

The problem is that most of the code was updated accordingly except for
one line in /usr/share/perl5/Dpkg/Changelog/Debian.pm:

  $entry = newDpkg::Changelog::Entry->init();

This is causing applications depending on this code such as alien to
fail horribly:

  Can't locate object method "init" via package "Dpkg::Changelog::Entry" at
  /usr/share/perl5/Dpkg/Changelog/Debian.pm line 260, <STDIN> line 8.

This is a simple problem to fix, please check it out.

TEST CASE:
apt-get source man-db
cd man-db-*
dpkg-parsechangelog --all

The command will fail on hardy, and work with the hardy-proposed version
of dpkg-dev.

** Affects: dpkg (Ubuntu)
     Importance: Medium
         Status: Fix Released

** Affects: dpkg (Ubuntu Hardy)
     Importance: Medium
     Assignee: Martin Pitt (pitti)
         Status: Fix Released

** Affects: dpkg (Debian)
     Importance: Unknown
         Status: Fix Released


** Tags: verification-done
-- 
Deprecated call in dpkg-dev to init method in Dpkg::Changelog::Entry
https://bugs.launchpad.net/bugs/206790
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is a direct subscriber.



More information about the Ubuntu-sponsors mailing list