Bug#1078071: libregexp-pattern-license-perl: warns on usage with Perl 5.40

Niko Tyni ntyni at debian.org
Wed Aug 14 21:31:15 BST 2024


Control: tag -1 patch

On Tue, Aug 06, 2024 at 06:39:00PM +0300, Niko Tyni wrote:
> Package: libregexp-pattern-license-perl
> Version: 3.11.0-1
> Severity: important
> User: debian-perl at lists.debian.org
> Usertags: perl-5.40-transition
> 
> This module warns on usage with Perl 5.40 (currently in experimental) when
> libre-engine-re2-perl (which is not a dependency, just a recommendation)
> is not installed.
> 
>   $ perl -e 'use Regexp::Pattern::License'
>   Attempt to call undefined import method with arguments ("-strict" ...) via package "re::engine::RE2" (Perhaps you forgot to load the package?) at /usr/share/perl5/Regexp/Pattern/License.pm line 15550.
> 
> This causes an autopkgtest regression and also makes licensecheck
> fail its test suite, hence the severity.

Patch attached, this fixes it for me.
-- 
Niko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: only-import-reenginere2-when-available.patch
Type: text/x-diff
Size: 691 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20240814/ef40da2a/attachment.patch>


More information about the pkg-perl-maintainers mailing list