Skip to contentSkip to conversation

[[email protected]: meta-ruby / compiling gems on the target machine]

[email protected]: meta-ruby / compiling gems on the target machine Martin Jansa 2 participants 2 messages Apr 21, 2015

lore
Share & tools
lore
#0 lore raw

I'm not a ruby expert forwarding to ML where it belongs.

----- Forwarded message from Richard Bevan <[email protected]> -----

Date: Tue, 21 Apr 2015 11:06:35 +0100
Subject: meta-ruby / compiling gems on the target machine
From: Richard Bevan <[email protected]>
To: [email protected]

Hello Martin,

Sorry for the direct email.

Thanks for your work on meta-ruby. I have found a small problem and also have a suggestion but don't know how to fix it in the .bb file.

The --sysroot=/ is set to the host path, when using ruby on a target machine.

This only becomes a problem with compiling native support using gems.

eg.....

gem install thin

The makefile will fail when run on the target machine. I have been running the below command to sort the --sysroot out on my target machine before running gem install.

/bin/sed -i "s/sysroot=[0-9a-z\/\-]*/sysroot=\//g" /usr/lib/ruby/*/*/rbconfig.rb

The above replaces --sysroot=/path/on/my/host/machine/ to --sysroot=/ in the rbconfig.rb file.

Then gem install with native supports works after running the above.

Can we add this into the .bb file?

Thanks,

Richard

----- End forwarded message -----

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#1 lore raw

Richard,

Thanks for the fix. I will take a look into later when time permits ( on holiday).

armin

Quoted 54 lines · Martin Jansa

I'm not a ruby expert forwarding to ML where it belongs.

----- Forwarded message from Richard Bevan <[email protected]> -----

Date: Tue, 21 Apr 2015 11:06:35 +0100
Subject: meta-ruby / compiling gems on the target machine
From: Richard Bevan <[email protected]>
To: [email protected]

Hello Martin,

Sorry for the direct email.

Thanks for your work on meta-ruby. I have found a small problem and also have a suggestion but don't know how to fix it in the .bb file.

The --sysroot=/ is set to the host path, when using ruby on a target machine.

This only becomes a problem with compiling native support using gems.

eg.....

gem install thin

The makefile will fail when run on the target machine. I have been running the below command to sort the --sysroot out on my target machine before running gem install.

/bin/sed -i "s/sysroot=[0-9a-z\/\-]*/sysroot=\//g" /usr/lib/ruby/*/*/rbconfig.rb

The above replaces --sysroot=/path/on/my/host/machine/ to --sysroot=/ in the rbconfig.rb file.

Then gem install with native supports works after running the above.

Can we add this into the .bb file?

Thanks,

Richard

----- End forwarded message -----

Signature · 6 lines
Martin 'JaMa' Jansa     jabber: [email protected]
-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel