nysus has asked for the wisdom of the Perl Monks concerning the following question:

I have a cpan module that requires Log::Log4perl. The problem is that the latest version of Log::Log4perl has a long standing bug and it won't install on Windows. So, for Windows machines, I'd like to tell the installer to load only a specific version of Log::Log4perl, version 1.47. I'm using Dist::Zilla so that would be my preferred method of implementing this but I'm open to other ideas. Thanks.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

Replies are listed 'Best First'.
Re: Requiring older version of a Perl module if on Windows
by hippo (Archbishop) on Sep 15, 2018 at 09:57 UTC
Re: Requiring older version of a Perl module if on Windows
by nysus (Parson) on Sep 15, 2018 at 12:58 UTC
    SOLVED with https://metacpan.org/pod/Dist::Zilla::Plugin::OSPrereqs. In dist.ini:
    [OSPrereqs / ~win ] Log::Log4perl = <= 1.47

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks