mirror of
https://git.yoctoproject.org/poky
synced 2026-04-03 02:02:21 +02:00
cups: check PACKAGECONFIG for pam feature
The cups' PACKAGECONFIG is populated based on DISTRO_FEATURES, but a user is free to enable or disable PACKAGECONFIGs at will. In theory it is possible that pam is enabled globally in DISTRO_FEATURES but disabled in cups' PACKAGECONFIG. Checking the PACKAGECONFIG to determine whether or not pam is enabled would be a safer check rather than relying on DISTRO_FEATURES. (From OE-Core rev: a053dd177ddc99ced11e68914079be0ffe261262) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
75ef02a983
commit
51553b3f28
@@ -74,7 +74,7 @@ do_install () {
|
||||
rmdir ${D}/${libexecdir}/${BPN}/driver
|
||||
|
||||
# Fix the pam configuration file permissions
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'pam', 'true', 'false', d)}; then
|
||||
chmod 0644 ${D}${sysconfdir}/pam.d/cups
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user