mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
libpam: check if PAM is enabled when building
(From OE-Core rev: fd9bad3e48a605e9fd28c129413300ff6b548788) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
105cbfa793
commit
763ebb62cd
@@ -99,3 +99,9 @@ do_install() {
|
||||
# The lsb requires unix_chkpwd has setuid permission
|
||||
chmod 4755 ${D}${sbindir}/unix_chkpwd
|
||||
}
|
||||
|
||||
python do_pam_sanity () {
|
||||
if "pam" not in d.getVar("DISTRO_FEATURES", True).split():
|
||||
bb.warn("Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won't work correctly")
|
||||
}
|
||||
addtask pam_sanity before do_configure
|
||||
|
||||
Reference in New Issue
Block a user