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

Bug 461642

Summary: sys-apps/shadow: pkg_preinst can't read /etc/pam.d/login
Product: Gentoo Linux Reporter: Fabio Erculiani (RETIRED) <lxnay>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: major CC: pam-bugs+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Fabio Erculiani (RETIRED) gentoo-dev 2013-03-13 15:19:21 UTC
pkg_preinst() {
        [...]
        use pam && pam_epam_expand "${D}"/etc/pam.d/login
}

as per PMS specification, this is illegal. You cannot use ${D} in pkg_*, it breaks binpkgs.

Reproducible: Always
Comment 1 Fabio Erculiani (RETIRED) gentoo-dev 2013-03-13 15:34:39 UTC
Next time bump the ebuild revision, please!

*** This bug has been marked as a duplicate of bug 458548 ***
Comment 2 SpanKY gentoo-dev 2013-03-14 18:38:03 UTC
(In reply to comment #0)

your diagnosis is wrong.  $D is valid in pkg_preinst.