[oe] [meta-ruby][PATCH] ruby: fix install error for multilib
Kai Kang
kai.kang at windriver.com
Wed Jul 22 05:35:14 UTC 2015
When multilib is enabled, it fails to do install with error:
sed: can't read .../image/usr/lib/ruby/*/*/rbconfig.rb: No such file or directory
Replace '/usr/lib' with ${libdir} to fix it.
Signed-off-by: Kai Kang <kai.kang at windriver.com>
---
meta-ruby/recipes-devtools/ruby/ruby_2.2.2.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-ruby/recipes-devtools/ruby/ruby_2.2.2.bb b/meta-ruby/recipes-devtools/ruby/ruby_2.2.2.bb
index 2bf0a00..1076a1c 100644
--- a/meta-ruby/recipes-devtools/ruby/ruby_2.2.2.bb
+++ b/meta-ruby/recipes-devtools/ruby/ruby_2.2.2.bb
@@ -33,7 +33,7 @@ do_install() {
do_install_append () {
if [ "${PN}" != "ruby-native" ]; then
- sed -i "s/sysroot=[0-9a-z\/\-]*/sysroot=\//g" ${D}/usr/lib/ruby/*/*/rbconfig.rb
+ sed -i "s/sysroot=[0-9a-z\/\-]*/sysroot=\//g" ${D}${libdir}/ruby/*/*/rbconfig.rb
fi
}
--
1.9.1
More information about the Openembedded-devel
mailing list