[DRE-maint] Bug#1012247: ruby3.1: Please build with --with-coroutine=ucontext on x32
Antonio Terceiro
terceiro at debian.org
Fri Jun 3 00:54:58 BST 2022
On Thu, Jun 02, 2022 at 06:10:26PM +0200, John Paul Adrian Glaubitz wrote:
> Hi Antonio!
>
> On 6/2/22 15:58, John Paul Adrian Glaubitz wrote:
> > On 6/2/22 15:43, Antonio Terceiro wrote:
> >> isn't this something that should be done in configure.ac instead (and
> >> submitted upstream)? there's a big switch statement there to select the
> >> type of coroutine.
> >
> > Sure, I can send a patch later. I just didn't have the time to dig through
> > the code to address the issue. Probably the match for "x86_64-*-*" needs
> > to be refined in configure.ac.
>
> x32 is actually covered by configure.ac, but there is a bug as the variable
> is named rb_cv_coroutine instead of coroutine_type which is why the configure
> script fails.
>
> The following patch fixes the problem:
>
> --- ruby3.1-3.1.2.orig/configure.ac
> +++ ruby3.1-3.1.2/configure.ac
> @@ -2525,7 +2525,7 @@ AS_CASE([$coroutine_type], [yes|''], [
> coroutine_type=arm64
> ],
> [x86_64-linux-gnux32], [
> - rb_cv_coroutine=ucontext
> + coroutine_type=ucontext
> ],
> [x*64-linux*], [
> AS_CASE(["$ac_cv_sizeof_voidp"],
>
> However, since upstream removed the x32 part [1], I don't know whether they would accept
> such a change.
>
> Adrian
>
> > [1] https://github.com/ruby/ruby/blob/master/configure.ac#L2539
It's not that upstream removed it, it's that it is added by a Debian
patch in the first place.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20220602/8d190a7a/attachment.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list