2008/2/13, Willie Wong <[EMAIL PROTECTED]>:
>
> On Wed, Feb 13, 2008 at 10:03:42PM +0100, Henry Gebhardt wrote:
> > Where does equery get that from? emerge -e pam doesn't show pwdb as a
> > dependency. In fact, the ebuild checks whether you are using the
> pam_pwdb
> > module, and if you do, warns you about it. I for my part just removed
> pwdb,
> > and I can still log in as if nothing happend. (Also after a reboot.)
>
>
> [04:18 PM]wwong pam $ emerge --pretend --emptytree pam | grep pwdb
> [ebuild R ] sys-libs/pwdb-0.62
>
> Also,
>
> [04:20 PM]wwong pam $ grep -C 3 pwdb pam-0.99.9.0.ebuild
> RDEPEND="nls? ( virtual/libintl )
> cracklib? ( >=sys-libs/cracklib-2.8.3 )
> audit? ( sys-process/audit )
> sys-libs/pwdb
> selinux? ( >=sys-libs/libselinux-1.28 )"
>
> So, yes, pwdb is a runtime dependency. I don't actually run pam, so can't
> confirm what would happen if I remove pwdb.
>
Holy shit, what's going on? The ebuild in the portage tree is different than
the one in /var/db/pkg/. Is it normal to update an ebuild but not its
revision number? Here is the diff:
[EMAIL PROTECTED] ~ $ diff -Naur /var/db/pkg/sys-libs/pam-
0.99.9.0/pam-0.99.9.0.ebuild /usr/portage/sys-libs/pam/pam-0.99.9.0.ebuild
--- /var/db/pkg/sys-libs/pam-0.99.9.0/pam-0.99.9.0.ebuild 2007-12-19
07:25:45.000000000 +0100
+++ /usr/portage/sys-libs/pam/pam-0.99.9.0.ebuild 2008-02-10 19:07:
14.000000000 +0100
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.99.9.0.ebuild,v
1.112007/11/24 11:27:34 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam/pam-0.99.9.0.ebuild,v
1.162008/02/10 17:59:34 flameeyes Exp $
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
@@ -17,15 +17,15 @@
LICENSE="PAM"
SLOT="0"
-KEYWORDS="alpha amd64 ~arm hppa ia64 ~m68k ppc ppc64 ~s390 ~sh sparc x86"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
IUSE="cracklib nls elibc_FreeBSD selinux vim-syntax audit test elibc_glibc"
RDEPEND="nls? ( virtual/libintl )
cracklib? ( >=sys-libs/cracklib-2.8.3 )
audit? ( sys-process/audit )
- sys-libs/pwdb
selinux? ( >=sys-libs/libselinux-1.28 )"
DEPEND="${RDEPEND}
+ sys-devel/flex
test? ( elibc_glibc? ( >=sys-libs/glibc-2.4 ) )
nls? ( sys-devel/gettext )"
PDEPEND="vim-syntax? ( app-vim/pam-syntax )"
@@ -37,7 +37,7 @@
check_old_modules() {
local retval="0"
- if sed -e 's:#.*::' /etc/pam.d/* | fgrep -q pam_stack.so; then
+ if sed -e 's:#.*::' "${ROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q
pam_stack.so; then
eerror ""
eerror "Your current setup is using the pam_stack module."
eerror "This module is deprecated and no longer supported, and
since version"
@@ -53,7 +53,7 @@
retval=1
fi
- if sed -e 's:#.*::' /etc/pam.d/* | egrep -q
'pam_(pwdb|radius|timestamp|console)'; then
+ if sed -e 's:#.*::' "${ROOT}"/etc/pam.d/* 2>/dev/null | egrep -q
'pam_(pwdb|radius|timestamp|console)'; then
eerror ""
eerror "Your current setup is using one or more of the following
modules,"
eerror "that are not built or supported anymore:"
@@ -75,7 +75,7 @@
# This works only for those modules that are moved to sys-auth/$module,
or the
# message will be wrong.
for module in pam_chroot pam_userdb; do
- if sed -e 's:#.*::' /etc/pam.d/* | fgrep -q ${module}.so; then
+ if sed -e 's:#.*::' "${ROOT}"/etc/pam.d/* 2>/dev/null | fgrep -q
${module}.so; then
ewarn ""
ewarn "Your current setup is using the ${module} module."
ewarn "Since version 0.99, ${CATEGORY}/${PN} does not provide
this module"
Thanks for your response W.
~Henry