[meta-cgl,2/3] packagegroup-cgl-applications: only install libpam and pam-passwdqc if pam distro flag set

Submitted by Yi Zhao on June 27, 2019, 12:39 a.m. | Patch ID: 162541

Details

Message ID 1561595941-25137-2-git-send-email-yi.zhao@windriver.com
State New
Headers show

Commit Message

Yi Zhao June 27, 2019, 12:39 a.m.
Fix build error when pam distro flag is not set:

$ bitbake packagegroup-cgl-applications
ERROR: Nothing RPROVIDES 'pam-passwdqc' (but
/buildarea/poky/meta-cgl/meta-cgl-common/packagegroups/packagegroup-cgl-applications.bb
RDEPENDS on or otherwise requires it)
ERROR: Nothing RPROVIDES 'libpam' (but
/buildarea/poky/meta-cgl/meta-cgl-common/packagegroups/packagegroup-cgl-applications.bb
RDEPENDS on or otherwise requires it)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
 meta-cgl-common/packagegroups/packagegroup-cgl-applications.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/meta-cgl-common/packagegroups/packagegroup-cgl-applications.bb b/meta-cgl-common/packagegroups/packagegroup-cgl-applications.bb
index 5e7170d..6b7a630 100644
--- a/meta-cgl-common/packagegroups/packagegroup-cgl-applications.bb
+++ b/meta-cgl-common/packagegroups/packagegroup-cgl-applications.bb
@@ -46,9 +46,8 @@  RDEPENDS_${PN} = " \
     samhain-server \
     audit \
     crash \
-    pam-passwdqc \
-    libpam \
     makedumpfile \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-passwdqc libpam', '', d)} \
     "
 
 LTTNG ?= "\