[oe-commits] Ross Burton : libpam: check if PAM is enabled when building

git at git.openembedded.org git at git.openembedded.org
Tue Jun 25 16:38:01 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: fd9bad3e48a605e9fd28c129413300ff6b548788
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=fd9bad3e48a605e9fd28c129413300ff6b548788

Author: Ross Burton <ross.burton at intel.com>
Date:   Thu Jun 20 17:38:24 2013 +0100

libpam: check if PAM is enabled when building

Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/recipes-extended/pam/libpam_1.1.6.bb |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-extended/pam/libpam_1.1.6.bb b/meta/recipes-extended/pam/libpam_1.1.6.bb
index 96133c3..f811f4c 100644
--- a/meta/recipes-extended/pam/libpam_1.1.6.bb
+++ b/meta/recipes-extended/pam/libpam_1.1.6.bb
@@ -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



More information about the Openembedded-commits mailing list