Skip Menu |

This queue is for tickets about the JSON CPAN distribution.

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

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

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



Subject: JSON::backportPP::Boolean version breaks cpan 'upgrade' command
I used cpan to install MAKAMAKA/JSON-2.90.tar.gz. Then I used the 'r' command to find outdated modules. It reported: Package namespace installed latest in CPAN file JSON::backportPP::Boolean undef 2.27203 MAKAMAKA/JSON-2.61.tar.gz So now when I run 'upgrade', it thinks it needs to downgrade to JSON-2.61 to get the latest version of JSON::backportPP::Boolean, and then upgrade realizes JSON is outdated and installs JSON-2.90, immediately followed by JSON-2.61 again (which overwrites the newer version). Please put a proper version number in JSON::backportPP::Boolean.
On 2016-01-05 09:14:23, MAUKE wrote: Show quoted text
> I used cpan to install MAKAMAKA/JSON-2.90.tar.gz. Then I used the 'r' > command to find outdated modules. It reported: > > Package namespace installed latest in CPAN file > JSON::backportPP::Boolean undef 2.27203 MAKAMAKA/JSON- > 2.61.tar.gz > > So now when I run 'upgrade', it thinks it needs to downgrade to JSON- > 2.61 to get the latest version of JSON::backportPP::Boolean, and then > upgrade realizes JSON is outdated and installs JSON-2.90, immediately > followed by JSON-2.61 again (which overwrites the newer version). > > Please put a proper version number in JSON::backportPP::Boolean.
CPAN distroprefs to the rescue! As a workaround, you can add https://github.com/eserte/srezic-cpan-distroprefs/blob/master/02.dangerous_cpan_distributions.yml to your ~/.cpan/prefs directory (and configure CPAN.pm's prefs_dir), and then it will skip the following distributions: |\QMAKAMAKA/JSON-1.14.tar.gz\E |\QMAKAMAKA/JSON-1.15.tar.gz\E |\QMAKAMAKA/JSON-2.27.tar.gz\E |\QMAKAMAKA/JSON-2.61.tar.gz\E
Am Di 05. Jan 2016, 16:22:05, SREZIC schrieb: Show quoted text
> CPAN distroprefs to the rescue! As a workaround, you can add > https://github.com/eserte/srezic-cpan- > distroprefs/blob/master/02.dangerous_cpan_distributions.yml to your > ~/.cpan/prefs directory (and configure CPAN.pm's prefs_dir), and then > it will skip the following distributions: > > |\QMAKAMAKA/JSON-1.14.tar.gz\E > |\QMAKAMAKA/JSON-1.15.tar.gz\E > |\QMAKAMAKA/JSON-2.27.tar.gz\E > |\QMAKAMAKA/JSON-2.61.tar.gz\E
I downloaded your file (prefs_dir was already set to ~/.cpan/prefs by default) but it had no effect. The trick is you also have to install YAML, otherwise cpan can't parse the prefs (skipping them silently, it seems).
On 2016-01-05 18:57:43, MAUKE wrote: Show quoted text
> Am Di 05. Jan 2016, 16:22:05, SREZIC schrieb:
> > CPAN distroprefs to the rescue! As a workaround, you can add > > https://github.com/eserte/srezic-cpan- > > distroprefs/blob/master/02.dangerous_cpan_distributions.yml to your > > ~/.cpan/prefs directory (and configure CPAN.pm's prefs_dir), and then > > it will skip the following distributions: > > > > |\QMAKAMAKA/JSON-1.14.tar.gz\E > > |\QMAKAMAKA/JSON-1.15.tar.gz\E > > |\QMAKAMAKA/JSON-2.27.tar.gz\E > > |\QMAKAMAKA/JSON-2.61.tar.gz\E
> > I downloaded your file (prefs_dir was already set to ~/.cpan/prefs by > default) but it had no effect. The trick is you also have to install > YAML, otherwise cpan can't parse the prefs (skipping them silently, it > seems).
Oh. I added a note to the project's README.md. It would be nice to get warnings from CPAN.pm in this situation. Not so easy to implement, as it's possible to use Data::Dumper or Storable files instead of YAML files, so a warning should probably be issue only if there are .yml files in the directory, but not a single .dd or .st fallback file.
Fixed since JSON 2.92. Thanks.