[meta-ti] [PATCH] ti-eula-unpack: throw error message in case 32bit-glibc is missing

Koen Kooi koen at dominion.thruhere.net
Mon Mar 12 03:50:41 PDT 2012


Acked-by: Koen Kooi <koen at dominion.thruhere.net>

Op 12 mrt. 2012 om 10:28 heeft Andreas Müller <schnitzeltony at googlemail.com> het volgende geschreven:

> TI installation tool requires 32bit glibc [1]
> 
> [1] https://lists.yoctoproject.org/pipermail/meta-ti/2012-January/000357.html
> 
> Signed-off-by: Andreas Müller <schnitzeltony at googlemail.com>
> ---
> recipes-ti/includes/ti-eula-unpack.inc |    8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/recipes-ti/includes/ti-eula-unpack.inc b/recipes-ti/includes/ti-eula-unpack.inc
> index 7c6e7b7..310d19f 100644
> --- a/recipes-ti/includes/ti-eula-unpack.inc
> +++ b/recipes-ti/includes/ti-eula-unpack.inc
> @@ -19,6 +19,14 @@ python ti_bin_do_unpack() {
> 
>     import os
> 
> +    # InstallJammer requires 32bit version of glibc
> +    lib32path = '/lib'
> +    if os.path.exists('/lib64') and ( os.path.islink('/lib64') or os.path.islink('/lib') ):
> +       lib32path = '/lib32'
> +    if not os.path.exists('%s/libc.so.6' % lib32path):
> +    raise bb.build.FuncFailed, \
> +        "\nTI installer requires 32bit glibc libraries for proper operation e.g on Fedora run 'yum install glibc.i686'"
> +
>     localdata = bb.data.createCopy(d)
>     bb.data.update_data(localdata)
> 
> -- 
> 1.7.6.5
> 
> _______________________________________________
> meta-ti mailing list
> meta-ti at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti



More information about the meta-ti mailing list