json: fix Bignumn/Fixnum issue when using Ruby 2.5
PATCH 1/1 json: fix Bignumn/Fixnum issue when using Ruby 2.5
There is a recognized problem with json_1.8.3 when used with Ruby 2.5; in summary:
compiling generator.c
generator.c: In function ‘generate_json’:
generator.c:861:25: error: ‘rb_cFixnum’ undeclared (first use in this function); did you mean ‘mFixnum’?
} else if (klass == rb_cFixnum) {
^~~~~~~~~~
mFixnum
generator.c:861:25: note: each undeclared identifier is reported only
once for each function it appears in
generator.c:863:25: error: ‘rb_cBignum’ undeclared (first use in this
function); did you mean ‘rb_cFixnum’?
} else if (klass == rb_cBignum) {
^~~~~~~~~~
rb_cFixnumThis is explained in detail at:
https://makandracards.com/makandra/74544-how-to-fix-json-1-8-3-with-ruby-2-5
The simplest solution is to upgrade json just a wee bit to 1.8.5 to resolve this.
Signed-off-by Robert P. J. Day <[email protected]>
---
meta-openstack/recipes-devtools/ruby/json_git.bb +4 -4
@@ -5,18 +5,18 @@ SUMMARY = "An implementation of the JSON specification according to RFC 4627" DESCRIPTION = "An implementation of the JSON specification according to RFC 4627" LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=aef161fe3c86f1a8d6c71d3b8c5655c5" +LIC_FILES_CHKSUM = "file://CHANGES;md5=af8cad0ff27a1593ac5ee461bc2d71ab" PR = "r0" -BPV = "1.8.3" +BPV = "1.8.5" PV = "${BPV}" -SRCREV = "db4c71a7701b95c30f945ee1536240920dcfdc17" +SRCREV = "4cf6c6270f52888997ec1b626b9f557db4f26f2e" S = "${WORKDIR}/git" SRC_URI = " \ - git://github.com/flori/json.git \ + git://github.com/flori/json.git;branch=v1.8 \ " inherit ruby
Signature · 6 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================