Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 413779

Summary: www-apps/redmine-1.4.1 without dev-ruby/ruby-net-ldap - ?
Product: Gentoo Linux Reporter: Chris Murtagh <cmurtagh2010>
Component: Current packagesAssignee: 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
after upgrading redmine from 1.3.3 to 1.4.1 and running emerge --depclean & revdep-rebuild, the application gives a ruby stack trace due to missing ruby-net-ldap.

after re-installing emerge -1 ruby-net-ldap redmine system works agian.

emerge --info:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Portage 2.1.10.49 (hardened/linux/amd64, gcc-4.5.3, glibc-2.14.1-r3, 3.2.2-hardened-r1 x86_64)
=================================================================
System uname: Linux-3.2.2-hardened-r1-x86_64-AMD_Phenom-tm-_II_X4_945_Processor-with-gentoo-2.0.3
Timestamp of tree: Fri, 27 Apr 2012 15:45:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo funroll-loops
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/redmine/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /var/lib/redmine/config/locales /var/lib/redmine/config/settings.yml"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/funroll-loops"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 berkdb bzip2 cli cracklib crypt cups curl curlwrappers cxx db dri fam ftp gd gdbm geoip gpm hardened iconv jpeg justify mmx modules mudflap multilib mysql mysqli ncurses nls nptl nptlonly openmp pam pax_kernel pcre php png pppd readline samba session snmp soap sockets spamassassin spell sqlite sse sse2 ssl sysfs tcpd threads tiff unicode urandom vda vhosts winbind xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-28 16:17:17 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.
Comment 2 Chris Murtagh 2012-04-28 17:46:43 UTC
True use=leap is not set in system. As such main package should not depend on ruby_net_leap
Comment 3 Chris Murtagh 2012-04-28 17:48:29 UTC
Stupid autocomplete ... ruby-net-ldap lol
Comment 4 Diego Augusto Molina 2012-04-28 22:20:54 UTC
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!
Comment 5 Mike Nigh 2012-10-06 16:51:25 UTC
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
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2013-05-11 21:18:04 UTC
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.
Comment 7 Coacher 2013-05-12 11:25:11 UTC
(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!