Skip Menu |

This queue is for tickets about the JSON CPAN distribution.

Report information
The Basics
Id: 84876
Status: resolved
Priority: 0/
Queue: JSON

People
Owner: Nobody in particular
Requestors: ether [...] cpan.org
Cc:
AdminCc:

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



Subject: JSON::XS is being installed unconditionally in non-interactive mode
This is a problem on 5.17.*, where JSON::XS is broken (due to hash randomization changes). Makefile.PL should detect when a terminal is not present, and not prompt to install JSON::XS, because when there is no interactivity, this defaults to Y, and then installation fails when JSON::XS fails. I'm not sure if there's a way of detecting that JSON::XS fails to install -- if it can do this, then JSON's installation should still be able to proceed without it. I believe the Lancaster consensus had some things to say about how this should be done, too.
Show quoted text
> I believe the Lancaster consensus had some things to say about how > this should be done, too.
10:33 <@leont> It should recommend JSON::XS instead of require 10:33 <@leont> Though one could argue it could instead unrequire it given PUREPERL_ONLY=1 10:35 <@rjbs> It should either (a) add a "recommend" without asking or (b) change the default based on PUREPERL_ONLY. 10:35 <@rjbs> imho
On 2013-04-26 10:36:18, ETHER wrote: Show quoted text
>
> > I believe the Lancaster consensus had some things to say about how > > this should be done, too.
> > 10:33 <@leont> It should recommend JSON::XS instead of require > 10:33 <@leont> Though one could argue it could instead unrequire it given > PUREPERL_ONLY=1 > 10:35 <@rjbs> It should either (a) add a "recommend" without asking or (b) > change the default based on PUREPERL_ONLY. > 10:35 <@rjbs> imho >
This is important to fix, as it's currently impossible to install JSON (without --force) in non-interactive mode under 5.18.0, as JSON::XS will not install cleanly.
I released new version. You will get it from CPAN for a while. https://metacpan.org/release/MAKAMAKA/JSON-2.58 Thanks! On 2013-5月-22 水 12:44:13, ETHER wrote: Show quoted text
> On 2013-04-26 10:36:18, ETHER wrote:
> >
> > > I believe the Lancaster consensus had some things to say about how > > > this should be done, too.
> > > > 10:33 <@leont> It should recommend JSON::XS instead of require > > 10:33 <@leont> Though one could argue it could instead unrequire it
> given
> > PUREPERL_ONLY=1 > > 10:35 <@rjbs> It should either (a) add a "recommend" without asking
> or (b)
> > change the default based on PUREPERL_ONLY. > > 10:35 <@rjbs> imho > >
> > > This is important to fix, as it's currently impossible to install JSON > (without --force) in non-interactive mode under 5.18.0, as JSON::XS > will not install cleanly. >
closed.