[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: help with running tests for rails using gems



On 06/02/2013 11:16 AM, Christian Hofstaedtler wrote:
* Sam Ruby <rubys@intertwingly.net> [130602 16:34]:
On 06/02/2013 08:34 AM, Christian Hofstaedtler wrote:

[..]
Therefore, the right place to focus is on getting a version of
bundler which play's nice with Debian?

I am not sure what you mean with that. How does the existing
bundler package not help?

If you have a minimal testcase which shows where bundler and/or
rubygems-integration breaks something, I can take a look at that.

Indeed, I may be confused.  So lets start over with the latest symptom:

Invalid gemspec in [/usr/share/rubygems-integration/1.9.1/specifications/actionpack-3.2.13.gemspec]:
Illformed requirement ["~> #<Gem::Version:0x00000001d13660>"]
Invalid gemspec in [/usr/share/rubygems-integration/1.9.1/specifications/actionpack-3.2.13.gemspec]:
Illformed requirement ["~> #<Gem::Version:0x00000001d13660>"]
Invalid gemspec in [/usr/share/rubygems-integration/1.8/specifications/actionpack-3.2.13.gemspec]:
Illformed requirement ["~> #<Gem::Version:0x00000001d13660>"]
Invalid gemspec in [/usr/share/rubygems-integration/1.8/specifications/actionpack-3.2.13.gemspec]:
Illformed requirement ["~> #<Gem::Version:0x00000001d13660>"]

The above lines are a bug in ruby-actionpack-3.2. I've opened a bug
against ruby-actionpack-3.2 for this. (Bug# pending.)

/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:296:in `resolve':
Could not find gem 'rails (= 3.2.13) ruby' in the gems available on
this machine. (Bundler::GemNotFound)

[..]

Reproduction instructions:

1. sudo apt-get install git-buildpackage

2. # clone the packaging repo
gbp-clone --pristine-tar
git://anonscm.debian.org/pkg-ruby-extras/ruby-shoulda-matchers.git

3. # install build dependencies (like a bundle install - we need to
capture all dependencies during packaging)
sudo aptitude install debhelper  gem2deb  rake ruby-jquery-rails \
ruby-coffee-rails ruby-sass-rails ruby-uglifier ruby-actionpack-3.2 \
ruby-rspec bundler

This does not include actually installing *rails*.

This is a problem of broken build-dependencies in ruby-shoulda-matchers
(which needs to add ruby-rails-3.2).

I'm getting conflicting input between you and Praveen, and I have a lot to learn. Meanwhile, here is some data that might be helpful.

5. sudo apt-get install ruby-rails-3.2 ruby-sqlite3

6. git-buildpackage

Produces the following symptoms:

Invalid gemspec in [/usr/share/rubygems-integration/1.9.1/specifications/actionpack-3.2.13.gemspec]: Illformed requirement ["~> #<Gem::Version:0x00000001d13660>"]
Invalid gemspec in [/usr/share/rubygems-integration/1.9.1/specifications/actionpack-3.2.13.gemspec]: Illformed requirement ["~> #<Gem::Version:0x00000001d13660>"]
Invalid gemspec in [/usr/share/rubygems-integration/1.8/specifications/actionpack-3.2.13.gemspec]: Illformed requirement ["~> #<Gem::Version:0x00000001d13660>"]
Invalid gemspec in [/usr/share/rubygems-integration/1.8/specifications/actionpack-3.2.13.gemspec]: Illformed requirement ["~> #<Gem::Version:0x00000001d13660>"]
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:130:in `resolve': Could not find gem 'actionpack (= 3.2.13) ruby', which is required by gem 'rails (= 3.2.13) ruby', in any of the sources. (Bundler::VersionConflict)

Additional information:

# dpkg -l ruby-actionpack-3.2
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  ruby-actionpac 3.2.13-5     all          web-flow and rendering framework

   C.


- Sam Ruby


Reply to: