diff options
author | Wang Mingyu <wangmy@cn.fujitsu.com> | 2020-02-12 10:35:06 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-15 10:26:42 +0000 |
commit | 717ba0a25669f469c7698399a79ad21661324edc (patch) | |
tree | 7e3117fcaaa7b2a4dc324416d87baaba87b46056 /meta/recipes-devtools/ruby/ruby_2.7.0.bb | |
parent | f4b77888144cbcb0fcf851544ee73b81d92f234a (diff) | |
download | poky-717ba0a25669f469c7698399a79ad21661324edc.tar.gz |
ruby: upgrade 2.6.5 -> 2.7.0
0003-configure.ac-check-finite-isinf-isnan-as-macros-firs.patch
Removed since it is included in 2.7.0.
refresh the following patch:
0002-Obey-LDFLAGS-for-the-link-of-libruby.patch
add the following patch to solve build error:
0001-Modify-shebang-of-libexec-y2racc-and-libexec-racc2y.patch
[error message]
ERROR: ruby-2.7.0-r0 do_package_qa: QA Issue:
/usr/lib/ruby/gems/2.7.0/gems/racc-1.4.16/bin/y2racc contained in
package ruby requires /usr/local/bin/ruby, but no providers found in
RDEPENDS_ruby? [file-rdeps]
format of file COPYING is updated.
LEGAL notice information is updated.
(From OE-Core rev: 3cdf5da514b424a6d78ba4e1412331b6cf2b3bff)
Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/ruby/ruby_2.7.0.bb')
-rw-r--r-- | meta/recipes-devtools/ruby/ruby_2.7.0.bb | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/meta/recipes-devtools/ruby/ruby_2.7.0.bb b/meta/recipes-devtools/ruby/ruby_2.7.0.bb new file mode 100644 index 0000000000..c796318717 --- /dev/null +++ b/meta/recipes-devtools/ruby/ruby_2.7.0.bb | |||
@@ -0,0 +1,78 @@ | |||
1 | require ruby.inc | ||
2 | |||
3 | SRC_URI += " \ | ||
4 | file://remove_has_include_macros.patch \ | ||
5 | file://run-ptest \ | ||
6 | file://0001-Modify-shebang-of-libexec-y2racc-and-libexec-racc2y.patch \ | ||
7 | " | ||
8 | |||
9 | SRC_URI[md5sum] = "bf4a54e8231176e109a42c546b4725a9" | ||
10 | SRC_URI[sha256sum] = "8c99aa93b5e2f1bc8437d1bbbefd27b13e7694025331f77245d0c068ef1f8cbe" | ||
11 | |||
12 | PACKAGECONFIG ??= "" | ||
13 | PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" | ||
14 | |||
15 | PACKAGECONFIG[valgrind] = "--with-valgrind=yes, --with-valgrind=no, valgrind" | ||
16 | PACKAGECONFIG[gmp] = "--with-gmp=yes, --with-gmp=no, gmp" | ||
17 | PACKAGECONFIG[ipv6] = "--enable-ipv6, --disable-ipv6," | ||
18 | |||
19 | EXTRA_OECONF = "\ | ||
20 | --disable-versioned-paths \ | ||
21 | --disable-rpath \ | ||
22 | --disable-dtrace \ | ||
23 | --enable-shared \ | ||
24 | --enable-load-relative \ | ||
25 | --with-pkg-config=pkg-config \ | ||
26 | " | ||
27 | |||
28 | do_install() { | ||
29 | oe_runmake 'DESTDIR=${D}' install | ||
30 | } | ||
31 | |||
32 | do_install_append_class-target () { | ||
33 | # Find out rbconfig.rb from .installed.list | ||
34 | rbconfig_rb=`grep rbconfig.rb ${B}/.installed.list` | ||
35 | # Remove build host directories | ||
36 | sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' \ | ||
37 | -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \ | ||
38 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | ||
39 | -e 's:${HOSTTOOLS_DIR}/::g' \ | ||
40 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ | ||
41 | -e 's:${RECIPE_SYSROOT}::g' \ | ||
42 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ | ||
43 | ${D}$rbconfig_rb | ||
44 | } | ||
45 | |||
46 | do_install_ptest () { | ||
47 | cp -rf ${S}/test ${D}${PTEST_PATH}/ | ||
48 | # install test-binaries | ||
49 | find $(find ./.ext -path '*/-test-') -name '*.so' -print0 \ | ||
50 | | tar --no-recursion --null -T - --no-same-owner --preserve-permissions -cf - \ | ||
51 | | tar -C ${D}${libdir}/ruby/${SHRT_VER}.0/ --no-same-owner --preserve-permissions --strip-components=2 -xf - | ||
52 | # adjust path to not assume build directory layout | ||
53 | sed -e 's|File.expand_path(.*\.\./bin/erb[^)]*|File.expand_path("${bindir}/erb"|g' \ | ||
54 | -i ${D}${PTEST_PATH}/test/erb/test_erb_command.rb | ||
55 | |||
56 | cp -r ${S}/include ${D}/${libdir}/ruby/ | ||
57 | test_case_rb=`grep rubygems/test_case.rb ${B}/.installed.list` | ||
58 | sed -i -e 's:../../../test/:../../../ptest/test/:g' ${D}/$test_case_rb | ||
59 | } | ||
60 | |||
61 | PACKAGES =+ "${PN}-ri-docs ${PN}-rdoc" | ||
62 | |||
63 | SUMMARY_${PN}-ri-docs = "ri (Ruby Interactive) documentation for the Ruby standard library" | ||
64 | RDEPENDS_${PN}-ri-docs = "${PN}" | ||
65 | FILES_${PN}-ri-docs += "${datadir}/ri" | ||
66 | |||
67 | SUMMARY_${PN}-rdoc = "RDoc documentation generator from Ruby source" | ||
68 | RDEPENDS_${PN}-rdoc = "${PN}" | ||
69 | FILES_${PN}-rdoc += "${libdir}/ruby/*/rdoc ${bindir}/rdoc" | ||
70 | |||
71 | FILES_${PN} += "${datadir}/rubygems" | ||
72 | |||
73 | FILES_${PN}-ptest_append_class-target = "\ | ||
74 | ${libdir}/ruby/include \ | ||
75 | ${libdir}/ruby/${SHRT_VER}.0/*/-test- \ | ||
76 | " | ||
77 | |||
78 | BBCLASSEXTEND = "native" | ||