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

Bug 98760

Summary: pam-0.78-r2 fails to build: pam_cracklib have dependencies in /usr.
Product: Gentoo Linux Reporter: MAL <mal>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED DUPLICATE    
Severity: normal CC: azarah
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description MAL 2005-07-12 03:44:04 UTC
I waited for bug 98399 to be resolved before reporting this, but I just synced 
and I still get the error:

 * Checking if all modules were built...

 * ERROR: pam_cracklib have dependencies in /usr.


!!! ERROR: sys-libs/pam-0.78-r2 failed.
!!! Function src_install, Line 307, Exitcode 0
!!! pam_cracklib have dependencies in /usr.


# ldd /var/tmp/portage/pam-0.78-r2/work/Linux-PAM-0.78/modules/pam_cracklib/
pam_cracklib.so 
        linux-gate.so.1 =>  (0xffffe000)
        libcrack.so.2 => /usr/lib/libcrack.so.2 (0xb7f2f000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7f00000)
        libc.so.6 => /lib/libc.so.6 (0xb7de8000)
        libpam.so.0 => /lib/libpam.so.0 (0xb7de0000)
        /lib/ld-linux.so.2 (0x80000000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7ddc000)


# ls -laF /usr/lib/libcrack.so
lrwxrwxrwx  1 root root 15 May 17  2004 /usr/lib/libcrack.so.2 -> libcrack.so.2.
7*

# equery b /usr/lib/libcrack.so.2.7

returns no results, but the file exists.

# equery f cracklib
[ Searching for packages matching cracklib... ]
sys-libs/cracklib-2.8.3-r1
* Contents of sys-libs/cracklib-2.8.3-r1:
/lib
/lib/libcrack.so -> libcrack.so.2.8.0
/lib/libcrack.so.2 -> libcrack.so.2.8.0
/lib/libcrack.so.2.8.0
/usr
<snip>
/usr/lib/cracklib_dict.hwm
/usr/lib/cracklib_dict.pwd
/usr/lib/cracklib_dict.pwi
/usr/lib/libcrack.a
/usr/lib/libcrack.la
/usr/lib/libcrack.so
<snip>

Is it cruft from a previous instance of cracklib?

Reproducible: Always
Steps to Reproduce:




Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.
20041102-r1, 2.6.12-gentoo-r4 i686)
=================================================================
System uname: 2.6.12-gentoo-r4 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.6.12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mcpu=athlon-xp -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/
share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /
usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/
defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/
texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/
platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -mcpu=athlon-xp -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict userpriv 
usersandbox"
GENTOO_MIRRORS="ftp://gentoo.blueyonder.co.uk/mirrors/gentoo http://ftp.easynet.
nl/mirror/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://ftp-
stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.0.2/gentoo-portage"
USE="x86 3dnow 3dnowext S3TC X a52 aac aalib acpi alsa amd apm avi berkdb 
bitmap-fonts bluetooth bonobo bzip2 bzlib cdda cddb cdio cdr chroot clamav crypt 
cscope cups curl dga directfb disablexmb divx4linux dmx dv dvd dvdr dvdread edl 
emboss encode ethereal faac faad fam fb fbcon ffmpeg fla flac fmod font-server 
foomaticdb freetype gb gd gdbm geoip gif gimpprint gmail gnokii gphoto2 gpm 
gstreamer gtk gtk2 gtkhtml guile howl ieee1394 imagemagick imap imlib imlib2 
java javascript jpeg jpeg2k junit lcms libcaca libg++ libgda libwww live lzo lzw 
lzw-tiff mad maildir mailwrapper matroska md5sum mikmod mjpeg mmx mmxext mng 
monkey motif mozcalendar mozdevelop mozilla moznoirc mozsvg mp3 mpeg mpeg2 mpeg4 
mplayer msn mysql ncurses network nls nptl nptlonly ntlm nvidia oav odbc ogg 
oggvorbis opengl operanom2 oss pam pcntl pcre pdf pdflib perl pic png ppds 
python qt quicktime readline real rtc samba sasl scanner sdl slang sms snmp 
speex spell sse ssl stream svg sysfs tcpd tga theora tiff truetype truetype-
fonts type1 type1-fonts usb utf8 v4l v4l2 vcd vidix vlm vorbis win32codecs 
wma123 wmf wxwindows xanim xface xine xml xml2 xmms xosd xpm xprint xrandr xv 
xvid xvmc yahoo yv12 zlib video_cards_nvidia userland_GNU kernel_linux 
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS
Comment 1 MAL 2005-07-12 03:45:11 UTC
I mistyped a commandline I used, it should have been:

# ls -laF /usr/lib/libcrack.so.2

and not

# ls -laF /usr/lib/libcrack.so
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-07-12 05:30:20 UTC
(In reply to comment #0)
> I waited for bug 98399 to be resolved before reporting this, but I just synced 
> and I still get the error:

Maybe you should read the bug again and more carefully. It has nothing to do
with emerge sync, it's a bogus lib in /usr/lib

*** This bug has been marked as a duplicate of 98399 ***
Comment 3 MAL 2005-07-12 05:59:06 UTC
I thought the pam ebuild was goign to be updated to take care of that.

Never mind, I fixed it manually.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-07-12 06:19:41 UTC
(In reply to comment #3)
> I thought the pam ebuild was goign to be updated to take care of that.

Uhm, you won't get an updated ebuild just to remove a bogus library/symlink that
does not exist on any but a few broken systems. ;)
Comment 5 MAL 2005-07-12 06:38:10 UTC
How did they get broken?  A change in cracklib I assume.  The cracklib ebuild 
should therefore fix it's problems, just as other ebuilds fix things they 
accidentally break.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-07-12 06:58:55 UTC
Closing.
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2005-07-13 01:20:02 UTC
It should not be the ebuild's responsibility ... portage should have cleaned up
those dead libraries ....
Comment 8 MAL 2005-07-13 02:36:22 UTC
Of course - but in a situation where it hasn't, shouldn't it be appropriate for 
the ebuild to contain some kind of cleanup code for files only it is aware of?
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2005-07-13 03:29:08 UTC
Did you use prelink and then uninstalled it?
Comment 10 MAL 2005-07-13 04:40:27 UTC
Thanks, I've been trying to work out what I could have done to cause it.  Tried 
prelink many moons ago, so I guess that was the cause.

Is there a gentoo tool to scan your filesystem for all non-package owned files?
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2005-07-13 05:44:11 UTC
Not sure .. I usually use find and equery/epm scripting.  Just make sure you do
not just delete all files found, but check them first, and make sure ...
Comment 12 Patrick Kursawe (RETIRED) gentoo-dev 2005-09-21 22:55:37 UTC
Another broken system here, and I still have prelink installed. Removed
cracklib, emerged cracklib, everything fine again.