Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721068 (musl-ruby) - dev-lang/ruby: Add musl-libc support/patch to main repository
Summary: dev-lang/ruby: Add musl-libc support/patch to main repository
Status: RESOLVED FIXED
Alias: musl-ruby
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-05 10:11 UTC by Michael 'veremitz' Everitt
Modified: 2021-10-16 15:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 'veremitz' Everitt 2020-05-05 10:11:42 UTC
The ebuilds in ::musl overlay are significantly out-of-date with regards to current versions of dev-lang/ruby. Rather than update a separate copy of the relevant versions in the overlay, it would instead make more sense to port over the needed [small] configure settings[0] to the main Gentoo ebuild repository, in order to keep it in-sync.

If needed, the hardened project/musl team can provide additional musl-related support, but usually all that is required is patching around non-standard code/includes/glibc-isms.

This improves overall maintainability of musl support in Gentoo Linux, and reduces reliance on the ::musl overlay as the staging area for patches that should be upstreamed. Fortunately, this process is going well as musl-libc gains momentum and recognition.

[0] https://gitweb.gentoo.org/proj/musl.git/tree/dev-lang/ruby/ruby-2.4.4.ebuild#n139
Comment 1 Fabian Groffen gentoo-dev 2021-05-22 17:50:48 UTC
that path disappeared

Is it known what changes were necessary?

I'm looking into https://bugs.ruby-lang.org/issues/14387#note-10, in short the stack size of musl makes ruby quickly useless, running things like puppet bomb out.  Looking at 2.6.6-r2 here (current stable) to see if I can get puppet to run.
Comment 2 Larry the Git Cow gentoo-dev 2021-10-16 15:57:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e56274ae84c1aa457d87d86605ab3ec05cfc7638

commit e56274ae84c1aa457d87d86605ab3ec05cfc7638
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2021-10-16 15:57:00 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2021-10-16 15:57:14 +0000

    dev-lang/ruby: add patches for musl
    
    Fix two problems:
    1. fix compilation problem in coroutine
    2. address stack size such that one can e.g. run puppet
    
    Closes: https://bugs.gentoo.org/721068
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 dev-lang/ruby/files/2.7/900-musl-coroutine.patch | 41 ++++++++++++++++++++++++
 dev-lang/ruby/files/2.7/901-musl-stacksize.patch | 26 +++++++++++++++
 dev-lang/ruby/files/3.0/900-musl-coroutine.patch | 28 ++++++++++++++++
 dev-lang/ruby/ruby-2.7.4.ebuild                  |  4 +++
 dev-lang/ruby/ruby-3.0.2.ebuild                  |  5 +++
 5 files changed, 104 insertions(+)