diff options
| author | Jiaying Song <jiaying.song.cn@windriver.com> | 2025-08-27 10:38:28 +0800 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-09-01 08:30:57 -0700 |
| commit | 844ad4dc30806239950205d8fb426f7bf7c162ab (patch) | |
| tree | 2642b299cb800e265d7eecdcebd6baa810417f08 /meta/recipes-devtools/ruby/ruby_3.3.5.bb | |
| parent | 285b5070bbc877f08bfa088981e1e02831f855d0 (diff) | |
| download | poky-844ad4dc30806239950205d8fb426f7bf7c162ab.tar.gz | |
ruby-ptest : some ptest fixes
- Skip the test_rm_r_no_permissions test under the root user, as
deletion always succeeds.
- Filter out tests under the -ext- directory in run-ptest. Due to the
commit [1],the packaging of .so test files under the .ext directory
was removed. As a result, adjust the test filtering rules to avoid
test failures caused by missing files.
- Add installation of rdoc.rb and did_you_mean.rb files in
do_install_ptest to ensure complete test dependencies.
- Add init.rb file to PTEST installation path.
(From OE-Core rev: fbbfbfd59fe74c6f742af29d32fae1327068b9ff)
Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools/ruby/ruby_3.3.5.bb')
| -rw-r--r-- | meta/recipes-devtools/ruby/ruby_3.3.5.bb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/recipes-devtools/ruby/ruby_3.3.5.bb b/meta/recipes-devtools/ruby/ruby_3.3.5.bb index b37f0d03e7..8b45946f6b 100644 --- a/meta/recipes-devtools/ruby/ruby_3.3.5.bb +++ b/meta/recipes-devtools/ruby/ruby_3.3.5.bb | |||
| @@ -30,7 +30,8 @@ SRC_URI = "http://cache.ruby-lang.org/pub/ruby/${SHRT_VER}/ruby-${PV}.tar.gz \ | |||
| 30 | file://CVE-2025-27220.patch \ | 30 | file://CVE-2025-27220.patch \ |
| 31 | file://CVE-2025-27221-0001.patch \ | 31 | file://CVE-2025-27221-0001.patch \ |
| 32 | file://CVE-2025-27221-0002.patch \ | 32 | file://CVE-2025-27221-0002.patch \ |
| 33 | " | 33 | file://0007-Skip-test_rm_r_no_permissions-test-under-root.patch \ |
| 34 | " | ||
| 34 | UPSTREAM_CHECK_URI = "https://www.ruby-lang.org/en/downloads/" | 35 | UPSTREAM_CHECK_URI = "https://www.ruby-lang.org/en/downloads/" |
| 35 | 36 | ||
| 36 | inherit autotools ptest pkgconfig | 37 | inherit autotools ptest pkgconfig |
| @@ -102,11 +103,13 @@ do_install:append:class-target () { | |||
| 102 | 103 | ||
| 103 | do_install_ptest () { | 104 | do_install_ptest () { |
| 104 | cp -rf ${S}/test ${D}${PTEST_PATH}/ | 105 | cp -rf ${S}/test ${D}${PTEST_PATH}/ |
| 105 | 106 | install -D ${S}/tool/test/init.rb ${D}${PTEST_PATH}/tool/test/init.rb | |
| 106 | install -D ${S}/tool/test/runner.rb ${D}${PTEST_PATH}/tool/test/runner.rb | 107 | install -D ${S}/tool/test/runner.rb ${D}${PTEST_PATH}/tool/test/runner.rb |
| 107 | cp -r ${S}/tool/lib ${D}${PTEST_PATH}/tool/ | 108 | cp -r ${S}/tool/lib ${D}${PTEST_PATH}/tool/ |
| 108 | mkdir -p ${D}${PTEST_PATH}/lib | 109 | mkdir -p ${D}${PTEST_PATH}/lib |
| 109 | cp -r ${S}/lib/did_you_mean ${S}/lib/rdoc ${D}${PTEST_PATH}/lib | 110 | cp -r ${S}/lib/did_you_mean ${S}/lib/rdoc ${D}${PTEST_PATH}/lib |
| 111 | cp ${D}${libdir}/ruby/${SHRT_VER}.0/rdoc.rb ${D}${PTEST_PATH}/lib | ||
| 112 | cp ${D}${libdir}/ruby/${SHRT_VER}.0/did_you_mean.rb ${D}${PTEST_PATH}/lib | ||
| 110 | 113 | ||
| 111 | # install test-binaries | 114 | # install test-binaries |
| 112 | # These .so files have sporadic reproducibility fails as seen here: | 115 | # These .so files have sporadic reproducibility fails as seen here: |
