* [PATCH 0/2] PAM sanity
@ 2013-06-20 16:38 Ross Burton
2013-06-20 16:38 ` [PATCH 1/2] libpam: fix whitespace in shell function Ross Burton
2013-06-20 16:38 ` [PATCH 2/2] libpam: check if PAM is enabled when building Ross Burton
0 siblings, 2 replies; 3+ messages in thread
From: Ross Burton @ 2013-06-20 16:38 UTC (permalink / raw)
To: openembedded-core
Hi,
A whitespace fix for libpam, and then something more "interesting". I spent an
hour earlier cursing my build before finally realising the reason that my PAM
modules were not running on login was because the pam DISTRO_FEATURE wasn't
enabled. So, here's a patch to make libpam warn if it's being build without the
pam DISTRO_FEATURE.
Ross
Ross Burton (2):
libpam: fix whitespace in shell function
libpam: check if PAM is enabled when building
meta/recipes-extended/pam/libpam_1.1.6.bb | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
--
1.7.10.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] libpam: fix whitespace in shell function
2013-06-20 16:38 [PATCH 0/2] PAM sanity Ross Burton
@ 2013-06-20 16:38 ` Ross Burton
2013-06-20 16:38 ` [PATCH 2/2] libpam: check if PAM is enabled when building Ross Burton
1 sibling, 0 replies; 3+ messages in thread
From: Ross Burton @ 2013-06-20 16:38 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
meta/recipes-extended/pam/libpam_1.1.6.bb | 4 ++--
1 file 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 94101d4..96133c3 100644
--- a/meta/recipes-extended/pam/libpam_1.1.6.bb
+++ b/meta/recipes-extended/pam/libpam_1.1.6.bb
@@ -96,6 +96,6 @@ do_install() {
install -d ${D}${sysconfdir}/pam.d/
install -m 0644 ${WORKDIR}/pam.d/* ${D}${sysconfdir}/pam.d/
- # The lsb requires unix_chkpwd has setuid permission
- chmod 4755 ${D}${sbindir}/unix_chkpwd
+ # The lsb requires unix_chkpwd has setuid permission
+ chmod 4755 ${D}${sbindir}/unix_chkpwd
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/2] libpam: check if PAM is enabled when building
2013-06-20 16:38 [PATCH 0/2] PAM sanity Ross Burton
2013-06-20 16:38 ` [PATCH 1/2] libpam: fix whitespace in shell function Ross Burton
@ 2013-06-20 16:38 ` Ross Burton
1 sibling, 0 replies; 3+ messages in thread
From: Ross Burton @ 2013-06-20 16:38 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
meta/recipes-extended/pam/libpam_1.1.6.bb | 6 ++++++
1 file changed, 6 insertions(+)
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
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-20 16:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-20 16:38 [PATCH 0/2] PAM sanity Ross Burton
2013-06-20 16:38 ` [PATCH 1/2] libpam: fix whitespace in shell function Ross Burton
2013-06-20 16:38 ` [PATCH 2/2] libpam: check if PAM is enabled when building Ross Burton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox