Public bug reported:

Package: libdpkg-perl
Version: 1.20.12 (or current on Ubuntu 22.04)
Perl version: 5.42.0 (development/testing)

The file /usr/share/perl5/Dpkg/Changelog/Debian.pm contains the
following line:

    use Dpkg::Changelog qw(:util);

However, Dpkg::Changelog does not support any import list, and this
causes a failure under Perl 5.42.0 due to stricter import behavior.

This breaks any tooling that relies on libdpkg-perl with newer versions
of Perl. Given the import does nothing, it should be perfectly safe to
remove.

Suggested fix:
```diff
-use Dpkg::Changelog qw(:util);
+use Dpkg::Changelog;

** Affects: dpkg (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "ChangelogDebian.patch"
   
https://bugs.launchpad.net/bugs/2117550/+attachment/5892475/+files/ChangelogDebian.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2117550

Title:
  libdpkg-perl Dpkg::Changelog::Debian.pm imports Dpkg::Changelog with
  unsupported import list

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2117550/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to