diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-09-24 14:34:51 +0800 |
---|---|---|
committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-09-24 15:59:03 +0800 |
commit | 91707923a298ec7c0507fbca1aa8ce03db50d93f (patch) | |
tree | ef551effd616dad816793fd81e76fa4066d83a57 | |
parent | a9c8b9780a5dab3fede4eaf4ea89e90a077ecc4f (diff) | |
download | meta-selinux-91707923a298ec7c0507fbca1aa8ce03db50d93f.tar.gz |
policycoreutils: fix build with pam DISTRO_FEATURE
If no pam DISTRO_FEATURE, policycoreutils should not build with
libpam headers and libraries.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
-rw-r--r-- | recipes-security/selinux/policycoreutils_2.1.10.bb | 4 | ||||
-rw-r--r-- | recipes-security/selinux/policycoreutils_git.bb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/recipes-security/selinux/policycoreutils_2.1.10.bb b/recipes-security/selinux/policycoreutils_2.1.10.bb index 848f010..10bc771 100644 --- a/recipes-security/selinux/policycoreutils_2.1.10.bb +++ b/recipes-security/selinux/policycoreutils_2.1.10.bb | |||
@@ -5,7 +5,7 @@ load_policy to load policies, setfiles to label filesystems, newrole \ | |||
5 | to switch roles, and run_init to run /etc/init.d scripts in the proper \ | 5 | to switch roles, and run_init to run /etc/init.d scripts in the proper \ |
6 | context." | 6 | context." |
7 | SECTION = "base" | 7 | SECTION = "base" |
8 | PR = "r1" | 8 | PR = "r2" |
9 | LICENSE = "GPLv2+" | 9 | LICENSE = "GPLv2+" |
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" |
11 | 11 | ||
@@ -47,7 +47,7 @@ FILES_${PN}-sandbox += "${sbindir}/seunshare" | |||
47 | 47 | ||
48 | AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `" | 48 | AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `" |
49 | PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `" | 49 | PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `" |
50 | EXTRA_OEMAKE += "PAMH=${PAMH} AUDITH=${AUDITH} INOTIFYH=n" | 50 | EXTRA_OEMAKE += "${@base_contains('DISTRO_FEATURES', 'pam', 'PAMH=${PAMH} AUDITH=${AUDITH}', 'PAMH= AUDITH= ', d)} INOTIFYH=n" |
51 | EXTRA_OEMAKE += "PREFIX=${D}" | 51 | EXTRA_OEMAKE += "PREFIX=${D}" |
52 | 52 | ||
53 | BBCLASSEXTEND = "native" | 53 | BBCLASSEXTEND = "native" |
diff --git a/recipes-security/selinux/policycoreutils_git.bb b/recipes-security/selinux/policycoreutils_git.bb index d9c4608..d02c0d9 100644 --- a/recipes-security/selinux/policycoreutils_git.bb +++ b/recipes-security/selinux/policycoreutils_git.bb | |||
@@ -5,7 +5,7 @@ load_policy to load policies, setfiles to label filesystems, newrole \ | |||
5 | to switch roles, and run_init to run /etc/init.d scripts in the proper \ | 5 | to switch roles, and run_init to run /etc/init.d scripts in the proper \ |
6 | context." | 6 | context." |
7 | SECTION = "base" | 7 | SECTION = "base" |
8 | PR = "r1" | 8 | PR = "r2" |
9 | LICENSE = "GPLv2+" | 9 | LICENSE = "GPLv2+" |
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" | 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" |
11 | DEFAULT_PREFERENCE = "-1" | 11 | DEFAULT_PREFERENCE = "-1" |
@@ -48,7 +48,7 @@ FILES_${PN}-sandbox += "${sbindir}/seunshare" | |||
48 | 48 | ||
49 | AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `" | 49 | AUDITH="`ls ${STAGING_INCDIR}/libaudit.h >/dev/null 2>&1 && echo /usr/include/libaudit.h `" |
50 | PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `" | 50 | PAMH="`ls ${STAGING_INCDIR}/security/pam_appl.h >/dev/null 2>&1 && echo /usr/include/security/pam_appl.h `" |
51 | EXTRA_OEMAKE += "PAMH=${PAMH} AUDITH=${AUDITH} INOTIFYH=n" | 51 | EXTRA_OEMAKE += "${@base_contains('DISTRO_FEATURES', 'pam', 'PAMH=${PAMH} AUDITH=${AUDITH}', 'PAMH= AUDITH= ', d)} INOTIFYH=n" |
52 | EXTRA_OEMAKE += "PREFIX=${D}" | 52 | EXTRA_OEMAKE += "PREFIX=${D}" |
53 | 53 | ||
54 | BBCLASSEXTEND = "native" | 54 | BBCLASSEXTEND = "native" |