Skip to contentSkip to conversation

ruby: fix install error for multilib

PATCH New Kai Kang 1 participant 1 message Jul 22, 2015

lore
Share & tools
lore

Kai Kang

author
#0 lore raw

PATCH 1/1 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.

---
 meta-ruby/recipes-devtools/ruby/ruby_2.2.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-ruby/recipes-devtools/ruby/ruby_2.2.2.bb +1 -1
index 2bf0a00..1076a1c 100644
@@ -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
 }
 
Signature · 1 line
1.9.1