[OE-core] [yocto] [meta-selinux] [PATCH] refpolicy-mls: user native bzip2 instead of host

Burton, Ross ross.burton at intel.com
Tue Feb 21 14:03:29 UTC 2017


On 21 February 2017 at 13:55, Alexandru Moise <alexandru.moise at windriver.com
> wrote:

> -DEPENDS += "checkpolicy-native policycoreutils-native m4-native"
> +DEPENDS += "checkpolicy-native policycoreutils-native m4-native
> bzip2-native"
>

bzip2-native is in ASSUME_PROVIDED, so this won't do anything.


> +       native_bzip2=${STAGING_BINDIR_NATIVE}/bzip2-native/bzip2
> +       native_bunzip2=${STAGING_BINDIR_NATIVE}/bzip2-native/bunzip2
>

The proper way to do this is as follows:

DEPENDS += "bzip2-replacement-native"
EXTRANATIVEPATH += "bzip2-native"

This will ensure that you get our bzip2-native in the sysroot, and
EXTRANATIVEPATH will extend $PATH to include it so you don't need to use
absolute paths but can just use bzip2 as usual.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170221/0c517007/attachment-0002.html>


More information about the Openembedded-core mailing list