Description of problem: Currently rubygem-rdoc only Recommends rubygem-json. For some reason Koji (in Rawhide) has stopped installing Recommends dependencies, and this causes a build failure for my package: rake rdoc Parsing sources... 33% [ 1/ 3] README.rdoc 66% [ 2/ 3] ext/guestfs/_guestfs.c 100% [ 3/ 3] lib/guestfs.rb rake aborted! LoadError: cannot load such file -- json /usr/share/gems/gems/rdoc-4.2.1/lib/rdoc/generator/json_index.rb:2:in `<top (required)>' /usr/share/gems/gems/rdoc-4.2.1/lib/rdoc/generator/darkfish.rb:176:in `initialize' /usr/share/gems/gems/rdoc-4.2.1/lib/rdoc/rdoc.rb:511:in `new' /usr/share/gems/gems/rdoc-4.2.1/lib/rdoc/rdoc.rb:511:in `document' /usr/share/gems/gems/rdoc-4.2.1/lib/rdoc/task.rb:249:in `block in define' Tasks: TOP => rdoc => doc/site/api/created.rid It looks as if rdoc requires json, it's not optional. Version-Release number of selected component (if applicable): rubygem-rdoc-4.2.1-54.fc24.noarch How reproducible: 100% Steps to Reproduce: 1. Install rubygem-rdoc. 2. Remove rubygem-json. 3. Try to build some Ruby documentation. Actual results: See above.
Hi Richad, Thank you for the report. Do you have the failed build at hand? Could you provide the link? I don't remember from top of my head, but I'd say, that there are certain scenarios when RDoc doesn't require JSON (for example using 'ri' for documentation), where there are tasks which requires the JSON, hence it is optional. The idea is, that this dependency should be installed by default, but if you know what is going on, you don't have to install it. If Koji won't install the soft dependencies by default (and I support this), then the packages BR will need to be fixed likely.
Ah, now I read the announcement: https://lists.fedoraproject.org/archives/list/devel-announce@lists.fedoraproject.org/message/RXBHZ7774EKWPMV6TDBBONTTJ5XIEUGP/ So we should check your .spec file and either probably fix the BR to include the JSON or find out what else might be the right place to introduce the JSON dependency ...
Koji doesn't let me find the failed build any longer. The code is here: https://github.com/libguestfs/libguestfs/tree/master/ruby Specifically the 'rdoc' rule is being from run: https://github.com/libguestfs/libguestfs/blob/master/ruby/Rakefile.in I have added BR: rubygem(json). However it seems as if generating Ruby docs in general requires the json module. Nothing in libguestfs Ruby code explicitly depends on json.
Here is your failed task. http://koji.fedoraproject.org/koji/taskinfo?taskID=13586482
(In reply to Mamoru TASAKA from comment #4) > Here is your failed task. > > http://koji.fedoraproject.org/koji/taskinfo?taskID=13586482 srpm: https://kojipkgs.fedoraproject.org//work/tasks/6458/13586458/libguestfs-1.33.18-4.fc25.src.rpm
Same thing affected hivex: https://bugzilla.redhat.com/show_bug.cgi?id=1334753#c1
So I changed back the dependency from Recommends to Requires, but the reason might be a bit different than you have expected. The rubygem-rdoc might appear in Fedora from two sources, once is the ruby subpackage rubygem-rdoc, but there is also independent package rubygem-rdoc, which is built directly from the gem. The thing is, that if the package is built from the gem, there is specified hard dependency on json, which is later picked up by RPM dependency generator. That would mean that in times, when this independent package has more recent version then the ruby subpackage (this is the case now, since I build RDoc package a few moments ago), the dependency would be enforced, but in other days, when the ruby subpackage wins, the dependency would be missing. So to make the experience consistent, lets keep the hard dependency (although its a shame, I'd prefer to keep this as a soft dependency to allow to reduce the installation footprint when the size matters and developer know what (s)he is doing).
ruby-2.3.1-56.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-027a56273c
ruby-2.3.1-56.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-027a56273c
ruby-2.3.1-56.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.