* [Buildroot] [PATCH] ruby: update to 2.7.1
@ 2020-09-30 10:23 Waldemar Brodkorb
2020-09-30 20:16 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Waldemar Brodkorb @ 2020-09-30 10:23 UTC (permalink / raw)
To: buildroot
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
package/ruby/ruby.hash | 4 ++--
package/ruby/ruby.mk | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/package/ruby/ruby.hash b/package/ruby/ruby.hash
index 89cab3fcd3..e9f53879b1 100644
--- a/package/ruby/ruby.hash
+++ b/package/ruby/ruby.hash
@@ -1,5 +1,5 @@
-# https://www.ruby-lang.org/en/news/2020/03/31/ruby-2-4-10-released/
-sha256 d5668ed11544db034f70aec37d11e157538d639ed0d0a968e2f587191fc530df ruby-2.4.10.tar.xz
+# Locally calculated
+sha256 b224f9844646cc92765df8288a46838511c1cec5b550d8874bd4686a904fcee7 ruby-2.7.1.tar.xz
# License files, Locally calculated
sha256 609292a6d848ab223073944fc2d844449391a5ba2055a8b5baf1726bc13b39cb LEGAL
sha256 f5eb1b2956d5f7a67b2e5722a3749bc2fe86f9c580f2e3f5a08519cf073b5864 COPYING
diff --git a/package/ruby/ruby.mk b/package/ruby/ruby.mk
index 6f8cb319cb..02f43814fd 100644
--- a/package/ruby/ruby.mk
+++ b/package/ruby/ruby.mk
@@ -4,9 +4,9 @@
#
################################################################################
-RUBY_VERSION_MAJOR = 2.4
-RUBY_VERSION = $(RUBY_VERSION_MAJOR).10
-RUBY_VERSION_EXT = 2.4.0
+RUBY_VERSION_MAJOR = 2.7
+RUBY_VERSION = $(RUBY_VERSION_MAJOR).1
+RUBY_VERSION_EXT = 2.7.0
RUBY_SITE = http://cache.ruby-lang.org/pub/ruby/$(RUBY_VERSION_MAJOR)
RUBY_SOURCE = ruby-$(RUBY_VERSION).tar.xz
RUBY_DEPENDENCIES = host-pkgconf host-ruby
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] ruby: update to 2.7.1
2020-09-30 10:23 [Buildroot] [PATCH] ruby: update to 2.7.1 Waldemar Brodkorb
@ 2020-09-30 20:16 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2020-09-30 20:16 UTC (permalink / raw)
To: buildroot
Hello Waldemar,
On Wed, 30 Sep 2020 12:23:19 +0200
Waldemar Brodkorb <wbx@openadk.org> wrote:
> -RUBY_VERSION_MAJOR = 2.4
> -RUBY_VERSION = $(RUBY_VERSION_MAJOR).10
> -RUBY_VERSION_EXT = 2.4.0
> +RUBY_VERSION_MAJOR = 2.7
> +RUBY_VERSION = $(RUBY_VERSION_MAJOR).1
> +RUBY_VERSION_EXT = 2.7.0
Thanks a lot for taking care of updating Ruby! Unfortunately, this
breaks the build, at least on SuperH/uClibc:
In file included from coroutine/ucontext/Context.c:14:
coroutine/ucontext/Context.h:22:5: error: unknown type name ?ucontext_t?
ucontext_t state;
^~~~~~~~~~
coroutine/ucontext/Context.h: In function ?coroutine_initialize_main?:
coroutine/ucontext/Context.h:32:5: warning: implicit declaration of function ?getcontext? [-Wimplicit-function-declaration]
getcontext(&context->state);
^~~~~~~~~~
coroutine/ucontext/Context.h: In function ?coroutine_initialize?:
coroutine/ucontext/Context.h:45:19: error: request for member ?uc_stack? in something not a structure or union
context->state.uc_stack.ss_size = size;
^
In file included from coroutine/ucontext/Context.c:14:
coroutine/ucontext/Context.h:47:19: error: request for member ?uc_stack? in something not a structure or union
context->state.uc_stack.ss_sp = (char*)stack;
^
coroutine/ucontext/Context.h:48:19: error: request for member ?uc_stack? in something not a structure or union
context->state.uc_stack.ss_flags = 0;
^
coroutine/ucontext/Context.h:49:19: error: request for member ?uc_link? in something not a structure or union
context->state.uc_link = NULL;
^
coroutine/ucontext/Context.h:51:5: warning: implicit declaration of function ?makecontext? [-Wimplicit-function-declaration]
makecontext(&context->state, (void(*)(void))coroutine_trampoline, 2, (void*)start, (void*)context);
^~~~~~~~~~~
coroutine/ucontext/Context.h: In function ?coroutine_transfer?:
coroutine/ucontext/Context.h:59:5: warning: implicit declaration of function ?swapcontext? [-Wimplicit-function-declaration]
swapcontext(¤t->state, &target->state);
^~~~~~~~~~~
coroutine/ucontext/Context.h: In function ?coroutine_destroy?:
coroutine/ucontext/Context.h:67:19: error: request for member ?uc_stack? in something not a structure or union
context->state.uc_stack.ss_sp = NULL;
^
coroutine/ucontext/Context.h:68:19: error: request for member ?uc_stack? in something not a structure or union
context->state.uc_stack.ss_size = 0;
^
make[1]: *** [Makefile:421: coroutine/ucontext/Context.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/thomas/projets/buildroot/output/build/ruby-2.7.1'
Also, could you review ruby.mk and see if other changes are needed? For
example, when I see:
# workaround for amazing build failure, see
# http://lists.busybox.net/pipermail/buildroot/2014-December/114273.html
define RUBY_REMOVE_VERCONF_H
rm -f $(@D)/verconf.h
endef
RUBY_POST_CONFIGURE_HOOKS += RUBY_REMOVE_VERCONF_H
It's good to check if that's still needed.
Thanks a lot!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-30 20:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-30 10:23 [Buildroot] [PATCH] ruby: update to 2.7.1 Waldemar Brodkorb
2020-09-30 20:16 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox