[oe-commits] Kang Kai : ruby: fix install error for multilib

git at git.openembedded.org git at git.openembedded.org
Mon Jul 27 16:44:27 UTC 2015


Module: meta-openembedded.git
Branch: master-next
Commit: 87efdd2e9dbb1acb39bf53fd778d7e7c5e1d5349
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=87efdd2e9dbb1acb39bf53fd778d7e7c5e1d5349

Author: Kang Kai <kai.kang at windriver.com>
Date:   Wed Jul 22 13:35:14 2015 +0800

ruby: fix install error for multilib

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>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.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
 }
 



More information about the Openembedded-commits mailing list