ruby: don't try to use gmp on the host
PATCH 1/2 ruby: don't try to use gmp on the host
When building host-ruby, if gmp seems to be available (for example when host-gmp is built as a dependency of building the toolchain), Ruby tries to use it. Unfortunately, it fails to use it because there is no static version of host-gmp that is built and installed.
Since we anyway don't care much about gmp support in host-ruby, simply disable it.
This issue was introduced since the bump to Ruby 2.1.0, and this commit fixes:
http://autobuild.buildroot.org/results/e19/e197f20bd5ec4aae6d8692d67df4f539a9df33e2/
--- package/ruby/ruby.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
package/ruby/ruby.mk +2 -1
@@ -14,7 +14,8 @@ RUBY_MAKE_ENV = $(TARGET_MAKE_ENV) RUBY_MAKE = $(MAKE1) RUBY_CONF_OPT = --disable-install-doc --disable-rpath HOST_RUBY_CONF_OPT = --disable-install-doc \ - --with-out-ext=curses,openssl,readline + --with-out-ext=curses,openssl,readline \ + --without-gmp RUBY_LICENSE = Ruby or BSD-2c, BSD-3c, others RUBY_LICENSE_FILES = LEGAL COPYING BSDL
Signature · 1 line
2.0.0
PATCH 2/2 ruby: add support for gmp as an optional dependency
Ruby can now use gmp optionally, so make sure that if the gmp package for the target is enabled, it gets built before the ruby package, and the appropriate configure options are passed to Ruby.
--- package/ruby/ruby.mk | 6 ++++++ 1 file changed, 6 insertions(+)
package/ruby/ruby.mk +6 -0
@@ -54,6 +54,12 @@ endif ifeq ($(BR2_PACKAGE_ZLIB),y) RUBY_DEPENDENCIES += zlib endif +ifeq ($(BR2_PACKAGE_GMP),y) + RUBY_DEPENDENCIES += gmp + RUBY_CONF_OPT += --with-gmp +else + RUBY_CONF_OPT += --without-gmp +endif # Remove rubygems and friends, as they need extensions that aren't # built and a target compiler.
Signature · 1 line
2.0.0
PATCH 1/2 ruby: don't try to use gmp on the host
In reply to Thomas PetazzoniQuoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
When building host-ruby, if gmp seems to be available (for example when host-gmp is built as a dependency of building the toolchain), Ruby tries to use it. Unfortunately, it fails to use it because there is no static version of host-gmp that is built and installed.
Since we anyway don't care much about gmp support in host-ruby, simply disable it.
Quoted 6 lines
This issue was introduced since the bump to Ruby 2.1.0, and this commit fixes:
http://autobuild.buildroot.org/results/e19/e197f20bd5ec4aae6d8692d67df4f539a9df33e2/
Signed-off-by Thomas Petazzoni <[email protected]>
Committed both, thanks.
Signature · 1 line
Bye, Peter Korsgaard