Skip Menu |

This queue is for tickets about the Dist-Zilla-Plugin-DynamicPrereqs CPAN distribution.

Report information
The Basics
Id: 133608
Status: open
Priority: 0/
Queue: Dist-Zilla-Plugin-DynamicPrereqs

People
Owner: Nobody in particular
Requestors: bekuno [...] sags-per-mail.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.039



Subject: bug in Dist::Zilla::Plugin::DynamicPrereqs 0.037
Date: Mon, 26 Oct 2020 11:01:42 +0100
To: bug-Dist-Zilla-Plugin-DynamicPrereqs [...] rt.cpan.org
From: bekuno [...] sags-per-mail.de
Hello,
 
There is a bug in Dist::Zilla::Plugin::DynamicPrereqs 0.037.
 
 
Here this code was inserted by Dist::Zilla::Plugin::DynamicPrereqs:
 
    # inserted by Dist::Zilla::Plugin::DynamicPrereqs 0.037     sub _add_prereq {       my ($mm_key, $module, $version_or_range) = @_;       $version_or_range ||= 0;       warn "$module already exists in $mm_key (at version $WriteMakefileArgs{$mm_key}{$module}) -- need to do a sane metamerge!"         if exists $WriteMakefileArgs{$mm_key}{$module}           and $WriteMakefileArgs{$mm_key}{$module} ne '0'           and $WriteMakefileArgs{$mm_key}{$module} ne $version_or_range;       warn "$module already exists in FallbackPrereqs (at version $FallbackPrereqs{$mm_key}{$module}) -- need to do a sane metamerge!"         if exists $FallbackPrereqs{$module} and $FallbackPrereqs{$module} ne '0'             and $FallbackPrereqs{$module} ne $version_or_range;       $WriteMakefileArgs{$mm_key}{$module} = $FallbackPrereqs{$module} = $version_or_range;       return;     }
 
This leads to this result:
 
    HTTP::Status already exists in PREREQ_PM (at version 6.07) -- need to do a sane metamerge! at Makefile.PL line 159.     Use of uninitialized value in concatenation (.) or string at Makefile.PL line 162.     HTTP::Status already exists in FallbackPrereqs (at version ) -- need to do a sane metamerge! at Makefile.PL line 162.
    HTTP::Status already exists in PREREQ_PM (at version 6.07) -- need to do a sane metamerge! at Makefile.PL line 159.     Use of uninitialized value in concatenation (.) or string at Makefile.PL line 162.     HTTP::Status already exists in FallbackPrereqs (at version ) -- need to do a sane metamerge! at Makefile.PL line 162.
 
The bug is in line 160.           warn "$module already exists in FallbackPrereqs (at version $FallbackPrereqs{$mm_key}{$module}) -- need to do a sane metamerge!" This should be       warn "$module already exists in FallbackPrereqs (at version $FallbackPrereqs{$module}) -- need to do a sane metamerge!"
 
Best regards, Bernd
 
On 2020-10-26 03:01:50, bekuno@sags-per-mail.de wrote: Show quoted text
> Hello, There is a bug in Dist::Zilla::Plugin::DynamicPrereqs 0.037. It > is used > in libwww-perl.
That's not a bug, that's a warning. It is harmless but can only be resolved in libwww-perl by adjusting its prerequisites. I filed https://github.com/libwww-perl/libwww-perl/issues/353.
ah, I see there is an incorrect value being used in one of the warning messages, giving rise to the uninitialized warning in libwww-perl. I'll fix that today.