Bug#1078102: libdevel-confess-perl: autopkgtest regression with Perl 5.40: syntax.t failure

Niko Tyni ntyni at debian.org
Sun Aug 18 20:11:15 BST 2024


Control: tag -1 patch

On Wed, Aug 07, 2024 at 01:01:52AM +0300, Niko Tyni wrote:
> Package: libdevel-confess-perl
> Version: 0.009004-3
> Severity: important
> Tags: trixie sid
> User: debian-perl at lists.debian.org
> Usertags: perl-5.40-transition
> 
> This package fails its autopkgtest checks with Perl 5.40 (currently
> in experimental.)

>  92s     # Name "Carp::CarpLevel" used only once: possible typo at /usr/share/perl5/Devel/Confess/Source.pm line 23.

> A fix might be to add "no warnings 'once';" to the block where the
> offending variable is used.

Alternatively, as per perldiag.pod, "just mention it again somehow to
suppress the message."

Not sure which is cleaner, but the attached patch works for me.
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-fatalized-used-only-once-warnings.patch
Type: text/x-diff
Size: 1009 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20240818/04119da2/attachment.patch>


More information about the pkg-perl-maintainers mailing list