Line 57 of the ebuild does not do what it is supposed to. It reads: use pam && sed -i "s:HAVE_PAM=no:HAVE_PAM=yes:" MCONFIG || die "MCONFIG Pam" But this dies with "MCONFIG Pam" for me because I don't use pam. I think it should read: use pam && ( sed -i "s:HAVE_PAM=no:HAVE_PAM=yes:" MCONFIG || die "MCONFIG Pam" ) Anyway, this works for me now, except that a few lines down we still have a (sed) -e "s:HAVE_PAM=no:HAVE_PAM=yes:" \ I deleted this line and it works OK, and seems to not use pam. Reproducible: Always Steps to Reproduce: 1.Set -pam in USE and emerge util-linux-2.11z-r3 2. 3. Actual Results: Dies with MCONFIG Pam message. Expected Results: Ebuild should continue and NOT change HAVE_PAM=no to HAVE_PAM=yes in MCONFIG. Portage 2.0.48 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) Processor GENTOO_MIRRORS="http://194.83.57.2/sites/www.ibiblio.org/gentoo/ http://cs.ubishops.ca/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="directfb slang aalib nas guile perl python -arts -avi -berkdb -cups -encode -esd -imlib -kde -libg++ -libwww -mikmod -motif -nls -oss -pam -qt -sdl -svga -tcpd x86 3dnow alsa apm bonobo crypt emacs gdbm gif gnome gpm gtk gtk2 java jpeg maildir mmx mozilla mpeg ncurses oggvorbis opengl pdflib png quicktime readline spell ssl tcltk tetex truetype usb X xml2 xmms xv zlib" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -fomit-frame-pointer -pipe" CXXFLAGS="-march=athlon-tbird -O3 -fomit-frame-pointer -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" FEATURES="sandbox ccache userpriv"
There's also a problem with the selinux flag logic in the dependency area. It reads as follows: DEPEND="virtual/glibc >=sys-apps/sed-4.0.5 >=sys-libs/ncurses-5.2-r2 !selinux? ( sys-apps/pam-login ) selinux? ( sys-apps/shadow ) pam? ( sys-apps/pam-login )" However, sys-apps/pam-login is forbidden by the selinux profile and sys-apps/shadow replaces it. I think this works, but I'm not sure it's the "right" way to fix this: DEPEND="virtual/glibc >=sys-apps/sed-4.0.5 >=sys-libs/ncurses-5.2-r2 selinux? ( sys-apps/shadow ) pam ( !selinux? ( sys-apps/pam-login ) )"
I have another problem as well. The ebuild doesn't seem to care about USE=static, even though it says it would: $ export USE=static $ ebuild util-linux-2.11z-r3.ebuild compile $ ldd [portage-path]/work/util-linux-2.11z/mount/mount | libc.so.6 => /lib/libc.so.6 (0x4001d000) | /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) It's the same for the other binaries.
Still an issue?
Please test with latest version
The newest version, util-linux-2.12.ebuild, does write the correct "HAVE_PAM=" line to MCONFIG.