Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Sep 2011 16:56:08 +0200
From:      Bernhard Froehlich <decke@FreeBSD.org>
To:        Wim De Nocker <wim@denocker.com>
Cc:        ports@FreeBSD.org, ruby@FreeBSD.org
Subject:   Re: FreeBSD Port: redmine-1.2.1_1
Message-ID:  <fd13e2c269dc3bf1660e46c54f50813b@bluelife.at>
In-Reply-To: <defc661123f7fa3d4faeb49988d1a697@bluelife.at>
References:  <4E6B3780.7080901@denocker.com> <defc661123f7fa3d4faeb49988d1a697@bluelife.at>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 10 Sep 2011 15:47:48 +0200, Bernhard Froehlich wrote:
> On Sat, 10 Sep 2011 12:10:08 +0200, Wim De Nocker wrote:
>> have tried to install the current port version on several systems now.
>> All attempt failed.
>> No fresh install is possible (Freebsd 8.1, 8.2, 7.1), and using
>> portupgrade/portmaster also breaks Redmine.
>>
>> Ruby version is at
>> # ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-freebsd8]
>>
>> all the way I get errors saying
>> Gem::SourceIndex#add_spec called from
>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:91.
>> NOTE: Gem::SourceIndex#add_spec is deprecated, use
>> Specification.add_spec. It will be removed on or after 2011-11-01.
>>
>> and additional
>> => Rails 2.3.11 application starting on http://0.0.0.0:3000
>> /usr/local/www/redmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:277:in
>> `==': undefined method `name' for "actionmailer":String
>> (NoMethodError)
>>     from
>> /usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:217:in `==='
> 
> Haven't got those messages yet but something like this:
> 
> undefined method `name' for "daemons":String
> /usr/local/www/redmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:277:in
> `=='
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:217:in `==='
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:217:in
> `matching_specs'
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
> `find_all'
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/specification.rb:410:in
> `each'
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/specification.rb:409:in
> `each'
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:216:in
> `find_all'
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:216:in
> `matching_specs'
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:238:in
> `to_specs'
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:256:in
> `to_spec'
> /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:1200:in `gem'
> /usr/local/www/redmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:75:in
> `add_load_paths'
> /usr/local/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:301:in
> `add_gem_load_paths'
> /usr/local/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:301:in
> `each'
> /usr/local/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:301:in
> `add_gem_load_paths'
> /usr/local/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:132:in
> `process'
> /usr/local/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in
> `send'
> /usr/local/www/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in
> `run'
> /usr/local/www/redmine/config/environment.rb:20
> 
> 
> Well obviously someone broke redmine _again_! So I've CC'd ruby@
> because they should at least know when they break something though they
> usually don't care about it.

It turned out that this problem is a regression in RubyGems 1.8 and
hasn't been fixed upstream yet.

http://rubyforge.org/tracker/index.php?func=detail&aid=29188&group_id=126&atid=575

The temporary workaround is to downgrade devel/ruby-gems to 1.7.2 so
I've created an port for that out of the history:

http://home.bluelife.at/patches/ruby-gems-1.7.2-port.tar.gz

There is no need to reinstall any of the installed gems. I will mark
the port as BROKEN for now until a fix for RubyGems 1.8.x is available
or someone finds a workaround for 1.8.

-- 
Bernhard Froehlich
http://www.bluelife.at/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fd13e2c269dc3bf1660e46c54f50813b>