[OE-core] [meta-selinux] [PATCH v3] refpolicy-mls: user native bzip2 instead of host
Alexandru Moise
alexandru.moise at windriver.com
Tue Feb 21 14:46:51 UTC 2017
The behavior of b{zip,unzip}2 an vary from host to host with
regards to a number of things such as return value or permissions.
We should always use the native bzip2 package to keep the behavior
deterministic. This change prevents a warning at do_package_qa
task of refpolicy-mls package.
Signed-off-by: Alexandru Moise <alexandru.moise at windriver.com>
---
Changes in v2:
Use Ross Burton's suggestion of using appending the bzip2-native
path to EXTRANATIVEPATH variable instead of using the absolute path.
Changes in v3:
Add "bzip2-replacement-native" as dependency to ensure that the
bzip2-native package exists in the STAGING_BINDIR_NATIVE path.
recipes-security/refpolicy/refpolicy_common.inc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/recipes-security/refpolicy/refpolicy_common.inc b/recipes-security/refpolicy/refpolicy_common.inc
index 58152a8..6a45e79 100644
--- a/recipes-security/refpolicy/refpolicy_common.inc
+++ b/recipes-security/refpolicy/refpolicy_common.inc
@@ -27,7 +27,9 @@ FILES_${PN}-dev =+ " \
${sysconfdir}/selinux/sepolgen.conf \
"
-DEPENDS += "checkpolicy-native policycoreutils-native m4-native"
+EXTRANATIVEPATH += "bzip2-native"
+
+DEPENDS += "bzip2-replacement-native checkpolicy-native policycoreutils-native m4-native"
RDEPENDS-${PN}-dev =+ " \
python \
--
2.10.2
More information about the Openembedded-core
mailing list