summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/pam/libpam_1.1.6.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/pam/libpam_1.1.6.bb')
-rw-r--r--meta/recipes-extended/pam/libpam_1.1.6.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-extended/pam/libpam_1.1.6.bb b/meta/recipes-extended/pam/libpam_1.1.6.bb
index 7c0111fb04..7e55adfb04 100644
--- a/meta/recipes-extended/pam/libpam_1.1.6.bb
+++ b/meta/recipes-extended/pam/libpam_1.1.6.bb
@@ -131,13 +131,13 @@ do_install() {
131 # The lsb requires unix_chkpwd has setuid permission 131 # The lsb requires unix_chkpwd has setuid permission
132 chmod 4755 ${D}${sbindir}/unix_chkpwd 132 chmod 4755 ${D}${sbindir}/unix_chkpwd
133 133
134 if ${@base_contains('DISTRO_FEATURES','systemd','true','false',d)}; then 134 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
135 echo "session optional pam_systemd.so" >> ${D}${sysconfdir}/pam.d/common-session 135 echo "session optional pam_systemd.so" >> ${D}${sysconfdir}/pam.d/common-session
136 fi 136 fi
137} 137}
138 138
139python do_pam_sanity () { 139python do_pam_sanity () {
140 if not base_contains('DISTRO_FEATURES', 'pam', True, False, d): 140 if not bb.utils.contains('DISTRO_FEATURES', 'pam', True, False, d):
141 bb.warn("Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won't work correctly") 141 bb.warn("Building libpam but 'pam' isn't in DISTRO_FEATURES, PAM won't work correctly")
142} 142}
143addtask pam_sanity before do_configure 143addtask pam_sanity before do_configure