Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114115 - kcheckpass-3.5.0 makes use of pam even with USE=-pam
Summary: kcheckpass-3.5.0 makes use of pam even with USE=-pam
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-01 01:28 UTC by Kenyon Ralph
Modified: 2005-12-01 09:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenyon Ralph 2005-12-01 01:28:19 UTC
I have sys-libs/pam-0.78-r3 installed, but -pam in my USE flags.  Manually doing
./configure in /var/tmp/portage/kcheckpass-3.5.0/work/kcheckpass-3.5.0 then grep
pam config.log gives this:

configure:32706: checking for pam_start in -lpam
configure:32736: gcc -o conftest -std=iso9899:1990 -W -Wall -Wchar-subscripts
-Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2   -Wformat-security
-Wmissing-format-attribute  -DQT_THREAD_SUPPORT  -D_REENTRANT  conftest.c -lpam
-ldl  >&5
configure:32782: checking security/pam_appl.h usability
configure:32827: checking security/pam_appl.h presence
configure:32898: checking for security/pam_appl.h
configure:33093: checking for const pam_message
ac_cv_header_security_pam_appl_h=yes
ac_cv_lib_pam_pam_start=yes
PAMLIBS=' -lpam -ldl'
PASSWDLIBS=' -lpam -ldl'

If I do ./configure --without-pam, then grep pam config.log, I get only this:
  $ ./configure --without-pam

So I currently have kcheckpass installed and it thinks pam is there and fully
useable.  However, I don't have pam_console installed.  So I get these messages
in my log when I type my password incorrectly when unlocking my session:

Dec  1 00:26:16 [kcheckpass] PAM unable to dlopen(/lib/security/pam_console.so)
Dec  1 00:26:16 [kcheckpass] PAM [dlerror: /lib/security/pam_console.so: cannot
open shared object file: N
o such file or directory]
Dec  1 00:26:16 [kcheckpass] PAM adding faulty module: /lib/security/pam_console.so
Dec  1 00:26:16 [kde(pam_unix)] authentication failure; logname= uid=1000 euid=0
tty=:0 ruser= rhost=  use
r=kenyon
Dec  1 00:26:19 [kcheckpass] Authentication failure for kenyon (invoked by uid 1000)


I haven't tried this, but I'm thinking that if -pam is specified when emerging
kcheckpass, the configure should be run with --without-pam, then kcheckpass
won't compile with PAM support and therefore won't try to use PAM at all.  Those
log messages, and a slight delay when you incorrectly enter your password, seem
to be the only ill effects of not configuring with --without-pam.


emerge info:
Portage 2.0.53_rc7 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3,
2.6.14-archck5 i686)
=================================================================
System uname: 2.6.14-archck5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.0_pre11
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.14
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo
http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org
http://gentoo.mirrors.pair.com"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib alsa apm arts audiofile avi bash-completion berkdb
bitmap-fonts bzip2 caps cdparanoia cdr crypt cups curl dbus dts dvd eds emboss
encode exif expat fam ffmpeg flac font-server foomaticdb fortran freetype gdbm
gif glut gnutls gphoto2 gpm gstreamer gtk gtk2 guile hal idn imagemagick imlib
ipv6 java jikes jpeg jpeg2k kde kdeenablefinal lcms libg++ libwww lm_sensors mad
matroska mmx mng mp3 mpeg ncurses network nls nptl nvidia offensive ogg
oggvorbis opengl pcre pdflib perl pic png ppds python qt quicktime readline real
recode ruby samba scanner sdl slang sndfile snmp spell sse sse2 ssl svg tcpd
tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb
vorbis win32codecs wmf wxwindows xine xml2 xprint xv xvid xvmc zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-01 04:41:08 UTC
I'll take care. 
 
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-01 04:54:49 UTC
Fixed in CVS. 
Comment 3 Kenyon Ralph 2005-12-01 09:00:37 UTC
Fix works as desired, thanks.