Commit Graph

6 Commits

Author SHA1 Message Date
Amy Fong
2396150459 ruby overwrites configuration files in ruby-native
ruby's install rule is calling install-cross, this overwrites files installed
by ruby-native causing build failures with ruby apps, specifically where gems
are involved, especially on hosts where there is no host ruby:

(from sysroot-native's gem)
gem env
 RubyGems Environment:
   - RUBYGEMS VERSION: 1.8.23
   - RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [x86_64-linux]
   - INSTALLATION DIRECTORY: /usr/lib64/ruby/gems/1.9.1
   - RUBY EXECUTABLE: /usr/bin/ruby
   - EXECUTABLE DIRECTORY: /usr/bin
   - RUBYGEMS PLATFORMS:
     - ruby
     - x86_64-linux
   - GEM PATHS:
      - /usr/lib64/ruby/gems/1.9.1
      - /folk/afong/.gem/ruby/1.9.1
   - GEM CONFIGURATION:
      - :update_sources => true
      - :verbose => true
      - :benchmark => false
      - :backtrace => false
      - :bulk_threshold => 1000
   - REMOTE SOURCES:
      - http://rubygems.org/

Files affected - fake.rb, rbconfig.rb, config.h, win32.h and ruby libraries.
We should be using the versions from ruby-native.

Signed-off-by: Amy Fong <amy.fong@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-06-10 12:25:40 +02:00
Martin Jansa
27724be322 ruby: add --enable-wide-getaddrinfo to whitelist
* fixes:
  ruby-1.9.3-p429: ruby: configure was passed unrecognised options: --enable-wide-getaddrinfo

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-05-05 18:31:29 +02:00
Christopher Larson
793c1c08cf ruby: find gems relative to its own location
Rather than hardcoding ${datadir}/rubygems, we can let it find the gems
relative to its own location, to make it relocatable.

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-12-05 19:48:07 +01:00
Martin Jansa
0bc7948e5b ruby: add dependency on db gdbm readline
* to prevent using bunded versions

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-07-30 11:17:13 +02:00
Martin Jansa
4568892877 ruby: add missing dependency on ruby-native
* without ruby available on host it fails:
  | NOTE: make LIBRUBYARG=-lruby-static
  |       CC = i586-starfish-linux-gcc  -m32 -march=i586 --sysroot=/OE/sysroots/qemux86
  |       LD = i586-starfish-linux-ld --sysroot=/OE/sysroots/qemux86
  |       LDSHARED = i586-starfish-linux-gcc  -m32 -march=i586 --sysroot=/OE/sysroots/qemux86 -shared
  |       CFLAGS = -O2 -pipe -g -feliminate-unused-debug-types -fPIC
  |       XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
  |       CPPFLAGS =   -I. -I.ext/include/i386-linux -I./include -I.
  |       DLDFLAGS = -Wl,-soname,libruby.so.1.9
  |       SOLIBS = -lpthread -lrt -ldl -lcrypt -lm
  | executable host ruby is required. use --with-baseruby option.
  | make: *** [.rbconfig.time] Error 1

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-07-08 10:35:55 +02:00
Khem Raj
370e7d2b7d ruby: Upgrade from 1.9.3-p194 -> 1.9.3-p429
Old recipe was having do_install failures
this fixes those too

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-06-29 14:22:46 +02:00