Wind River Support Network

HomeDefectsLIN5-18797
Fixed

LIN5-18797 : ruby: non -native ruby builds affect ruby-native files in host sysroot

Created: May 22, 2014    Updated: Dec 19, 2017
Resolved Date: May 23, 2014
Found In Version: 5.0.1.14
Fix Version: 5.0.1.15
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

If you build ruby-native and then ruby (non -native) certain files, 

such as : tmp/sysroots/x86_64-linux/usr/lib/ruby/x86_64-linux/rbconfig.rb

Will be updated with incorrect values (such as the path of ruby as expected on the target, not the host).

This results in errors such as:

| ERROR:  Error installing yajl-ruby-1.2.0.gem:
|       ERROR: Failed to build gem native extension.
| 
|         /usr/bin/ruby extconf.rb
| sh: 1: /usr/bin/ruby: not found


When you attempt for example to build a gem using 'gem install'

Workaround

Build ruby-native again before attempting to build the gem
bitbake ruby-native -C compile
bitbake yajl-ruby -C install

Steps to Reproduce

Attempt to build a gem that has native extensions. You can do this for example by configuring an OpenStack compute  build

wrlinux-x/wrlinux/configure --enable-board=intel-xeon-core \
--enable-addons=wr-ovp,wr-ovp-openstack \
--enable-rootfs=ovp-openstack-compute \
--with-package=chef

make bbs
bitbake chef
bitbake ruby -C compile
bitbake yajl-ruby -C install

Other Downloads


Live chat
Online