Bug 1040214

Summary: dependency problems with activesupport 4.0.2 in rawhide
Product: [Fedora] Fedora Reporter: Ken Dreyer <ktdreyer>
Component: rubygem-activesupportAssignee: Josef Stribny <jstribny>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bkabrda, hhorak, jstribny, mastahnke, mmorsi, sseago, vanmeeuwen+fedora, vondruch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-12 15:15:17 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:

Description Ken Dreyer 2013-12-11 00:13:22 UTC
Problem: The Rails gems all have strict version dependencies. When rubygem-activesupport was bumped to 4.0.2, the rest of the gems cannot be installed.

Here's a sample failure mock build (my package BuildRequires rubygem-activesupport):



Error: Package: rubygem-railties-4.0.1-1.fc21.noarch (fedora)
           Requires: rubygem(activesupport) = 4.0.1
           Installing: 1:rubygem-activesupport-4.0.2-1.fc21.noarch (fedora)
               rubygem(activesupport) = 4.0.2
Error: Package: 1:rubygem-activerecord-4.0.1-2.fc21.noarch (fedora)
           Requires: rubygem(activesupport) = 4.0.1
           Installing: 1:rubygem-activesupport-4.0.2-1.fc21.noarch (fedora)
               rubygem(activesupport) = 4.0.2
Error: Package: 1:rubygem-actionpack-4.0.1-1.fc21.noarch (fedora)
           Requires: rubygem(activemodel) = 4.0.1
           Available: rubygem-activemodel-4.0.2-1.fc21.noarch (fedora)
               rubygem(activemodel) = 4.0.2
Error: Package: 1:rubygem-activerecord-4.0.1-2.fc21.noarch (fedora)
           Requires: rubygem(activemodel) = 4.0.1
           Available: rubygem-activemodel-4.0.2-1.fc21.noarch (fedora)
               rubygem(activemodel) = 4.0.2
Error: Package: 1:rubygem-rails-4.0.1-1.fc21.noarch (fedora)
           Requires: rubygem(activesupport) = 4.0.1
           Installing: 1:rubygem-activesupport-4.0.2-1.fc21.noarch (fedora)
               rubygem(activesupport) = 4.0.2
Error: Package: 1:rubygem-activerecord-4.0.1-2.fc21.noarch (fedora)
           Requires: rubygem(activesupport) = 4.0.1
           Available: 1:rubygem-activesupport-4.0.2-1.fc21.noarch (fedora)
               rubygem(activesupport) = 4.0.2
Error: Package: 1:rubygem-actionpack-4.0.1-1.fc21.noarch (fedora)
           Requires: rubygem(activesupport) = 4.0.1
           Installing: 1:rubygem-activesupport-4.0.2-1.fc21.noarch (fedora)
               rubygem(activesupport) = 4.0.2

Comment 1 Vít Ondruch 2013-12-11 07:54:34 UTC
Hi Ken,

This is not that much a problem of dependencies, but problem of failed chainbuild due to circular dependencies between AR and AR_deprecated_finders. The intention was to update all dependencies to 4.0.2. Hopefully Josef will fix it soon.

Comment 2 Josef Stribny 2013-12-11 15:45:21 UTC
Hi,

Vit is right, although currently I am stuck with SQLite3 issue[1] (new sqlite in rawhide). I will try to rebuild rest of the Rails packages tomorrow.

[1] https://github.com/sparklemotion/sqlite3-ruby/issues/116

Comment 3 Ken Dreyer 2013-12-11 16:45:34 UTC
Hi Josef, thanks a lot for explaining the root problem.

As a workaround I've copied rubygem-activesupport-4.0.1-1.fc21 and rubygem-activemodel-4.0.1-1.fc21 to my private repository and built against those.

Comment 4 Josef Stribny 2013-12-12 15:15:17 UTC
Ken,

I fixed the ActiveRecord with a patch that I provided upstream and rebuild the rest of Rails.

Rails 4.0.2 build:
http://koji.fedoraproject.org/koji/taskinfo?taskID=6284037