[yocto] [PATCH][meta-selinux] libselinux, libsepol: depends on coreutils-native

Khem Raj raj.khem at gmail.com
Tue Oct 20 14:49:44 PDT 2015


> On Oct 20, 2015, at 2:49 AM, wenzong.fan at windriver.com wrote:
> 
> From: Wenzong Fan <wenzong.fan at windriver.com>
> 
> 'ln --relative' doesn't work on Ubuntu 12.04 that has ln 8.13. The

OE-Core has lnr script you can use that.

> changes involved by SELinux commit:
> 
>  commit 71393a181d63c9baae5fe8dcaeb9411d1f253998
>  Author: Steve Lawrence <slawrence at tresys.com>
>  Date:   Mon Oct 20 15:46:17 2014 -0400
> 
>    libselinux: libsepol: use ln --relative to create .so symlinks
> 
>    The current build system assumes SHLIBDIR is ../../ relative to LIBDIR.
>    However, this isn't always the case. For example, Arch Linux sets both
>    LIBDIR and SHLIBDIR to /usr/lib, which results in broken symlinks.
> 
>    Instead of making that assumption, create .so symlinks using ln
>    --relative so that the correct relative paths are used. Note that this
>    adds a dependency for the build system to use coretuils-8.16 or later.
> 
> Just depends on coreutils-native to fix the issue.
> 
> Signed-off-by: Wenzong Fan <wenzong.fan at windriver.com>
> ---
> recipes-security/selinux/libselinux.inc | 2 +-
> recipes-security/selinux/libsepol.inc   | 2 ++
> 2 files changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/recipes-security/selinux/libselinux.inc b/recipes-security/selinux/libselinux.inc
> index d571a7c..b0f7bc4 100644
> --- a/recipes-security/selinux/libselinux.inc
> +++ b/recipes-security/selinux/libselinux.inc
> @@ -7,7 +7,7 @@ LICENSE = "PD"
> 
> inherit lib_package pythonnative
> 
> -DEPENDS += "libsepol python libpcre swig-native"
> +DEPENDS += "libsepol python libpcre swig-native coreutils-native"
> 
> PACKAGES += "${PN}-python"
> FILES_${PN}-python = "${libdir}/python${PYTHON_BASEVERSION}/site-packages/selinux/*"
> diff --git a/recipes-security/selinux/libsepol.inc b/recipes-security/selinux/libsepol.inc
> index b24ed28..9234f24 100644
> --- a/recipes-security/selinux/libsepol.inc
> +++ b/recipes-security/selinux/libsepol.inc
> @@ -8,6 +8,8 @@ LICENSE = "LGPLv2+"
> 
> inherit lib_package
> 
> +DEPENDS += "coreutils-native"
> +
> # Change RANLIB for cross compiling, use host-tools $(AR) rather than
> # local ranlib.
> EXTRA_OEMAKE += "RANLIB='$(AR) s'"
> --
> 1.9.1
> 
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151020/05d8d5d0/attachment.pgp>


More information about the yocto mailing list