Summary: | dev-lang/ruby should have a "minimal" USE to install interpreter only | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jonathan Marten <jjm> |
Component: | Current packages | Assignee: | Gentoo Ruby Team <ruby> |
Status: | UNCONFIRMED --- | ||
Severity: | enhancement | CC: | kingjon3377 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Suggested patch for ebuild |
Description
Jonathan Marten
2023-07-13 17:28:28 UTC
Created attachment 865459 [details, diff]
Suggested patch for ebuild
Merged dev-ruby/ruby-3.1.4 with this patched ebuild. Verified that only the language interpreter is installed with USE="minimal ssl".
Merged dev-ruby/sass together with the above. Verified that only 3 essential gems are installed and that SASS functions correctly.
I don't think the gains here of slightly lower package maintenance ways up against the drawbacks. The reason we PDEPEND on these packages is that we unbundle the code from dev-lang/ruby itself, and without installing them the ruby interpreter is not complete. It may work without these packages for some specific cases, but we need to cater to a wider set of use cases, some of which will need the functionality these packages directly or indirectly. My expectaton of introducing a "minimal" USE flag like this is that it will lead to bug reports and confused users. An additional thing to note is that a number of these bundled gems are on their way to be removed from dev-lang/ruby in future releases, so hopefully this list will shrink again in the future as more gems are split out from the main ruby package. Ultimately, what I'd like to do is something like we do for Perl. Perl installs its bundled modules, but it uses the system copies if they're available (because it has multiple load paths). I don't know if Ruby supports that. If it does, it'd be great, because we could drop the unbundling (keep the virtual/rubygems stuff ofc) and things which really need Just The Interpreter would work as needed without pulling in a lot. If we can't do that, I agree with graaff - I don't want to do USE=minimal, because it's likely to lead to a lot of confusing bug reports. |