Bug 1850541
| Summary: | irb shows error without ruby-default-gems. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jun Aruga <jaruga> |
| Component: | ruby | Assignee: | Vít Ondruch <vondruch> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | mo, mtasaka, pvalena, ruby-packagers-sig, s, strzibny, vanmeeuwen+fedora, vondruch |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ruby-2.7.1-132.fc33 ruby-2.7.1-132.fc32 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-07-02 01:13:14 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Jun Aruga
2020-06-24 13:23:50 UTC
(In reply to Jun Aruga from comment #0) > It is better to add rubygem-default-gems as a requirement of ruby-libs, > isn't it? rubygem-default-gems are installed by default for every Fedora user. Mock is exception, because there are not installed weak dependencies. ruby-libs would be wrong choice anyway, because installed ruby-libs does not mean installed rubygems. Not sure if I should close this or not, because this is tightly related to bug 1825251. Also, I have recently opened upstream issue which is related: https://bugs.ruby-lang.org/issues/16951 > rubygem-default-gems are installed by default for every Fedora user. Mock is exception, because there are not installed weak dependencies. ruby-libs would be wrong choice anyway, because installed ruby-libs does not mean installed rubygems.
Sorry for my mistake. I was running the mock with the default mock config (= install_weak_deps=0).
```
DEBUG util.py:623: Installing weak dependencies:
DEBUG util.py:623: ruby-default-gems noarch 2.7.1-131.fc33 fedora 26 k
DEBUG util.py:623: rubygem-bundler noarch 2.1.4-131.fc33 fedora 316 k
```
But how ruby-default-gems is installed as weak dependency? Because ruby.spec does not have the logic.
I am okay to close this ticket.
Thanks.
(In reply to Jun Aruga from comment #2) > But how ruby-default-gems is installed as weak dependency? Because ruby.spec > does not have the logic. https://src.fedoraproject.org/rpms/ruby/blob/master/f/ruby.spec#_286 It does. Not ideal, but because we have independent rubygems package, it is better IMO, because it allows to keep this dependency on single place and avoids possible different behavior of independent rubygems package comparing to the rubygems subpackage. (In reply to Vít Ondruch from comment #1) > Also, I have recently opened upstream issue which is related: > https://bugs.ruby-lang.org/issues/16951 Actually, maybe we should add the ruby-default-gems dependency to IRB referencing the ticket above, that would help to solve this issue and allowed to remove it if possible. Do you mind to open PR? > https://src.fedoraproject.org/rpms/ruby/blob/master/f/ruby.spec#_286 > > It does. Not ideal, but because we have independent rubygems package, it is better IMO, because it allows to keep this dependency on single place and avoids possible different behavior of independent rubygems package comparing to the rubygems subpackage. I see. The backward weak dependency is current used [1]. ``` %package default-gems ... Supplements: ruby(rubygems) ... ``` [1] https://fedoraproject.org/wiki/PackagingDrafts/WeakDependencies#Introduction > Actually, maybe we should add the ruby-default-gems dependency to IRB referencing the ticket above, that would help to solve this issue and allowed to remove it if possible. Do you mind to open PR? Sure, I will open it. I opened the PR here. https://src.fedoraproject.org/rpms/ruby/pull-request/65 FEDORA-2020-b2cf8f17da has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-b2cf8f17da FEDORA-2020-b2cf8f17da has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-b2cf8f17da` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-b2cf8f17da See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2020-b2cf8f17da has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report. |