diff options
author | Kai Kang <kai.kang@windriver.com> | 2020-02-25 17:06:19 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-28 23:11:28 +0000 |
commit | 7c29dbdf84612e3a604cf7c0a7a698a86dfb0641 (patch) | |
tree | 6bdf6c708a27b7d51b172890cfde89a199a1e2d5 /meta/recipes-devtools/ruby | |
parent | aff2e8531ff68e626d66de6b00cea1db985bfd28 (diff) | |
download | poky-7c29dbdf84612e3a604cf7c0a7a698a86dfb0641.tar.gz |
ruby: install required files for ptest
After update to 2.7.0, it fails to start ptest of ruby with errors:
| ./test/runner.rb:11:in `require_relative': cannot load such file --
/usr/lib64/ruby/ptest/tool/test/runner (LoadError)
and
| test/rdoc/test_rdoc_attr.rb: cannot load such file -- rdoc/version
| test/did_you_mean/spell_checking/test_key_name_check.rb: cannot load
such file -- /usr/lib64/ruby/ptest/lib/did_you_mean
Install the required files for the ptest.
(From OE-Core rev: be161be40c88fbac8ac17776daf3bf178a2e8f5e)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/ruby')
-rw-r--r-- | meta/recipes-devtools/ruby/ruby_2.7.0.bb | 6 |
1 files changed, 6 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 index c796318717..268b4bebd9 100644 --- a/meta/recipes-devtools/ruby/ruby_2.7.0.bb +++ b/meta/recipes-devtools/ruby/ruby_2.7.0.bb | |||
@@ -45,6 +45,12 @@ do_install_append_class-target () { | |||
45 | 45 | ||
46 | do_install_ptest () { | 46 | do_install_ptest () { |
47 | cp -rf ${S}/test ${D}${PTEST_PATH}/ | 47 | cp -rf ${S}/test ${D}${PTEST_PATH}/ |
48 | |||
49 | install -D ${S}/tool/test/runner.rb ${D}${PTEST_PATH}/tool/test/runner.rb | ||
50 | cp -r ${S}/tool/lib ${D}${PTEST_PATH}/tool/ | ||
51 | mkdir -p ${D}${PTEST_PATH}/lib | ||
52 | cp -r ${S}/lib/did_you_mean ${S}/lib/rdoc ${D}${PTEST_PATH}/lib | ||
53 | |||
48 | # install test-binaries | 54 | # install test-binaries |
49 | find $(find ./.ext -path '*/-test-') -name '*.so' -print0 \ | 55 | find $(find ./.ext -path '*/-test-') -name '*.so' -print0 \ |
50 | | tar --no-recursion --null -T - --no-same-owner --preserve-permissions -cf - \ | 56 | | tar --no-recursion --null -T - --no-same-owner --preserve-permissions -cf - \ |