Bug 1257917

Summary: rubygem-mongoid is broken due to missing bson
Product: [Fedora] Fedora Reporter: Josef Stribny <jstribny>
Component: rubygem-mongoidAssignee: Troy Dawson <tdawson>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: hhorak, tdawson, vondruch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-mongoid-3.1.7-3.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-01 21:52:43 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 Josef Stribny 2015-08-28 12:08:55 UTC
Description of problem:

Current rubygem-mongoid requires rubygem-moped higher than 2.0, but it was patched to use the lower version. This however was not properly tested and it's broken.

Now rubygem-mongoid lacks BSON to be present:

irb(main):001:0> require 'mongoid'
NameError: uninitialized constant BSON
	from /usr/share/gems/gems/mongoid-4.0.0/lib/mongoid/extensions.rb:2:in `<top (required)>'
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /usr/share/gems/gems/mongoid-4.0.0/lib/mongoid/document.rb:4:in `<top (required)>'
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
	from /usr/share/gems/gems/mongoid-4.0.0/lib/mongoid.rb:22:in `<top (required)>'
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:128:in `require'
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:39:in `require'
	from (irb):1
	from /usr/bin/irb:11:in `<main>'



Actual results:
rubygem-mongoid is broken

Expected results:
rubygem-mongoid should have proper dependencies stated

Comment 1 Troy Dawson 2015-09-21 21:35:22 UTC
The real problem is that we cannot update rubygem-moped to 2.0 or higher without rubygem-bson being raised to 2.0 or higher.  I had hoped that it would have been raised by now, but it just hasn't happened.

https://bugzilla.redhat.com/show_bug.cgi?id=1036614

So I either need to lower the version of rubygem-mongoid or someone needs to update the version of rubyem-bson.

Comment 2 Vít Ondruch 2015-09-22 10:47:10 UTC
Sorry, but as long as DNF can't handle update of bson [1], I won't move forward ...


[1] https://bugzilla.redhat.com/show_bug.cgi?id=1230183

Comment 3 Troy Dawson 2015-09-22 13:22:25 UTC
Ah, I didn't notice that.

I'll get started on downgrading rubygem-mongoid to be in line with the gems in fedora that it depends on.

Comment 4 Fedora Update System 2015-10-05 16:47:03 UTC
rubygem-mongoid-3.1.7-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-869e67a450

Comment 5 Fedora Update System 2015-10-06 01:07:48 UTC
rubygem-mongoid-3.1.7-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update rubygem-mongoid'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-869e67a450

Comment 6 Fedora Update System 2015-10-07 21:33:57 UTC
rubygem-mongoid-3.1.7-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-d70f983664

Comment 7 Fedora Update System 2015-10-08 16:59:57 UTC
rubygem-mongoid-3.1.7-3.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-84a8e1fe03

Comment 8 Fedora Update System 2015-10-08 19:21:36 UTC
rubygem-mongoid-3.1.7-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update rubygem-mongoid'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-d70f983664

Comment 9 Fedora Update System 2015-10-09 13:54:26 UTC
rubygem-mongoid-3.1.7-3.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update rubygem-mongoid'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-84a8e1fe03

Comment 10 Fedora Update System 2015-11-01 21:52:42 UTC
rubygem-mongoid-3.1.7-3.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.