----- Original Message -----
From: "Vít Ondruch" <vondruch(a)redhat.com>
To: "Ruby SIG mailing list" <ruby-sig(a)lists.fedoraproject.org>
Sent: Wednesday, January 6, 2021 11:54:30 AM
Subject: Ruby 3.0 - Mass rebuild
Hi everybody,
So here we go. I have asked for side tag for Ruby 3.0 rebuild:
~~~
$ fedpkg request-side-tag
Side tag 'f34-build-side-35577' (id 35577) created.
Use 'fedpkg build --target=f34-build-side-35577' to use it.
Use 'koji wait-repo f34-build-side-35577' to wait for the build repo to
be generated.
~~~
and Ruby 3.0 is already built there as you can see at:
https://koji.fedoraproject.org/koji/builds?inherited=0&tagID=35577&am...
or using:
~~~
$ koji list-tagged f34-build-side-35577
~~~
Now this is a 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 f34-build-side-35577 build target, i.e. the build command
should look like:
~~~
$ fedpkg build --target f34-build-side-35577
~~~
Please be careful, because if you, by a chance, omit the
f34-build-side-35577 target, you'll be building against Ruby 2.7 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 [1] to help me with
that. If you don't want me to touch your packages for whatever reason,
please let me know.
As always, any help/testing/feedback is welcome.
Webrick is soon to be in Fedora:
https://pagure.io/releng/fedora-scm-requests/issue/31583
I'll fix the packages that require webrick (directly or via PRs).
One new change in Ruby 3.0 is `%{gem_dir}/plugins` directory, which now contains are
rubygems plugins to load.
Example change:
https://src.fedoraproject.org/rpms/rubygem-yard/pull-request/1#_2__64
Discussed on IRC:
```
13:54 < pvalena> defolos: correction: it's not for yard plugins, but for
rubygems plugins (new loading
implementation)... all rubygems plugins will have this new file.
13:58 < vondruch> defolos, pvalena:
https://github.com/rubygems/rubygems/pull/3108
13:58 < vondruch> this is the reason I guess
14:01 < vondruch> The problem is, that it is probably empty directory, therefore it
was not cought by
RPM, although the spec file is quite specific about rubygems directory
ownership
14:02 < vondruch> but the file in the plugins directory must be owned by the
specific package anyway
14:02 < vondruch> There should be probably introduced some macro
14:03 < vondruch> as well as gem2rpm could be improved
```
Pavel