mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-02-15 02:30:50 +00:00
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>
47 lines
1.4 KiB
BlitzBasic
47 lines
1.4 KiB
BlitzBasic
require ruby.inc
|
|
PR = "${INC_PR}.0"
|
|
|
|
SRC_URI += "\
|
|
file://0001-socket-extconf-hardcode-wide-getaddr-info-test-outco.patch \
|
|
file://ruby-1.9.3-always-use-i386.patch \
|
|
file://ruby-1.9.3-disable-versioned-paths.patch \
|
|
file://ruby-1.9.3-fix-s390x-build.patch \
|
|
file://ruby-1.9.3-rubygems-1.8.11-uninstaller.patch \
|
|
file://ruby-1.9.3-custom-rubygems-location.patch \
|
|
file://rubygems-1.8.11-binary-extensions.patch \
|
|
file://ruby-1.9.3-mkmf-verbose.patch \
|
|
file://ruby-1.9.3-install-cross.patch \
|
|
"
|
|
SRC_URI[md5sum] = "993c72f7f805a9eb453f90b0b7fe0d2b"
|
|
SRC_URI[sha256sum] = "d192d1afc46a7ef27b9d0a3c7a67b509048984db2c38907aa82641bdf980acf4"
|
|
|
|
# it's unknown to configure script, but then passed to extconf.rb
|
|
# maybe it's not really needed as we're hardcoding the result with
|
|
# 0001-socket-extconf-hardcode-wide-getaddr-info-test-outco.patch
|
|
UNKNOWN_CONFIGURE_WHITELIST += "--enable-wide-getaddrinfo"
|
|
|
|
EXTRA_OECONF = "\
|
|
--enable-wide-getaddrinfo \
|
|
--disable-versioned-paths \
|
|
--disable-rpath \
|
|
--enable-shared \
|
|
--enable-load-relative \
|
|
"
|
|
|
|
EXTRA_OEMAKE = " \
|
|
LIBRUBYARG='-lruby-static' \
|
|
"
|
|
|
|
do_install() {
|
|
oe_runmake 'DESTDIR=${D}' install
|
|
}
|
|
|
|
FILES_${PN} += "${datadir}/rubygems \
|
|
${datadir}/ri"
|
|
|
|
FILES_${PN}-dbg += "${libdir}/ruby/*/.debug \
|
|
${libdir}/ruby/*/*/.debug \
|
|
${libdir}/ruby/*/*/*/.debug"
|
|
|
|
BBCLASSEXTEND = "native"
|