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

Bug 193725

Summary: openldap-2.3.38 installs an unlinkable library, so revdep-rebuild keeps trying to rebuild it
Product: Gentoo Linux Reporter: Ian Abbott <ian>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED INVALID    
Severity: minor CC: esigra
Priority: High    
Version: 2006.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ian Abbott 2007-09-25 10:01:51 UTC
emerging net-nds/openldap-2.3.38 installs the following libraries amongst others:

/usr/lib/liblber-2.3.so.0 -> liblber-2.3.so.0.2.26
/usr/lib/liblber-2.3.so.0.2.26
/usr/lib/liblber.so -> liblber-2.3.so.0.2.26
/usr/lib/libldap-2.2.so.7  <--- THIS ONE HAS MISSING DEPENDENCY!!!!
/usr/lib/libldap-2.3.so.0 -> libldap-2.3.so.0.2.26
/usr/lib/libldap-2.3.so.0.2.26
/usr/lib/libldap.so -> libldap-2.3.so.0.2.26
/usr/lib/libldap_r-2.2.so.7  <--- THIS ONE HAS MISSING DEPENDENCY!!!!
/usr/lib/libldap_r-2.3.so.0 -> libldap_r-2.3.so.0.2.26
/usr/lib/libldap_r-2.3.so.0.2.26
/usr/lib/libldap_r.so -> libldap_r-2.3.so.0.2.26

Running 'ldd /usr/lib/libldap-2.2.so.7' or 'ldd /usr/lib/libldap_r-2.2.so.7' reveals that they depend on liblber-2.2.so.7, which is missing. This causes revdep-rebuild to attempt to rebuild openldap every time it is run.

I thought it might be something to do with 'preserve_old_lib' and/or 'preserve_old_lib_notify' in eutils.eclass, so I tried removing /usr/lib/libldap-2.2.so.7 and /usr/lib/libldap_r-2.2.so.7 and any other old versions of libldap and liblber before re-emerging openldap, but they got rebuilt.

Reproducible: Always

Steps to Reproduce:
1. Remove old versions of libldap, libldap_r and liblber from /usr/lib (remove versions prior to 2.3).
2. emerge -1 =net-nds/openldap-2.3.38
3. revdep-rebuild -p

Actual Results:  
The emerge installs libldap-2.2.so.7 and libldap_r-2.2.so.7, but does not install liblber-2.2.so.7.

revdep-rebuild wants to rebuild openldap.

Expected Results:  
It should either install liblber-2.2.so.7 or avoid installing libldap-2.2.so.7 and libldap_r-2.2.so.7.

Portage 2.1.3.9 (default-linux/x86/2007.0/desktop, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r1-ija1 i686)
=================================================================
System uname: 2.6.22-gentoo-r1-ija1 i686 AMD Duron(tm) processor
Timestamp of tree: Fri, 21 Sep 2007 15:00:09 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon -O2 -pipe"
DISTDIR="/work/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en en_GB"
PKGDIR="/work/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/synce /usr/portage/local/layman/xeffects /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi adns alsa arts avahi berkdb bitmap-fonts bzip2 cairo cdr cjk cli cracklib crypt cups curl dbus doc dri dv dvd dvdr dvdread eds emboss encode esd evo expat fam firefox flac flash fortran gdbm gif glut gmp gnome gpm gstreamer gtk gtkhtml hal iconv idn imagemagick imap imlib ipv6 isdnlog java jpeg kde kerberos lcms ldap mad midi mikmod mmx mng mono motif mozsvg mp3 mpeg mudflap ncurses nls no-helper nptl nsplugin offensive ogg opengl openmp oss pam pcre pdf perl plotutils png ppds pppd python qemu-fast qt3 qt3support qt4 quicktime readline reflection samba sdl session slang snmp softmmu spell spl sqlite ssl svg tcltk tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs x264 x86 xine xml xorg xv zlib" ALSA_CARDS="ens1371" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="radeon ati vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-25 10:05:37 UTC
Erm, like - nope, it doesn't install it? You should run revdep-rebuild like told to when upgrading openldap, and then delete the old libs which are left there on purpose so that you don't stay locked out from your box.
Comment 2 Ian Abbott 2007-09-25 11:34:59 UTC
I thought I'd deleted all the old versions before re-emerging openldap, but I just tried it again and it worked.  I must have goofed somewhere.

Sorry for the noise.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-09-25 12:42:50 UTC
Well, at least it works now :) Thanks for reporting back.