Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543680 - dev-perl/JSON-XS-3.10.0 should block <dev-perl/JSON-2.900.0 and <dev-perl/JSON-Any-1.310.0
Summary: dev-perl/JSON-XS-3.10.0 should block <dev-perl/JSON-2.900.0 and <dev-perl/JSO...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-18 09:52 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2015-03-21 22:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2015-03-18 09:52:07 UTC
There's an annoying bug that can occur when JSON.pm and JSON::XS are loaded into the same process with JSON::XS > 3.0  and JSON.pm < 2.90 

https://metacpan.org/pod/JSON::Any#WARNING

https://metacpan.org/diff/file?target=MAKAMAKA/JSON-2.90/&source=MAKAMAKA/JSON-2.61/#Changes


Additionally, Installing JSON::XS > 3.0 breaks JSON::Any < 1.31, because the flow control iterates a list of potentials, sees that JSON::XS is installed, and attempts to use it, only to discover the API breakage JSON::XS 3.0 introduced.

And this causes a vauge death condition of 

> perl -MJSON::Any -E1
> Couldn't find a decoder method. at -e line 0.
> BEGIN failed--compilation aborted

And to be clear, its not likely to be as straight forward as stipulating more minimum versions, because:

- many of these components might cause circular deps. ( ie: JSON::XS can't depend on JSON::Any )
- some of these deps are || ( ) options ( leading to a minimum version being stipulated on a non-chosen path not having the right effect at runtime )

Summary:

>=dev-perl/JSON-XS-3.0
   breaks dev-perl/JSON < 2.90
   breaks dev-perl/JSON-Any < 1.31
   

However:

- JSON-XS should not require dev-perl/JSON
- JSON-XS should not require JSON-Any
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2015-03-21 22:42:06 UTC
        !<dev-perl/JSON-2.900.0
        !<dev-perl/JSON-Any-1.310.0

Added blockers