Hi everybody,
Since Ruby 2.2 is going to be released during Christmas and -preview1
release is imminent (this Wednesday?), it is probably time to start
looking into its packaging. So here is the updated .spec file [1] and
scratch build [2], which can be finally build on all platforms. Sorry,
no Copr for you, since Ruby's build fails there due to old RHEL kernel :/.
What has changed from packaging point of view? Luckily, not much, but
here are a few bullets which comes to my mind:
* RPM 4.12 introduces new %load function, which is used to load RPM
macros during RPM build. This allowed to drop my custom RPM macro [3].
On the other hand, you'll be able to build the Ruby only on F21+
(luckily, you should be able to build SRPM everywhere).
* The RubyGems filesystem was not explicit enough, so there might be
something accidentally packages. This is now more explicit, so we should
be safer.
* Ruby now ships with MiniTest and Test::Unit. The very good news is
that they are installed so far as a regular gems. This means that you
have to always specify them in your Gemfile, if you are using Bundler,
but this is generally step in good direction. I hope that upstream will
not change their mind :) Due to this change, we have new subpackages
rubygem-test-unit (and rubygem-power_assert, which is now Test::Unit's
dependency). No more %{_bindir}/testrb (but nobody is using it these
days anyway, right? ;)
* Some prevailing test failures were resolved, some others introduced,
but hopefully they'll get resolved prior stable release.
Generally, I'd say that not much has changed since 2.1, which is good news.
Please test the packaging if you can and let me know about any issues
you encountered.
Also, if you have any other suggestions about Ruby packaging in general,
what we could improve etc, this is probably good time to share. It seems
that OpenSUSE guys are improving their packaging, so you might want to
get some inspiration there [4, 5, 6] ;)
Vít
[1] http://pkgs.fedoraproject.org/cgit/ruby.git/log/?h=private-ruby-2.2
[2] http://koji.fedoraproject.org/koji/taskinfo?taskID=7578843
[3]
http://pkgs.fedoraproject.org/cgit/ruby.git/commit/?h=private-ruby-2.2&id=8…
[4] https://build.opensuse.org/package/show/home:darix:ruby/ruby-common
[5] https://build.opensuse.org/package/show/home:darix:ruby/ruby2.2
[6] https://github.com/openSUSE/gem2rpm/commits/master
Hi everybody,
There were quite a lot of stuff happening, such as OpenSSL 3.x support,
which kept me away from looking at Ruby 3.1. But now is the highest time
and here is the PR you can follow:
https://src.fedoraproject.org/rpms/ruby/pull-request/106
The scratch build if succeeds is available here:
https://koji.fedoraproject.org/koji/taskinfo?taskID=79519429
Please note that I have not done any testing except build.
And here are a few notes.
* -preview1 was not building due to some dependency issues. Therefore I
went for more recent revision.
* OpenSSL 3.x support is still not finished.
* The good news is that there was removed one long standing patch [1].
* The bad news is that RBS and debug gem are not building [2]. Therefore
older version of RBS is used and debug gem is completely omitted ATM.
* Because Ruby ships more and more stuff as bundled gems, I have
introduced *ruby-bundled-gems* package, because packaging the gems on
their own does not scale anymore.
* dbm/gdbm support was removed from StdLib, therefore also the
gdbm-devel dependency was dropped.
As always, please give it a try and let me know if you discover any issues.
Vít
[1]
https://src.fedoraproject.org/fork/vondruch/rpms/ruby/blob/36708f00de18db3b…
[2] https://bugs.ruby-lang.org/issues/18373
Hi,
I have just put together Ruby 3.1 change proposal [1] and flipped it
ready for package wrangler. There is nothing exceptional comparing to
previous changes and there is the feedback period for change proposal
reviews. Nonetheless, please review the proposal and let me know should
you have any concern. Hopefully, we will be able to start with the
rebuild right after the Christmas.
Vít
[1] https://fedoraproject.org/wiki/Changes/Ruby_3.1