Dne 22. 03. 21 v 11:11 Jun Aruga napsal(a):
>>> Maybe the directory entry in ruby-libs should be removed like this.
>>>
>>> ```
>>> @@ -942,6 +942,7 @@ MSPECOPTS=""
>>> # Platform independent libraries.
>>> %dir %{ruby_libdir}
>>> %exclude %{ruby_libdir}/bigdecimal*
>>> +%exclude %{ruby_libdir}/io
>>> %exclude %{ruby_libdir}/irb*
>>> %exclude %{ruby_libdir}/json*
>>> %exclude %{ruby_libdir}/psych*
>>> @@ -964,7 +965,6 @@ MSPECOPTS=""
>>> %{ruby_libdir}/find.rb
>>> %{ruby_libdir}/forwardable*
>>> %{ruby_libdir}/getoptlong*
>>> -%{ruby_libdir}/io
>
> This directory is certainly needed for other `io` libraries. There is
> more then just io-console.
Did you mean the "other `io` libraries" are the other libraries
requiring `io-soncole` gem?
https://src.fedoraproject.org/rpms/ruby/blob/rawhide/f/ruby.spec#_1097
Are you thinking about the case where ruby-libs is installed but
rubygem-io-console is not installed?
But the directories of the rubygem-bigdecimal (`%exclude
%{ruby_libdir}/bigdecimal*`), rubygem-irb (`%exclude
%{ruby_libdir}/irb*
`), and etc are already excluded in the ruby-libs. Why don't we do it
for rubygem-io-console too?
> This directory could be in theory dropped from rubygem-io-console, but
> there is not any benefit IMO. I prefer the rubygem-io-console to be self
> contained.
I do not understand the "the rubygem-io-console to be self contained.".
Could you explain more about it?
If the libraries I have referred above were e.g. removed or extracted
into independent gems, then the `io` directory could become unowned.
That is not good. It is much better if it is owned twice.
Vít