Patchwork [3/3] eglibc-locale.inc: use nativesdk override with the PACKAGES_DYNAMIC statement

login
register
mail settings
Submitter Hongxu Jia
Date Dec. 3, 2013, 10:27 a.m.
Message ID <837855b3a50fc0672000e2419763a8c6ad062ae3.1386066250.git.hongxu.jia@windriver.com>
Download mbox | patch
Permalink /patch/62715/
State New
Headers show

Comments

Hongxu Jia - Dec. 3, 2013, 10:27 a.m.
While compiling nativesdk-mtools, there was failure:
...
Nothing PROVIDES 'nativesdk-glibc-gconv-ibm850'. Close matches:
...

Using nativesdk override with the PACKAGES_DYNAMIC statement fixed this issue.

[YOCTO #5623]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/recipes-core/eglibc/eglibc-locale.inc | 6 ++++++
 1 file changed, 6 insertions(+)
Richard Purdie - Dec. 3, 2013, 12:14 p.m.
On Tue, 2013-12-03 at 18:27 +0800, Hongxu Jia wrote:
> While compiling nativesdk-mtools, there was failure:
> ...
> Nothing PROVIDES 'nativesdk-glibc-gconv-ibm850'. Close matches:
> ...
> 
> Using nativesdk override with the PACKAGES_DYNAMIC statement fixed this issue.
> 
> [YOCTO #5623]
> 
> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> ---
>  meta/recipes-core/eglibc/eglibc-locale.inc | 6 ++++++
>  1 file changed, 6 insertions(+)

No.

lib/oe/classextend.py has a map_regexp_variable() function which is
called from classes/multilib.bbclass:

clsextend.map_regexp_variable("PACKAGES_DYNAMIC")

Perhaps such a line should be added to nativesdk.bbclass to fix this
properly instead?

Cheers,

Richard

> diff --git a/meta/recipes-core/eglibc/eglibc-locale.inc b/meta/recipes-core/eglibc/eglibc-locale.inc
> index 83569da..5e256a5 100644
> --- a/meta/recipes-core/eglibc/eglibc-locale.inc
> +++ b/meta/recipes-core/eglibc/eglibc-locale.inc
> @@ -35,6 +35,12 @@ PACKAGES_DYNAMIC = "^locale-base-.* \
>                      ^eglibc-gconv-.* ^eglibc-charmap-.* ^eglibc-localedata-.* ^eglibc-binary-localedata-.* \
>                      ^glibc-gconv-.*  ^glibc-charmap-.*  ^glibc-localedata-.*  ^glibc-binary-localedata-.*"
>  
> +PACKAGES_DYNAMIC_class-nativesdk = "^nativesdk-locale-base-.* \
> +                    ^nativesdk-eglibc-gconv-.* ^nativesdk-eglibc-charmap-.* \
> +                    ^nativesdk-eglibc-localedata-.* ^nativesdk-eglibc-binary-localedata-.* \
> +                    ^nativesdk-glibc-gconv-.*  ^nativesdk-glibc-charmap-.*  \
> +                    ^nativesdk-glibc-localedata-.*  ^nativesdk-glibc-binary-localedata-.*"
> +
>  # Create a eglibc-binaries package
>  ALLOW_EMPTY_${BPN}-binaries = "1"
>  PACKAGES += "${BPN}-binaries"

Patch

diff --git a/meta/recipes-core/eglibc/eglibc-locale.inc b/meta/recipes-core/eglibc/eglibc-locale.inc
index 83569da..5e256a5 100644
--- a/meta/recipes-core/eglibc/eglibc-locale.inc
+++ b/meta/recipes-core/eglibc/eglibc-locale.inc
@@ -35,6 +35,12 @@  PACKAGES_DYNAMIC = "^locale-base-.* \
                     ^eglibc-gconv-.* ^eglibc-charmap-.* ^eglibc-localedata-.* ^eglibc-binary-localedata-.* \
                     ^glibc-gconv-.*  ^glibc-charmap-.*  ^glibc-localedata-.*  ^glibc-binary-localedata-.*"
 
+PACKAGES_DYNAMIC_class-nativesdk = "^nativesdk-locale-base-.* \
+                    ^nativesdk-eglibc-gconv-.* ^nativesdk-eglibc-charmap-.* \
+                    ^nativesdk-eglibc-localedata-.* ^nativesdk-eglibc-binary-localedata-.* \
+                    ^nativesdk-glibc-gconv-.*  ^nativesdk-glibc-charmap-.*  \
+                    ^nativesdk-glibc-localedata-.*  ^nativesdk-glibc-binary-localedata-.*"
+
 # Create a eglibc-binaries package
 ALLOW_EMPTY_${BPN}-binaries = "1"
 PACKAGES += "${BPN}-binaries"