Bug#1078118: libuniversal-exports-perl: warns on usage with Perl 5.40: Subroutine UNIVERSAL::import redefined

Niko Tyni ntyni at debian.org
Sat Aug 24 17:20:15 BST 2024


On Wed, Aug 07, 2024 at 11:14:53AM +0300, Niko Tyni wrote:
> Package: libuniversal-exports-perl
> Version: 0.05-4
> Severity: important
> Tags: trixie sid
> User: debian-perl at lists.debian.org
> Usertags: perl-5.40-transition
> 
> This module warns on usage with Perl 5.40 (currently in experimental).
> This causes an autopkgtest regression.
> 
>   https://ci.debian.net/packages/libu/libuniversal-exports-perl/unstable/amd64/50046521/
> 
>   $ perl -e 'use UNIVERSAL::exports'
>   Subroutine UNIVERSAL::import redefined at /usr/share/perl5/Exporter/Lite.pm line 56.
> 
> Apparently UNIVERSAL has started to define an 'import' method, as mentioned in
> 
>   https://metacpan.org/dist/perl/view/pod/perldelta.pod#Calling-the-import-method-of-an-unknown-package-produces-a-warning

The attached patch seems to fix this, but I feel dirty to suggest it.
OTOH any fiddling with UNIVERSAL feels dirty to me, so *shrug*.

I'm tempted to say UNIVERSAL-exports should just go away, but there's
a handful of packages depending on it.

Perhaps just whitelist the warning for our QA and let users of the
reverse dependencies suffer?

  % apt-cache rdepends libuniversal-exports-perl
  libuniversal-exports-perl
  Reverse Depends:
    libclass-dbi-plugin-pager-perl
    libuniversal-require-perl
    libtemplate-plugin-clickable-perl
    libmodule-pluggable-fast-perl
    libformvalidator-simple-perl

-- 
Niko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Silence-UNIVERSAL-import-redefined-warning-with-Perl.patch
Type: text/x-diff
Size: 1175 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20240824/b480965e/attachment.patch>


More information about the pkg-perl-maintainers mailing list