[Bug 2117550] [NEW] libdpkg-perl Dpkg::Changelog::Debian.pm imports Dpkg::Changelog with unsupported import list
Todd Rinaldo
2117550 at bugs.launchpad.net
Wed Jul 23 05:18:45 UTC 2025
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
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/2117550
Title:
libdpkg-perl Dpkg::Changelog::Debian.pm imports Dpkg::Changelog with
unsupported import list
Status in dpkg package in Ubuntu:
New
Bug description:
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;
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2117550/+subscriptions
More information about the foundations-bugs
mailing list