Misc Ruby updates
cover Misc Ruby updates
Hello,
Here are three patches for the Ruby package. The first two patches are fixes and could be applied to the master branch. The last patch is a bump of Ruby to the latest stable version, which could be applied to the next branch.
Thanks,
Thomas
Thomas Petazzoni (3):
ruby: requires shared library
ruby: should not use dl_iterate_phdr() on Blackfin
ruby: bump to version 2.1.2
package/ruby/Config.in | 6 ++++-- package/ruby/ruby.mk | 13 ++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-)
Signature · 1 line
2.0.0
PATCH 1/3 ruby: requires shared library
Not matter what you do, the Ruby build system wants to use shared libraries for the encoding modules. Therefore, this commit disallows the selection of Ruby in BR2_PREFER_STATIC_LIB situations.
--- package/ruby/Config.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
package/ruby/Config.in +4 -2
@@ -2,10 +2,12 @@ config BR2_PACKAGE_RUBY bool "ruby" depends on BR2_USE_WCHAR depends on BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_PREFER_STATIC_LIB help Object Oriented Scripting Language. http://www.ruby-lang.org/ -comment "ruby needs a toolchain w/ wchar, threads" - depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS +comment "ruby needs a toolchain w/ wchar, threads, dynamic library" + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_PREFER_STATIC_LIB
Signature · 1 line
2.0.0
PATCH 1/3 ruby: requires shared library
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Not matter what you do, the Ruby build system wants to use shared libraries for the encoding modules. Therefore, this commit disallows the selection of Ruby in
BR2_PREFER_STATIC_LIBsituations.Signed-off-by Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 2/3 ruby: should not use dl_iterate_phdr() on Blackfin
In reply to Thomas PetazzoniThe dl_iterate_phdr() C library function on Blackfin returns a non-conventional structure format compared to other architectures, which makes Ruby unable to use it. Since it's just an optional feature of Ruby apparently used to generate more fancy backtraces, this commit simply disables the usage of dl_iterate_phdr() on this architecture.
Fixes:
http://autobuild.buildroot.org/results/1b0/1b0e2f5f95889eb26846927da45d128247d0ed89/
--- package/ruby/ruby.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/ruby/ruby.mk +4 -0
@@ -28,6 +28,10 @@ RUBY_CFLAGS += -O2 endif RUBY_CONF_ENV = CFLAGS="$(RUBY_CFLAGS)" +ifeq ($(BR2_bfin),y) +RUBY_CONF_ENV = ac_cv_func_dl_iterate_phdr=no +endif + # Force optionals to build before we do ifeq ($(BR2_PACKAGE_BERKELEYDB),y) RUBY_DEPENDENCIES += berkeleydb
Signature · 1 line
2.0.0
PATCH 2/3 ruby: should not use dl_iterate_phdr() on Blackfin
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
The
dl_iterate_phdr()C library function on Blackfin returns a non-conventional structure format compared to other architectures, which makes Ruby unable to use it. Since it's just an optional feature of Ruby apparently used to generate more fancy backtraces, this commit simply disables the usage ofdl_iterate_phdr()on this architecture.
Quoted 5 lines
Fixes:
http://autobuild.buildroot.org/results/1b0/1b0e2f5f95889eb26846927da45d128247d0ed89/
Signed-off-by Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 3/3 ruby: bump to version 2.1.2
In reply to Thomas PetazzoniThis commit bumps Ruby to version 2.1.2. It was quickly runtime tested on ARM EBIhf.
In addition to this it changes the site to an http:// location, which is the official one advertised on the Ruby web site.
--- package/ruby/ruby.mk | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
package/ruby/ruby.mk +4 -5
@@ -4,11 +4,10 @@ # ################################################################################ -RUBY_VERSION_MAJOR = 1.9 -RUBY_VERSION = $(RUBY_VERSION_MAJOR).3-p545 -# 1.9.1 directory used for extensions -RUBY_VERSION_EXT = 1.9.1 -RUBY_SITE = ftp://ftp.ruby-lang.org/pub/ruby/$(RUBY_VERSION_MAJOR) +RUBY_VERSION_MAJOR = 2.1 +RUBY_VERSION = $(RUBY_VERSION_MAJOR).2 +RUBY_VERSION_EXT = 2.1.0 +RUBY_SITE = http://cache.ruby-lang.org/pub/ruby/$(RUBY_VERSION_MAJOR) RUBY_DEPENDENCIES = host-pkgconf host-ruby HOST_RUBY_DEPENDENCIES = host-pkgconf RUBY_MAKE_ENV = $(TARGET_MAKE_ENV)
Signature · 1 line
2.0.0
PATCH 3/3 ruby: bump to version 2.1.2
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
This commit bumps Ruby to version 2.1.2. It was quickly runtime tested on ARM EBIhf.
In addition to this it changes the site to an http:// location, which is the official one advertised on the Ruby web site.
I don't really know much about Ruby. Is 2.1.x compatible with 1.9.x or is it like Python2/Python3?
Signature · 1 line
Bye, Peter Korsgaard
PATCH 3/3 ruby: bump to version 2.1.2
Dear Peter Korsgaard,
Quoted 10 lines · Peter Korsgaard
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
This commit bumps Ruby to version 2.1.2. It was quickly runtime tested on ARM EBIhf.
In addition to this it changes the site to an http:// location, which is the official one advertised on the Ruby web site.
I don't really know much about Ruby. Is 2.1.x compatible with 1.9.x or is it like Python2/Python3?
I don't really know much about Ruby either. But, about Ruby 2.0, Wikipedia says:
""
Ruby 2.0 is intended to be fully backward compatible with Ruby 1.9.3. As of the official 2.0.0 release on February 24, 2013, there were only five known (minor) incompatibilities.
""
And then, about Ruby 2.1, they say:
""
Ruby 2.1.0 was released on Christmas Day in 2013.[31] The release includes speed-ups, bugfixes, and library updates. Starting with 2.1.0, Ruby is using semantic versioning.
""
So I believe we can simply bump the ruby package to 2.1, and not bother keeping two separate packages.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 3/3 ruby: bump to version 2.1.2
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hi,
Quoted 14 lines
Quoted 2 lines
I don't really know much about Ruby. Is 2.1.x compatible with 1.9.x or is it like Python2/Python3?
I don't really know much about Ruby either. But, about Ruby 2.0, Wikipedia says:
""
Ruby 2.0 is intended to be fully backward compatible with Ruby 1.9.3. As of the official 2.0.0 release on February 24, 2013, there were only five known (minor) incompatibilities.
""And then, about Ruby 2.1, they say:
Quoted 8 lines
""
Ruby 2.1.0 was released on Christmas Day in 2013.[31] The release includes speed-ups, bugfixes, and library updates. Starting with 2.1.0, Ruby is using semantic versioning.
""So I believe we can simply bump the ruby package to 2.1, and not bother keeping two separate packages.
Ok, thanks - Committed to next.
Signature · 1 line
Bye, Peter Korsgaard