Patchwork [8/8] eglibc-locale: add missing dependency on virtual/${TARGET_PREFIX}binutils

login
register
mail settings
Submitter Martin Jansa
Date July 5, 2013, 1:29 a.m.
Message ID <f74731158fdfcc9399a32a4e1616652fad1a512d.1372987648.git.Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/53091/
State Accepted, archived
Headers show

Comments

Martin Jansa - July 5, 2013, 1:29 a.m.
* eglibc-collateral.inc inhibits all default deps, but do_package needs
  objcopy:
  ERROR: objcopy failed with exit code 127 (cmd was
  'i586-webos-linux-objcopy' --only-keep-debug
  'eglibc-locale/2.17-r0/package/usr/lib/gconv/IBM1166.so'
  'eglibc-locale/2.17-r0/package/usr/lib/gconv/.debug/IBM1166.so')
  ERROR: Function failed: split_and_strip_files

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-core/eglibc/eglibc-locale.inc | 5 +++++
 1 file changed, 5 insertions(+)
Martin Jansa - July 5, 2013, 10:43 p.m.
On Fri, Jul 05, 2013 at 03:29:00AM +0200, Martin Jansa wrote:
> * eglibc-collateral.inc inhibits all default deps, but do_package needs
>   objcopy:
>   ERROR: objcopy failed with exit code 127 (cmd was
>   'i586-webos-linux-objcopy' --only-keep-debug
>   'eglibc-locale/2.17-r0/package/usr/lib/gconv/IBM1166.so'
>   'eglibc-locale/2.17-r0/package/usr/lib/gconv/.debug/IBM1166.so')
>   ERROR: Function failed: split_and_strip_files
> 
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  meta/recipes-core/eglibc/eglibc-locale.inc | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/meta/recipes-core/eglibc/eglibc-locale.inc b/meta/recipes-core/eglibc/eglibc-locale.inc
> index f4cb814..fc51022 100644
> --- a/meta/recipes-core/eglibc/eglibc-locale.inc
> +++ b/meta/recipes-core/eglibc/eglibc-locale.inc
> @@ -5,6 +5,11 @@ SUMMARY = "Locale data from eglibc"
>  BPN = "eglibc"
>  LOCALEBASEPN = "${MLPREFIX}eglibc"
>  
> +# eglibc-collateral.inc inhibits all default deps, but do_package needs objcopy
> +# ERROR: objcopy failed with exit code 127 (cmd was 'i586-webos-linux-objcopy' --only-keep-debug 'eglibc-locale/2.17-r0/package/usr/lib/gconv/IBM1166.so' 'eglibc-locale/2.17-r0/package/usr/lib/gconv/.debug/IBM1166.so')
> +# ERROR: Function failed: split_and_strip_files
> +DEPENDS = "virtual/${TARGET_PREFIX}binutils"
> +

This one doesn't work with nativesdk:

ERROR: Nothing PROVIDES 'virtual/nativesdk-x86_64-oesdk-linux-binutils'
(but
virtual:nativesdk:/OE/shr-core/openembedded-core/meta/recipes-core/eglibc/eglibc-locale_2.18.bb
DEPENDS on or otherwise requires it)
ERROR: Nothing RPROVIDES 'nativesdk-eglibc-charmaps' (but
virtual:nativesdk:/OE/shr-core/openembedded-core/meta/recipes-core/eglibc/eglibc-locale_2.18.bb
RDEPENDS on or otherwise requires it)
ERROR: No eligible RPROVIDERs exist for 'nativesdk-eglibc-charmaps'

I'll send v2 when I have a fix.

>  # Binary locales are generated at build time if ENABLE_BINARY_LOCALE_GENERATION
>  # is set. The idea is to avoid running localedef on the target (at first boot)
>  # to decrease initial boot time and avoid localedef being killed by the OOM
> -- 
> 1.8.2.1
>

Patch

diff --git a/meta/recipes-core/eglibc/eglibc-locale.inc b/meta/recipes-core/eglibc/eglibc-locale.inc
index f4cb814..fc51022 100644
--- a/meta/recipes-core/eglibc/eglibc-locale.inc
+++ b/meta/recipes-core/eglibc/eglibc-locale.inc
@@ -5,6 +5,11 @@  SUMMARY = "Locale data from eglibc"
 BPN = "eglibc"
 LOCALEBASEPN = "${MLPREFIX}eglibc"
 
+# eglibc-collateral.inc inhibits all default deps, but do_package needs objcopy
+# ERROR: objcopy failed with exit code 127 (cmd was 'i586-webos-linux-objcopy' --only-keep-debug 'eglibc-locale/2.17-r0/package/usr/lib/gconv/IBM1166.so' 'eglibc-locale/2.17-r0/package/usr/lib/gconv/.debug/IBM1166.so')
+# ERROR: Function failed: split_and_strip_files
+DEPENDS = "virtual/${TARGET_PREFIX}binutils"
+
 # Binary locales are generated at build time if ENABLE_BINARY_LOCALE_GENERATION
 # is set. The idea is to avoid running localedef on the target (at first boot)
 # to decrease initial boot time and avoid localedef being killed by the OOM