Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Cc: Ken Werner <ken.werner@linaro.org>
Subject: Re: [PATCH] Add sanity checks for eglibc locale
Date: Tue, 21 Feb 2012 10:58:27 -0800	[thread overview]
Message-ID: <4F43E953.9000300@linux.intel.com> (raw)
In-Reply-To: <1329295747-25855-1-git-send-email-ken.werner@linaro.org>

On 02/15/2012 12:49 AM, Ken Werner wrote:
> Add sanity checks that test for the existance of folders. This allows to use
> an external binary toolchain that doesn't have localization support.
> ---
>   meta/recipes-core/eglibc/eglibc-locale.inc  |   20 +++++++++++++++-----
>   meta/recipes-core/eglibc/eglibc-package.inc |    4 +++-
>   2 files changed, 18 insertions(+), 6 deletions(-)
>
> diff --git a/meta/recipes-core/eglibc/eglibc-locale.inc b/meta/recipes-core/eglibc/eglibc-locale.inc
> index b4646fa..2e9b4d4 100644
> --- a/meta/recipes-core/eglibc/eglibc-locale.inc
> +++ b/meta/recipes-core/eglibc/eglibc-locale.inc
> @@ -72,11 +72,21 @@ LOCALETREESRC = "${STAGING_INCDIR}/eglibc-locale-internal-${MULTIMACH_TARGET_SYS
>
>   do_install () {
>   	mkdir -p ${D}${bindir} ${D}${datadir} ${D}${libdir}
> -	cp -fpPR ${LOCALETREESRC}/${bindir}/* ${D}${bindir}
> -	cp -fpPR ${LOCALETREESRC}/${libdir}/locale ${D}${libdir}
> -	cp -fpPR ${LOCALETREESRC}/${libdir}/gconv ${D}${libdir}
> -	cp -fpPR ${LOCALETREESRC}/${datadir}/i18n ${D}${datadir}
> -	cp -fpPR ${LOCALETREESRC}/${datadir}/locale ${D}${datadir}
> +	if [ -n "$(ls ${LOCALETREESRC}/${bindir})" ]; then
> +		cp -fpPR ${LOCALETREESRC}/${bindir}/* ${D}${bindir}
> +	fi
> +	if [ -e ${LOCALETREESRC}/${libdir}/locale ]; then
> +		cp -fpPR ${LOCALETREESRC}/${libdir}/locale ${D}${libdir}
> +	fi
> +	if [ -e ${LOCALETREESRC}/${libdir}/gconv ]; then
> +		cp -fpPR ${LOCALETREESRC}/${libdir}/gconv ${D}${libdir}
> +	fi
> +	if [ -e ${LOCALETREESRC}/${datadir}/i18n ]; then
> +		cp -fpPR ${LOCALETREESRC}/${datadir}/i18n ${D}${datadir}
> +	fi
> +	if [ -e ${LOCALETREESRC}/${datadir}/locale ]; then
> +		cp -fpPR ${LOCALETREESRC}/${datadir}/locale ${D}${datadir}
> +	fi
>   	cp -fpPR ${LOCALETREESRC}/SUPPORTED ${WORKDIR}
>   }
>
> diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc
> index 870b95d..2a1d939 100644
> --- a/meta/recipes-core/eglibc/eglibc-package.inc
> +++ b/meta/recipes-core/eglibc/eglibc-package.inc
> @@ -91,7 +91,9 @@ do_install_locale () {
>   		mv -f ${D}${libdir}/gconv ${dest}${libdir}
>   	fi
>   	cp -fpPR ${D}${libdir}/* ${dest}${libdir}
> -        mv ${D}${datadir}/i18n ${dest}${datadir}
> +	if [ -e ${D}${datadir}/i18n ]; then
> +		mv ${D}${datadir}/i18n ${dest}${datadir}
> +	fi
>   	cp -fpPR ${D}${datadir}/* ${dest}${datadir}
>   	cp -fpPR ${WORKDIR}/SUPPORTED ${dest}
>   }

Merged into OE-core

Thanks
	Sau!



      reply	other threads:[~2012-02-21 19:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-15  8:49 [PATCH] Add sanity checks for eglibc locale Ken Werner
2012-02-21 18:58 ` Saul Wold [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F43E953.9000300@linux.intel.com \
    --to=sgw@linux.intel.com \
    --cc=ken.werner@linaro.org \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox