Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461642 - sys-apps/shadow: pkg_preinst can't read /etc/pam.d/login
Summary: sys-apps/shadow: pkg_preinst can't read /etc/pam.d/login
Status: RESOLVED DUPLICATE of bug 458548
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-13 15:19 UTC by Fabio Erculiani (RETIRED)
Modified: 2013-03-14 18:38 UTC (History)
1 user (show)

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 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.