From: Karen Etheridge Date: Wed, 23 Apr 2014 16:39:01 +0000 (-0700) Subject: oops, BUILD_REQUIRES is undef X-Git-Tag: v1.002001~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=86f2a3a57b13a1550f247136f29184818d0e9cd3;p=p5sagit%2FJSON-MaybeXS.git oops, BUILD_REQUIRES is undef --- diff --git a/Changes b/Changes index bfa76e4..56d74fb 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,8 @@ Revision history for JSON-MaybeXS + - fix installation on older perls with an older ExtUtils::MakeMaker + (RT#94964) + 1.002000 - 2014-04-22 - Now also supports JSON::XS, when available: Cpanel::JSON::XS will only be installed when there is no XS backend already installed; Cpanel::JSON::XS diff --git a/Makefile.PL b/Makefile.PL index 1c6e7e0..dd7345b 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -47,7 +47,7 @@ my %WriteMakefileArgs = ( my $eumm_version = eval $ExtUtils::MakeMaker::VERSION; $WriteMakefileArgs{MIN_PERL_VERSION} = delete $WriteMakefileArgs{PREREQ_PM}{perl} || 0; $WriteMakefileArgs{BUILD_REQUIRES} = { - %{$WriteMakefileArgs{BUILD_REQUIRES}}, + %{$WriteMakefileArgs{BUILD_REQUIRES} || {}}, %{delete $WriteMakefileArgs{TEST_REQUIRES}} } if $eumm_version < 6.63_03; $WriteMakefileArgs{PREREQ_PM} = {