Ruby 2.2
by Vít Ondruch
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...
[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
2 months, 2 weeks
Ruby 2.6 - Mass rebuild
by Vít Ondruch
Hi all,
It is about the time to start with mass rebuild of packages for Ruby
2.6, since the change proposal was already accepted in advance. Finally,
after more then week of waiting, I was also able to obtain side-tag [2],
so we won't disrupt Rawhide a lot. The Ruby 2.6 is already build there
as well as a few other packages. Now it is time for your help.
This is the list of packages, which very likely needs rebuild:
```
$ dnf repoquery --disablerepo=* --enablerepo=rawhide
--enablerepo=rawhide-source --arch=src --whatrequires 'ruby-devel' |
sort | uniq
```
You can take the package and just fire rebuild, but please ensure that
you are using f30-ruby build target [2], i.e. the build command should
look like:
```
$ fedpkg build --target f30-ruby
```
Please be careful, because if you, by a chance, omit the f30-ruby
target, you'll be building against Ruby 2.5 which is not what you want.
If you won't do it by yourself, I'll be rebuilding all packages after I
am finished with my packages. I'll be using fermig [3] to help mi with
that. If you don't want me to touch your packages for whatever reason,
please let me know.
Also, Pavel Valena built some packages against Ruby 2.6 in his Copr
repository [4], so please check if other packages needs some adjustments.
You can follow the progress at:
https://koji.fedoraproject.org/koji/builds?inherited=0&tagID=5700&order=-...
or using:
```
$ koji list-tagged f30-ruby
```
As always, any help/testing/feedback is welcome.
Vít
[1] https://fedoraproject.org/wiki/Changes/Ruby_2.6
[2] https://pagure.io/releng/issue/8034
[3] https://github.com/fedora-ruby/fermig
[4] https://copr.fedorainfracloud.org/coprs/pvalena/ruby26-gems/
4 years, 10 months
System gems (installed as RPMs) - concurrent-ruby 1.1.4 not found
by Philip Rhoades
People,
I am using:
- Fedora 29 x86_64
- rubygem-concurrent-ruby-1.0.5-4.fc29.noarch
but when I run as user phil:
rails new pam
I get:
Resolving dependencies...
Using rake 12.3.2
Fetching concurrent-ruby 1.1.4
Shouldn't I be able to use all the gems I need from installed RPMs?
Thanks,
Phil.
--
Philip Rhoades
PO Box 896
Cowra NSW 2794
Australia
E-mail: phil(a)pricom.com.au
4 years, 10 months
Ruby 2.6
by Vít Ondruch
Hi everybody,
I just created PR with .spec file updated to build Ruby 2.6.0.preview3:
https://src.fedoraproject.org/rpms/ruby/pull-request/32
It is very much WIP, but it builds at least. I have even not tried to
install or run the package. Pagure is so nice, that it should provide
the recent scratch builds via simple-koji-ci, so I am not going to link
it here.
So far, there are 3 things missing/ignored:
1. Bundler is completely removed. I am afraid the situation has not
improved much since last year. E.g. Molinillo, the dependency solver is
included in Ruby twice, once via RubyGems, second time via Bundler, etc.
not nice.
2. IRB was gemified, therefore it should be moved into rubygem-
subpackage and the original ruby-irb should be obsoleted.
3. I am still undecided how to go forward with JIT. It requires compiler
and it has to be explicitly required, therefore we should do nothing
IMO. Later, we should probably Suggest or even Require the compiler? Not
sure.
And as always, please let me know any feedback, either here or in PR.
Best,
Vít
4 years, 11 months