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
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.
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(+)