[katello-devel] Bundle install problems should be gone now

Mike McCune mmccune at redhat.com
Mon Aug 8 23:33:05 UTC 2011


On 08/03/2011 02:59 PM, Lukas Zapletal wrote:
> Hello all,
>
> got some nice news I want to share. I just pushed one commit and tag
> katello-0.1.56-1 that should improve our build process. The
> community-famous "bundle install" problem should be solved since we
> check all the dependencies during the build phase.
>
> ce59cbc spec - introducing bundle install in %build section
>
> And we found the first issue. We was missing regin rubygem (required by
> rails3 rubygem) in our Fedora 14 repo. Its already in Fedora 15, but not
> in Fedora 14. Kudos to Shannon who added it for F15, and now trying to
> fix it using yum clean, thanks.
>
> We have now new macro in our SPEC file defining all our rubygems and we
> use it for Require and BuildRequire lines. It's a long line since I
> don't know how to break lines in a SPEC file ('\' does not work like in
> Bash). If you have a better idea how to do that, let me know.
>
> Shannon made a good point that we actually do not need all these
> rubygems as build requires. That's true, but I don't know how to
> generate Gemfile.lock without having them installed. If there is a way -
> let's do it. For now I recommend to have it there.
>

good progress but did you test this?

I tried a fresh install on F14 and F15 and neither work out of the box:

* F14:

# yum -y remove ruby && yum clean all && yum -y install katello
[...]
Installed:
   katello.noarch 0:0.1.57-1.git.12.5461708.fc14

# service katello initdb
Could not find rake-0.8.7 in any of the sources

* F15:

# yum -y remove ruby && yum clean all && yum -y install katello
[...]
Installed:
   katello.noarch 0:0.1.57-1.git.12.5461708.fc15

# service katello initdb
Could not find rake-0.9.0.beta.4 in any of the sources
Try running `bundle install`.

right now installs are broken until we resolve.  I'll look more into 
this as the evening progresses.  Looks like since the Gemfile and 
Gemfile.lock are still pointed at 
http://repos.fedorapeople.org/repos/katello/gems/ it is still going to 
try and match up with that external repo even thou we are trying this 
new approach.


Mike
-- 
Mike McCune
mmccune AT redhat.com
Red Hat Engineering       | Portland, OR
Systems Management        | 650.254.4248




More information about the katello-devel mailing list