diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2021-03-01 21:55:10 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2021-03-01 21:55:10 +0100 |
commit | 38928cae57e106d1c3736b52645a5d3d88b6a431 (patch) | |
tree | 63c332d55b7f9a50691a4a539e70d337d2106435 /package/ruby/patches/0001-fix-default-coroutine-selection.patch | |
parent | 0820b94a8326b3e8cc75d0078f93c7626ccf8147 (diff) |
ruby: update to 3.0.0
Diffstat (limited to 'package/ruby/patches/0001-fix-default-coroutine-selection.patch')
-rw-r--r-- | package/ruby/patches/0001-fix-default-coroutine-selection.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/ruby/patches/0001-fix-default-coroutine-selection.patch b/package/ruby/patches/0001-fix-default-coroutine-selection.patch new file mode 100644 index 000000000..ea84aa9bc --- /dev/null +++ b/package/ruby/patches/0001-fix-default-coroutine-selection.patch @@ -0,0 +1,21 @@ +fixed default coroutine selection for musl/uclibc + +https://github.com/ruby/ruby/pull/3567/commits/b570e7de87aaad8c903176d835e8124127f627b3 + +Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> + +diff -Nur ruby-3.0.0.orig/configure.ac ruby-3.0.0/configure.ac +--- ruby-3.0.0.orig/configure.ac 2020-12-25 04:33:01.000000000 +0100 ++++ ruby-3.0.0/configure.ac 2021-02-22 13:00:53.990314464 +0100 +@@ -2441,7 +2441,10 @@ + rb_cv_coroutine=copy + ], + [ +- rb_cv_coroutine=ucontext ++ AC_CHECK_FUNCS([getcontext swapcontext makecontext], ++ [rb_cv_coroutine=ucontext], ++ [rb_cv_coroutine=copy; break] ++ ) + ] + ) + AC_MSG_RESULT(${rb_cv_coroutine}) |