Bug#1078073: libatteanx-parser-jsonld-perl: FTBFS with Perl 5.40: Changing use VERSION while another use VERSION is in scope is deprecated

Niko Tyni ntyni at debian.org
Thu Aug 15 16:29:05 BST 2024


Control: tag -1 patch

On Tue, Aug 06, 2024 at 06:46:37PM +0300, Niko Tyni wrote:
> Package: libatteanx-parser-jsonld-perl
> Version: 0.001-4
> Severity: important
> User: debian-perl at lists.debian.org
> Usertags: perl-5.40-transition

>   Changing use VERSION while another use VERSION is in scope is deprecated, and will become fatal in Perl 5.44 at /<<PKGBUILDDIR>>/blib/lib/AtteanX/Parser/JSONLD.pm line 43.
>   
>   #   Failed test 'no (unexpected) warnings (via done_testing)'

The attached patch changes the global 'use v5.14' to 'use v5.18'
instead so that the package-level 'use v5.18' is not needed anymore.
I've checked that it fixes the immediate issue.

I can't see any use of the new features that get enabled with this,
as described in perl5160delta or perl5180delta. I suppose it's still
possible that this breaks something. It does pass the test suite
though. Unfortunately there are no rdeps in the Debian archive to test
against.

Tentatively tagging 'patch'. Hope this helps.
-- 
Niko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use-v5.18-throughout-the-module.patch
Type: text/x-diff
Size: 707 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20240815/f4262237/attachment.patch>


More information about the pkg-perl-maintainers mailing list