Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483638 - <dev-ruby/bundler-1.3 doesn't work with >=dev-ruby/rubygems-2.0
Summary: <dev-ruby/bundler-1.3 doesn't work with >=dev-ruby/rubygems-2.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on: 484444
Blocks:
  Show dependency tree
 
Reported: 2013-09-04 20:21 UTC by Elias Probst
Modified: 2013-09-10 17:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2013-09-04 20:21:41 UTC
Installed:
dev-ruby/bundler-1.2.5
dev-ruby/rubygems-2.0.3

When running "bundle", it returns:
Bundler is not compatible with Rubygems 2.0.
Please upgrade to Bundler 1.3 or higher.


This means all <dev-ruby/bundler-1.3.0 ebuilds should depend on <dev-ruby/rubygems-2.0
Comment 1 Michael Orlitzky gentoo-dev 2013-09-09 18:58:05 UTC
It also means that all rails websites are hosed =)
Comment 2 Hans de Graaff gentoo-dev Security 2013-09-10 05:52:43 UTC
(In reply to Elias Probst from comment #0)

> This means all <dev-ruby/bundler-1.3.0 ebuilds should depend on
> <dev-ruby/rubygems-2.0

I've removed the old ones, and filed a stable bug for bundler 1.3.5. I've also added a <rubygems-2 dependency to bundler 1.2.x.
Comment 3 Hans de Graaff gentoo-dev Security 2013-09-10 05:53:07 UTC
(In reply to Michael Orlitzky from comment #1)
> It also means that all rails websites are hosed =)

Only if you actually use bundler with rails. I don't :-)
Comment 4 Michael Orlitzky gentoo-dev 2013-09-10 12:41:42 UTC
(In reply to Hans de Graaff from comment #3)
> (In reply to Michael Orlitzky from comment #1)
> > It also means that all rails websites are hosed =)
> 
> Only if you actually use bundler with rails. I don't :-)

I'm not using it for dependency management, but we run our sites under passenger (with Apache). Passenger uses bundler to perform a sanity check on the installed deps before it will launch the site, so when bundler breaks passenger does too unfortunately.

I would much rather it STFU and attempt to launch the site anyway -- that way I could declare my sites' dependencies through ebuilds and not Gemfiles. Is there a better way?
Comment 5 Michael Orlitzky gentoo-dev 2013-09-10 16:22:08 UTC
There is a better way!

http://michael.orlitzky.com/articles/decoupling_rails_and_passenger_from_bundler.php

Although as mentioned it's probably not worth the trouble for pre-packaged apps like Redmine.
Comment 6 Hans de Graaff gentoo-dev Security 2013-09-10 17:14:13 UTC
(In reply to Michael Orlitzky from comment #5)
> There is a better way!

We're doing something similar at work, but with Isolate so the mac folks can still pull in the right dependencies automatically.

At least Isolate doesn't generate the dreaded Gemfile.lock file, causing issues when system gems are being updated.