Commit Graph

16 Commits

Author SHA1 Message Date
Roy Li
7815a6d97e ruby: fix a parallel building issue
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-08-10 16:07:19 +02:00
Roy Li
7ae118b002 ruby: uprev it to 1.9.3-p547
remove ruby-1.9.3-fix-s390x-build.patch, it has been merged into p547

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-15 15:00:12 +02:00
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
Michaël Burtin
f3b2dbf15d ruby: remove obsolete extmk_run.patch
This patch does nothing except causing failures from the second build in
the same working directory.

Signed-off-by: Michaël Burtin <mburtin@connected-labs.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-05-03 20:47:02 +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
Martin Jansa
2d54ce17a7 README: show github mirror URL in layer dependencies
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-05-03 13:32:03 +02:00
Martin Jansa
7bd0ff1d90 meta-ruby: Fix subject-prefix
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-26 19:41:27 +02:00
Martin Jansa
5e6d374ae7 README: add -M to git send-email example
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-26 19:41:27 +02:00
Martin Jansa
a45830a39b recipes: Unify indentation
* This change is only aesthetic (unlike indentation in Python
  tasks).
* Some recipes were using tabs.
* Some were using 8 spaces.
* Some were using mix or different number of spaces.
* Make them consistently use 4 spaces everywhere.
* Yocto styleguide advises to use tabs (but the only reason to keep
  tabs is the need to update a lot of recipes). Lately this advice
  was also merged into the styleguide on the OE wiki.
* Using 4 spaces in both types of tasks is better because it's less
  error prone when someone is not sure if e.g.
  do_generate_toolchain_file() is Python or shell task and also allows
  to highlight every tab used in .bb, .inc, .bbappend, .bbclass as
  potentially bad (shouldn't be used for indenting of multiline
  variable assignments and cannot be used for Python tasks).
* Don't indent closing quote on multiline variables
  we're quite inconsistent wheater it's first character on line
  under opening quote or under first non-whitespace character in
  previous line.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Koen Kooi <koen@dominion.thruhere.net>
2013-04-15 16:23:17 +02:00
Jackie Huang
5df465fcb7 ruby: update to 1.9.3-194
I sent this to oe-core but was told that it's not the right place and
was suggested to send here.

Most of the 1.9.3 patches originate from ruby-1.9.3.194-10.1.fc17.src.rpm

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-12-26 22:18:15 +01:00
Jackie Huang
d04b996ec2 ruby: Add from OE-Classic
* No modifications in this commit
* MJ: PR reset, PRIORITY dropped, LICENSE fix, LIC_FILES_CHKSUMs added

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-12-26 14:09:56 +01:00
Martin Jansa
a1e6087f09 meta-ruby: add empty layer
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-12-26 14:09:40 +01:00