On 12/06/2012 12:45 PM, Adam Spiers wrote:
Robert Schweikert (rjschwei@suse.com) wrote:
When I try to install the opennebula package which through the dependency chain pull ins rubygem-sinatra I get the message:
You are more likely to receive useful help if you provide steps to reproduce.
Sorry, I thought I did that by stating: "When I try to install the opennebula package which through the dependency chain pull ins rubygem-sinatra"
How did you install?
zypper
Which repo did you use - SP2, 12.1, 12.2, or Factory?
touche, used openSUSE 12.2
Although in this case the problem is already clear:
Nothing provides rubygem(1.9.1:rack) >= 1.3.6 needed by rubygem-sinatra
Yes, that's correct:
clearly shows that Sinatra requires rack ~> 1.3.6, but your project does not provide this, since its version of rubygem-rack-1_3 is only 1.3.5.
OK, but how does it know it needs 1.3.6? I suppose that is in the Gemlock file that is part of the source?
I have linked rubygem-rack from d:l:r:e and thus rubygem-sinatra should depend on the rubygem-rack package from the openNebula repo. rubygem-rack built successfully. Therefore, adding Cloud:OpenNebula as a repo should be sufiicient, but it is not.
Nope, because it doesn't satisfy the version requirements as above.
OK, so can I get rid off rubygem-rack and link to rubygem_rack-1_4 instead? Is there no way to have system that "just works" i.e. where I do not have to chase after every version change? I'd like to just link to rubygem-rack (or rubygem-rack-latest or whatever the name may be) in my project and have it provide whatever version is needed by the other packages I link to. Thus, I can leave the ruby packaging and version fiddling to the ruby experts that work in d:l:r:e and do not have to become an expert myself.
The spec file for sinatra also does not have an explicit "Requires:..." for rubygem-rack for version 1.3.6 or greater.
Correct, it's an automatically generated dependency:
I spent a lot of effort recently documenting how this works:
http://en.opensuse.org/openSUSE:Packaging_Ruby#How_gem_dependencies_are_auto...
Thanks for the pointer to the doc. Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org