aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@crashcourse.ca>2020-12-26 15:29:22 -0500
committerBruce Ashfield <bruce.ashfield@gmail.com>2021-01-10 23:14:09 -0500
commit5c6ef32f59b92a1c1ff4636a413b6d3fe6208145 (patch)
tree6cffffb6f4eda8b4735e55977dd4524cc189b3bc
parenteafa48b2398fc80f60d17483e44d6080a28efc23 (diff)
downloadmeta-cloud-services-5c6ef32f59b92a1c1ff4636a413b6d3fe6208145.tar.gz
meta-cloud-services-5c6ef32f59b92a1c1ff4636a413b6d3fe6208145.tar.bz2
meta-cloud-services-5c6ef32f59b92a1c1ff4636a413b6d3fe6208145.zip
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_cFixnum This 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 <rpjday@crashcourse.ca> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--meta-openstack/recipes-devtools/ruby/json_git.bb8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta-openstack/recipes-devtools/ruby/json_git.bb b/meta-openstack/recipes-devtools/ruby/json_git.bb
index a417798b..f7b3dd79 100644
--- a/meta-openstack/recipes-devtools/ruby/json_git.bb
+++ b/meta-openstack/recipes-devtools/ruby/json_git.bb
@@ -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