diff options
author | Lee Chee Yang <chee.yang.lee@intel.com> | 2022-02-28 11:38:37 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-10 16:39:45 +0000 |
commit | b2bd31b9cc10165719d132073ddaa8e93298f633 (patch) | |
tree | 1d0c1df2d6bdbb59da8448f0aaed912bf68e30fa /meta/recipes-devtools/ruby/ruby_3.0.1.bb | |
parent | cec2ca666a83d4badb2f48a71b40941f49e5e40f (diff) | |
download | poky-b2bd31b9cc10165719d132073ddaa8e93298f633.tar.gz |
ruby : update to 3.0.3
Do not tweak a file that is no longer installed.
Ruby 3.0.3 includes security fixes.
CVE-2021-41817: Regular Expression Denial of Service Vulnerability of Date Parsing Methods
CVE-2021-41816: Buffer Overrun in CGI.escape_html
CVE-2021-41819: Cookie Prefix Spoofing in CGI::Cookie.parse
Ruby 3.0.2 release includes security fixes.
CVE-2021-31810: Trusting FTP PASV responses vulnerability in Net::FTP
CVE-2021-32066: A StartTLS stripping vulnerability in Net::IMAP
CVE-2021-31799: A command injection vulnerability in RDoc
(From OE-Core rev: edb6df08cb47a39918d28c709675d995c9e10031)
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/ruby/ruby_3.0.1.bb')
-rw-r--r-- | meta/recipes-devtools/ruby/ruby_3.0.1.bb | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/meta/recipes-devtools/ruby/ruby_3.0.1.bb b/meta/recipes-devtools/ruby/ruby_3.0.1.bb deleted file mode 100644 index a348946972..0000000000 --- a/meta/recipes-devtools/ruby/ruby_3.0.1.bb +++ /dev/null | |||
@@ -1,105 +0,0 @@ | |||
1 | require ruby.inc | ||
2 | |||
3 | DEPENDS_append_libc-musl = " libucontext" | ||
4 | |||
5 | SRC_URI += " \ | ||
6 | file://remove_has_include_macros.patch \ | ||
7 | file://run-ptest \ | ||
8 | file://0001-template-Makefile.in-do-not-write-host-cross-cc-item.patch \ | ||
9 | file://CVE-2021-31810.patch \ | ||
10 | file://CVE-2021-32066.patch \ | ||
11 | file://CVE-2021-31799.patch \ | ||
12 | file://0003-rdoc-build-reproducible-documentation.patch \ | ||
13 | file://0004-lib-mkmf.rb-sort-list-of-object-files-in-generated-M.patch \ | ||
14 | file://0005-Mark-Gemspec-reproducible-change-fixing-784225-too.patch \ | ||
15 | file://0006-Make-gemspecs-reproducible.patch \ | ||
16 | " | ||
17 | |||
18 | SRC_URI[sha256sum] = "369825db2199f6aeef16b408df6a04ebaddb664fb9af0ec8c686b0ce7ab77727" | ||
19 | |||
20 | PACKAGECONFIG ??= "" | ||
21 | PACKAGECONFIG += "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" | ||
22 | |||
23 | PACKAGECONFIG[valgrind] = "--with-valgrind=yes, --with-valgrind=no, valgrind" | ||
24 | PACKAGECONFIG[gmp] = "--with-gmp=yes, --with-gmp=no, gmp" | ||
25 | PACKAGECONFIG[ipv6] = "--enable-ipv6, --disable-ipv6," | ||
26 | |||
27 | EXTRA_OECONF = "\ | ||
28 | --disable-versioned-paths \ | ||
29 | --disable-rpath \ | ||
30 | --disable-dtrace \ | ||
31 | --enable-shared \ | ||
32 | --enable-load-relative \ | ||
33 | --with-pkg-config=pkg-config \ | ||
34 | " | ||
35 | |||
36 | EXTRA_OECONF_append_libc-musl = "\ | ||
37 | LIBS='-lucontext' \ | ||
38 | ac_cv_func_isnan=yes \ | ||
39 | ac_cv_func_isinf=yes \ | ||
40 | " | ||
41 | |||
42 | EXTRA_OECONF_append_libc-musl_riscv64 = "\ | ||
43 | --with-coroutine=copy \ | ||
44 | " | ||
45 | EXTRA_OECONF_append_libc-musl_riscv32 = "\ | ||
46 | --with-coroutine=copy \ | ||
47 | " | ||
48 | |||
49 | do_install() { | ||
50 | oe_runmake 'DESTDIR=${D}' install | ||
51 | } | ||
52 | |||
53 | do_install_append_class-target () { | ||
54 | # Find out rbconfig.rb from .installed.list | ||
55 | rbconfig_rb=`grep rbconfig.rb ${B}/.installed.list` | ||
56 | # Remove build host directories | ||
57 | sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' \ | ||
58 | -e s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \ | ||
59 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | ||
60 | -e 's:${HOSTTOOLS_DIR}/::g' \ | ||
61 | -e 's:${RECIPE_SYSROOT_NATIVE}::g' \ | ||
62 | -e 's:${RECIPE_SYSROOT}::g' \ | ||
63 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ | ||
64 | ${D}$rbconfig_rb | ||
65 | } | ||
66 | |||
67 | do_install_ptest () { | ||
68 | cp -rf ${S}/test ${D}${PTEST_PATH}/ | ||
69 | |||
70 | install -D ${S}/tool/test/runner.rb ${D}${PTEST_PATH}/tool/test/runner.rb | ||
71 | cp -r ${S}/tool/lib ${D}${PTEST_PATH}/tool/ | ||
72 | mkdir -p ${D}${PTEST_PATH}/lib | ||
73 | cp -r ${S}/lib/did_you_mean ${S}/lib/rdoc ${D}${PTEST_PATH}/lib | ||
74 | |||
75 | # install test-binaries | ||
76 | find $(find ./.ext -path '*/-test-') -name '*.so' -print0 \ | ||
77 | | tar --no-recursion --null -T - --no-same-owner --preserve-permissions -cf - \ | ||
78 | | tar -C ${D}${libdir}/ruby/${SHRT_VER}.0/ --no-same-owner --preserve-permissions --strip-components=2 -xf - | ||
79 | # adjust path to not assume build directory layout | ||
80 | sed -e 's|File.expand_path(.*\.\./bin/erb[^)]*|File.expand_path("${bindir}/erb"|g' \ | ||
81 | -i ${D}${PTEST_PATH}/test/erb/test_erb_command.rb | ||
82 | |||
83 | cp -r ${S}/include ${D}/${libdir}/ruby/ | ||
84 | test_case_rb=`grep rubygems/test_case.rb ${B}/.installed.list` | ||
85 | sed -i -e 's:../../../test/:../../../ptest/test/:g' ${D}/$test_case_rb | ||
86 | } | ||
87 | |||
88 | PACKAGES =+ "${PN}-ri-docs ${PN}-rdoc" | ||
89 | |||
90 | SUMMARY_${PN}-ri-docs = "ri (Ruby Interactive) documentation for the Ruby standard library" | ||
91 | RDEPENDS_${PN}-ri-docs = "${PN}" | ||
92 | FILES_${PN}-ri-docs += "${datadir}/ri" | ||
93 | |||
94 | SUMMARY_${PN}-rdoc = "RDoc documentation generator from Ruby source" | ||
95 | RDEPENDS_${PN}-rdoc = "${PN}" | ||
96 | FILES_${PN}-rdoc += "${libdir}/ruby/*/rdoc ${bindir}/rdoc" | ||
97 | |||
98 | FILES_${PN} += "${datadir}/rubygems" | ||
99 | |||
100 | FILES_${PN}-ptest_append_class-target = "\ | ||
101 | ${libdir}/ruby/include \ | ||
102 | ${libdir}/ruby/${SHRT_VER}.0/*/-test- \ | ||
103 | " | ||
104 | |||
105 | BBCLASSEXTEND = "native" | ||