diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-04-27 15:56:20 +0800 |
---|---|---|
committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2012-04-27 15:56:20 +0800 |
commit | 1442824d3272f54feca33238e527d18a06a6b7e0 (patch) | |
tree | 02bd1cffd5c66db13835baba5e21240b25ea7605 | |
parent | 16668088dda857b1651d7cdd7928ec4187e74b26 (diff) | |
download | meta-selinux-1442824d3272f54feca33238e527d18a06a6b7e0.tar.gz |
policycoreutils: Fix depends for target build.
-rw-r--r-- | recipes-security/selinux/policycoreutils_2.1.10.bb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/recipes-security/selinux/policycoreutils_2.1.10.bb b/recipes-security/selinux/policycoreutils_2.1.10.bb index 297e15b..2289762 100644 --- a/recipes-security/selinux/policycoreutils_2.1.10.bb +++ b/recipes-security/selinux/policycoreutils_2.1.10.bb | |||
@@ -15,8 +15,16 @@ SRC_URI[md5sum] = "fefdede2815cdd2ba8b68599fef1f257" | |||
15 | SRC_URI[sha256sum] = "8bbbc36b7d375edff891503932da93e37553f0dd7bdceded7ce9a45c80bec3d1" | 15 | SRC_URI[sha256sum] = "8bbbc36b7d375edff891503932da93e37553f0dd7bdceded7ce9a45c80bec3d1" |
16 | 16 | ||
17 | DEPENDS += "libsepol libselinux libsemanage" | 17 | DEPENDS += "libsepol libselinux libsemanage" |
18 | DEPENDS_${BPN} += "libcap-ng libcgroup" | 18 | TARGET_EXTRA_DEPENDS = "libcap-ng libcgroup" |
19 | DEPENDS_${BPN} += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam audit', '', d)}" | 19 | TARGET_EXTRA_DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam audit', '', d)}" |
20 | python __anonymous () { | ||
21 | dps = d.getVar('DEPENDS', True) | ||
22 | extra_dps = d.getVar('TARGET_EXTRA_DEPENDS', True) | ||
23 | pn = d.getVar('PN', True) | ||
24 | bpn = d.getVar('BPN', True) | ||
25 | if pn == bpn: | ||
26 | d.setVar("DEPENDS", dps + " " + extra_dps) | ||
27 | } | ||
20 | 28 | ||
21 | RDEPENDS_${BPN} += "\ | 29 | RDEPENDS_${BPN} += "\ |
22 | libselinux-python \ | 30 | libselinux-python \ |