aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ruby/recipes-devtools
AgeCommit message (Collapse)Author
2014-09-26ruby.bbclass: introduce a class to assist in building gemsMark Asselstine
In order to allow the building of gems we have created a ruby.bbclass. The building of gems is much like the building of python packages in that we rely on building up -native gems in order to facilitate the cross compiling of the gems that will be built for the target. When dependencies exist between gems they must be satisfied by the -native gems installed in the host sysroot. This approach is feasible since the build process is able to query installed gems without being affected by the ARCH they were built for. At this point I have yet to come across a situation where the assumption associated with this approach have failed but so far focus has only been on x86 and x86-64 builds. The recipes which inherit the ruby.bbclass can optionally define a BPV in the case where the gemspec version doesn't always map 1:1 to the PV. This situation has only been encountered on a few occasions so the class has been made to default BPV to PV. To demonstrate the ruby.bbclass in use we have included a recipe to build the bundler gem. Bundler can be used on a running target to install gems from rubygems.org, which can be useful in itself when you don't have recipes available for gems but want to try installing and running pre-built gems. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-08-13ruby: fix race conditions at install-extJackie Huang
* lib/mkmf.rb (create_makefile): fix race conditions at install-ext. target files need to depend on destination directory timestamp files, not phony trgets. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-08-10ruby: fix a parallel building issueRoy Li
Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-07-15ruby: uprev it to 1.9.3-p547Roy Li
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-06-10ruby overwrites configuration files in ruby-nativeAmy Fong
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-05-05ruby: add --enable-wide-getaddrinfo to whitelistMartin Jansa
* 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-03ruby: remove obsolete extmk_run.patchMichaël Burtin
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>
2013-12-05ruby: find gems relative to its own locationChristopher Larson
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-07-30ruby: add dependency on db gdbm readlineMartin Jansa
* to prevent using bunded versions Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-07-08ruby: add missing dependency on ruby-nativeMartin Jansa
* 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-06-29ruby: Upgrade from 1.9.3-p194 -> 1.9.3-p429Khem Raj
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-04-15recipes: Unify indentationMartin Jansa
* 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>
2012-12-26ruby: update to 1.9.3-194Jackie Huang
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-26ruby: Add from OE-ClassicJackie Huang
* 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>