Summary: | www-apps/redmine-1.4.1 without dev-ruby/ruby-net-ldap - ? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Chris Murtagh <cmurtagh2010> |
Component: | Current packages | Assignee: | MATSUU Takuto (RETIRED) <matsuu> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aidecoe, cmurtagh2010, diegoaugustomolina, pva |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Chris Murtagh
2012-04-27 19:07:30 UTC
Looks like dev-ruby/ruby-net-ldap was made an optional dependency through USE=ldap, which according to your emerge --info isn't set. True use=leap is not set in system. As such main package should not depend on ruby_net_leap Stupid autocomplete ... ruby-net-ldap lol Hi! fresh system (two days ago). $ cat /usr/portage/metadata/timestamp.chk: Thu, 26 Apr 2012 16:30:01 +0000 I installed the main system, the dev-db/postgresql-server-9.1.3, www-servers/apache-2.2.22-r1 and then www-apps/redmine-1.4.1. When I pointed the web client to the ip:host rails complained like this: no such file to load -- net/ldap (MissingSourceFile) So at this point I asked myself wether I had installed anything at all with "ldap" USE flag (which I was pretty sure I hadn't). eix --installed-with-use ldap Confirmed my assumption, next step: eix --installed-without-use ldap To know what could have gone wrong (of course, redmine was the first suspect). Google got me no help and my stupid head did not thing in Gentoo's Bugzilla. It's been two stupid f*.. days and (surrendering) I renamed the file "/var/lib/redmine/app/models/auth_source_ldap.rb" to "/var/lib/redmine/app/models/auth_source_ldap.rb_" (that means, adding an underscore at the end of the name). That worked! My premise was: "don't install anything you don't want to". And that was why I hadn't installed anything *ldap*. I'm running out of time right now (I need to have a bath and go to a friend's wedding!) but I'll try to remember to make some testing to try to correct the ebuild. I'd love to promise that but I have limited time to live right now (university + work + final software project for my career, which motivated the installation of redmine). Thanks a lot for your work guys. See you! I recently installed www-apps/redmine-1.4.3 and it also would not work until I went back and reisntalled it with LDAP This was the output of webrick before ldap was installed --- ... ... ... reetu redmine # ruby script/server webrick -e production => Booting WEBrick => Rails 2.3.14 application starting on http://0.0.0.0:3000 NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. Gem.source_index called from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/gem_dependency.rb:21. NOTE: Gem::SourceIndex#initialize is deprecated with no replacement. It will be removed on or after 2011-11-01. Gem::SourceIndex#initialize called from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/vendor_gem_source_index.rb:100. /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- net/ldap (MissingSourceFile) from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require' from /var/lib/redmine/app/models/auth_source_ldap.rb:19 from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:184:in `require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:291:in `require_or_load_without_engine_additions' from /var/lib/redmine/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:250:in `depend_on' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:162:in `require_dependency' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:414:in `load_application_classes' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:413:in `each' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:413:in `load_application_classes' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:411:in `each' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:411:in `load_application_classes' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:197:in `process' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:in `send' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:in `run' from /var/lib/redmine/config/environment.rb:21 from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:in `new_constants_in' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require' from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.14/lib/commands/server.rb:84 from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from script/server:3 reetu redmine # pwd /var/lib/redmine reetu redmine # reetu redmine # USE="ldap" emerge -av redmine Fixed in 2.2.4. I followed suggestion in comment #4 and removed app/models/auth_source_ldap.rb in case ldap is not enabled. Works here and it looks like this is correct fix for now. (In reply to comment #6) > Fixed in 2.2.4. I followed suggestion in comment #4 and removed > app/models/auth_source_ldap.rb in case ldap is not enabled. Works here and > it looks like this is correct fix for now. Thanks a lot! |