diff options
author | Jens Rehsack <sno@netbsd.org> | 2018-02-25 23:48:03 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-03-23 06:42:15 +0300 |
commit | c5bbb0b0e5fbc1e7dec0a6a238f78a8d781dac9a (patch) | |
tree | 49da72b6912ebbffa3d0c7f09b7aaa665223e8d9 /meta-phosphor/common/recipes-textproc | |
parent | 72efe0c9e9df999001ad16fd84457a495f828138 (diff) | |
download | openbmc-c5bbb0b0e5fbc1e7dec0a6a238f78a8d781dac9a.tar.xz |
json-perl: Update to 2.97001
Update recipe for CPAN hosted Perl5 module JSON from 2.90 to 2.97001 to
express our love to the Perl Programming Language.
Changes since 2.90: https://metacpan.org/changes/release/ISHIGAKI/JSON-2.97001
@charsbar: o/
Signed-off-by: Jens Rehsack <sno@netbsd.org>
(From meta-cpan rev: 205e10483629470ef49425c3a0ba47343aeeda59)
Tested: Built a witherspoon image
Change-Id: I76f352ec6fd27c1e65f95c7b32a3ed76b803d8e8
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor/common/recipes-textproc')
-rw-r--r-- | meta-phosphor/common/recipes-textproc/json-perl/json-perl_2.90.bb | 74 | ||||
-rw-r--r-- | meta-phosphor/common/recipes-textproc/json-perl/json-perl_2.97001.bb | 31 |
2 files changed, 31 insertions, 74 deletions
diff --git a/meta-phosphor/common/recipes-textproc/json-perl/json-perl_2.90.bb b/meta-phosphor/common/recipes-textproc/json-perl/json-perl_2.90.bb deleted file mode 100644 index e100c9a24..000000000 --- a/meta-phosphor/common/recipes-textproc/json-perl/json-perl_2.90.bb +++ /dev/null @@ -1,74 +0,0 @@ -DESCRIPTION = " *************************** CAUTION \ -************************************** * \ - * \ - * INCOMPATIBLE CHANGE (JSON::XS version 2.90) \ - * \ - * \ - * \ - * JSON.pm had patched JSON::XS::Boolean and JSON::PP::Boolean \ -internally * \ - * on loading time for making these modules inherit JSON::Boolean. \ - * \ - * But since JSON::XS v3.0 it use Types::Serialiser as boolean class. \ - * \ - * Then now JSON.pm breaks boolean classe overload features and \ - * \ - * -support_by_pp if JSON::XS v3.0 or later is installed. \ - * \ - * \ - * \ - * JSON::true and JSON::false returned JSON::Boolean objects. \ - * \ - * For workaround, they return JSON::PP::Boolean objects in this \ -version. * \ - * \ - * \ - * isa_ok(JSON::true, 'JSON::PP::Boolean'); \ - * \ - * \ - * \ - * And it discards a feature: \ - * \ - * \ - * \ - * ok(JSON::true eq 'true'); \ - * \ - * \ - * \ - * In other word, JSON::PP::Boolean overload numeric only. \ - * \ - * \ - * \ - * ok( JSON::true == 1 ); \ - * \ - * \ - * \ - \ -*********************************************************************** \ -***" - -SECTION = "libs" -LICENSE = "Artistic-1.0 | GPL-2.0" -PR = "r0" - -MAINTAINER= "Poky <poky@yoctoproject.org>" -HOMEPAGE= "https://metacpan.org/release/JSON" - -LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \ -file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" - -SRC_URI = "http://cpan.metacpan.org/authors/id/M/MA/MAKAMAKA/JSON-2.90.tar.gz" - -SRC_URI[md5sum] = "e1512169a623e790a3f69b599cc1d3b9" -SRC_URI[sha256sum] = "4ddbb3cb985a79f69a34e7c26cde1c81120d03487e87366f9a119f90f7bdfe88" - -S = "${WORKDIR}/JSON-${PV}" - -inherit cpan - -do_compile() { - export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')" - cpan_do_compile -} - -BBCLASSEXTEND = "native" diff --git a/meta-phosphor/common/recipes-textproc/json-perl/json-perl_2.97001.bb b/meta-phosphor/common/recipes-textproc/json-perl/json-perl_2.97001.bb new file mode 100644 index 000000000..9196e8e57 --- /dev/null +++ b/meta-phosphor/common/recipes-textproc/json-perl/json-perl_2.97001.bb @@ -0,0 +1,31 @@ +DESCRIPTION = "This module is a thin wrapper for JSON::XS-compatible modules with a few \ +additional features. All the backend modules convert a Perl data structure \ +to a JSON text as of RFC4627 (which we know is obsolete but we still stick \ +to; see below for an option to support part of RFC7159) and vice versa. \ +This module uses JSON::XS by default, and when JSON::XS is not available, \ +this module falls back on JSON::PP, which is in the Perl core since 5.14. \ +If JSON::PP is not available either, this module then falls back on \ +JSON::backportPP (which is actually JSON::PP in a different .pm file) \ +bundled in the same distribution as this module. You can also explicitly \ +specify to use Cpanel::JSON::XS, a fork of JSON::XS by Reini Urban." + +SECTION = "libs" +LICENSE = "Artisticv1 | GPLv1+" +PR = "r0" + +MAINTAINER= "Poky <poky@yoctoproject.org>" +HOMEPAGE= "https://metacpan.org/release/JSON" + +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \ +file://${COMMON_LICENSE_DIR}/GPL-1.0;md5=e9e36a9de734199567a4d769498f743d" + +SRC_URI = "https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/JSON-2.97001.tar.gz" + +SRC_URI[md5sum] = "693d6ff167496362f8ec6c3c5b8ba5ee" +SRC_URI[sha256sum] = "e277d9385633574923f48c297e1b8acad3170c69fa590e31fa466040fc6f8f5a" + +S = "${WORKDIR}/JSON-${PV}" + +inherit cpan allarch + +BBCLASSEXTEND = "native" |