diff options
author | Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> | 2019-07-01 04:52:11 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-02 08:13:07 +0100 |
commit | cfd8d156fd92b3a0b157451c824745c7159e760a (patch) | |
tree | e0efe764fdb7e0dcf1b3e65214e6a467d85d5867 /meta/recipes-devtools/ruby/ruby_2.5.5.bb | |
parent | 223885877370513e643c98f573b42a62c69145ce (diff) | |
download | poky-cfd8d156fd92b3a0b157451c824745c7159e760a.tar.gz |
ruby: update to 2.5.5
(From OE-Core rev: f2c5659968dcdb44ceaf030b45b1e3baf3be7a7e)
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/ruby/ruby_2.5.5.bb')
-rw-r--r-- | meta/recipes-devtools/ruby/ruby_2.5.5.bb | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/meta/recipes-devtools/ruby/ruby_2.5.5.bb b/meta/recipes-devtools/ruby/ruby_2.5.5.bb new file mode 100644 index 0000000000..8ad59a7657 --- /dev/null +++ b/meta/recipes-devtools/ruby/ruby_2.5.5.bb | |||
@@ -0,0 +1,80 @@ | |||
1 | require ruby.inc | ||
2 | |||
3 | SRC_URI += " \ | ||
4 | file://ruby-CVE-2017-9226.patch \ | ||
5 | file://ruby-CVE-2017-9228.patch \ | ||
6 | file://run-ptest \ | ||
7 | " | ||
8 | |||
9 | SRC_URI[md5sum] = "7e156fb526b8f4bb1b30a3dd8a7ce400" | ||
10 | SRC_URI[sha256sum] = "28a945fdf340e6ba04fc890b98648342e3cccfd6d223a48f3810572f11b2514c" | ||
11 | |||
12 | # it's unknown to configure script, but then passed to extconf.rb | ||
13 | # maybe it's not really needed as we're hardcoding the result with | ||
14 | # 0001-socket-extconf-hardcode-wide-getaddr-info-test-outco.patch | ||
15 | UNKNOWN_CONFIGURE_WHITELIST += "--enable-wide-getaddrinfo" | ||
16 | |||
17 | PACKAGECONFIG ??= "" | ||
18 | PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" | ||
19 | |||
20 | PACKAGECONFIG[valgrind] = "--with-valgrind=yes, --with-valgrind=no, valgrind" | ||
21 | PACKAGECONFIG[gmp] = "--with-gmp=yes, --with-gmp=no, gmp" | ||
22 | PACKAGECONFIG[ipv6] = ",--enable-wide-getaddrinfo," | ||
23 | |||
24 | EXTRA_AUTORECONF += "--exclude=aclocal" | ||
25 | |||
26 | EXTRA_OECONF = "\ | ||
27 | --disable-versioned-paths \ | ||
28 | --disable-rpath \ | ||
29 | --disable-dtrace \ | ||
30 | --enable-shared \ | ||
31 | --enable-load-relative \ | ||
32 | --with-pkg-config=pkg-config \ | ||
33 | " | ||
34 | |||
35 | do_install() { | ||
36 | oe_runmake 'DESTDIR=${D}' install | ||
37 | } | ||
38 | |||
39 | do_install_append_class-target () { | ||
40 | # Find out rbconfig.rb from .installed.list | ||
41 | rbconfig_rb=`grep rbconfig.rb ${B}/.installed.list` | ||
42 | # Remove build host directories | ||
43 | sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' \ | ||
44 | -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \ | ||
45 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | ||
46 | -e 's:${HOSTTOOLS_DIR}/::g' \ | ||
47 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ | ||
48 | -e 's:${RECIPE_SYSROOT}::g' \ | ||
49 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ | ||
50 | ${D}$rbconfig_rb | ||
51 | |||
52 | # Find out created.rid from .installed.list | ||
53 | created_rid=`grep created.rid ${B}/.installed.list` | ||
54 | # Remove build host directories | ||
55 | sed -i -e 's:${WORKDIR}::g' ${D}$created_rid | ||
56 | |||
57 | } | ||
58 | |||
59 | do_install_ptest () { | ||
60 | cp -rf ${S}/test ${D}${PTEST_PATH}/ | ||
61 | cp -r ${S}/include ${D}/${libdir}/ruby/ | ||
62 | test_case_rb=`grep rubygems/test_case.rb ${B}/.installed.list` | ||
63 | sed -i -e 's:../../../test/:../../../ptest/test/:g' ${D}/$test_case_rb | ||
64 | } | ||
65 | |||
66 | PACKAGES =+ "${PN}-ri-docs ${PN}-rdoc" | ||
67 | |||
68 | SUMMARY_${PN}-ri-docs = "ri (Ruby Interactive) documentation for the Ruby standard library" | ||
69 | RDEPENDS_${PN}-ri-docs = "${PN}" | ||
70 | FILES_${PN}-ri-docs += "${datadir}/ri" | ||
71 | |||
72 | SUMMARY_${PN}-rdoc = "RDoc documentation generator from Ruby source" | ||
73 | RDEPENDS_${PN}-rdoc = "${PN}" | ||
74 | FILES_${PN}-rdoc += "${libdir}/ruby/*/rdoc ${bindir}/rdoc" | ||
75 | |||
76 | FILES_${PN} += "${datadir}/rubygems" | ||
77 | |||
78 | FILES_${PN}-ptest_append_class-target += "${libdir}/ruby/include" | ||
79 | |||
80 | BBCLASSEXTEND = "native" | ||