Bug 847 - LSB 4.1: absent locale packages in lsb image
Summary: LSB 4.1: absent locale packages in lsb image
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: graphics (show other bugs)
Version: 1.0
Hardware: mpc8315e-rdb Multiple
: Medium normal
Target Milestone: 1.1
Assignee: Xiaofeng Yan
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-03-10 18:38 UTC by Xiaofeng Yan
Modified: 2011-05-13 18:50 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xiaofeng Yan 2011-03-10 18:38:28 UTC
Desktop:

/tests/functions/GdkProperties/GdkProperties 21 	failed 	
Message from the test:

test case: /opt/lsb/test/desktop/gtkvts/tet_tmp_dir/08681aa/tests/functions/GdkProperties/GdkProperties, TP number: 21 
GdkProperties.c, line 879: 
gdk_utf8_to_compound_text: conversion failed!

Desktop-t2c:

/glib-t2c/tests/glib_character_set_conversion/glib_character_set_conversion	
Message from the test:

Target interface(s):
 g_get_charset
--------
FAILED CHECK in glib_character_set_conversion.c, line 12401 
 comment: Unable to change the locale 
Error: Test purpose error.
Comment 1 Xiaofeng Yan 2011-03-10 18:56:44 UTC
Add eglibc-binary-*, eglibc-charmps-*, eglibc-gconv-*, eglibc-localedata-* to task-poky-lsb.bb.

Owing to there are thousands of packages related to locale, So we can add four variables to instead of above packages.


yan@usp-ub1004-x86:/buildarea2/yxf/poky_work/poky/meta/recipes-core/eglibc$ diff -Nur eglibc-package.inc eglibc-package.inc.new
--- eglibc-package.inc	2011-03-02 17:22:43.793361064 +0800
+++ eglibc-package.inc.new	2011-03-04 13:14:25.480863298 +0800
@@ -44,6 +44,27 @@
 		    eglibc-gconv-* eglibc-charmap-* eglibc-localedata-* eglibc-binary-localedata-* \
 		    locale-base-*${PKGSUFFIX}"
 
+# Create a eglibc-binarys
+ALLOW_EMPTY_${PN}-binarys = "1"
+PACKAGES += "${PN}-binarys"
+#RRECOMMENDS_${PN}-binarys =  "${@" ".join([p for p in d.getVar('PACKAGES', True).split() if p.find("eglibc-binary") != -1 and p != "localedef"])}"
+RRECOMMENDS_${PN}-binarys =  "${@" ".join([p for p in d.getVar('PACKAGES', True).split() if p.find("eglibc-binary") != -1])}"
+
+# Create a eglibc-charmaps package 
+ALLOW_EMPTY_${PN}-charmaps = "1"
+PACKAGES += "${PN}-charmaps"
+RRECOMMENDS_${PN}-charmaps =  "${@" ".join([p for p in d.getVar('PACKAGES', True).split() if p.find("eglibc-charmap") != -1])}"
+
+# Create a eglibc-gconvs package 
+ALLOW_EMPTY_${PN}-gconvs = "1"
+PACKAGES += "${PN}-gconvs"
+RRECOMMENDS_${PN}-gconvs =  "${@" ".join([p for p in d.getVar('PACKAGES', True).split() if p.find("eglibc-gconv") != -1])}"
+
+# Create a eglibc-localedatas package 
+ALLOW_EMPTY_${PN}-localedatas = "1"
+PACKAGES += "${PN}-localesdatas"
+RRECOMMENDS_${PN}-localesdatas =  "${@" ".join([p for p in d.getVar('PACKAGES', True).split() if p.find("eglibc-localedata") != -1])}"
+
 RPROVIDES_eglibc = "glibc"
 RPROVIDES_eglibc-utils = "glibc-utils"
 RPROVIDES_eglibc-pic = "glibc-pic"
Comment 2 Mei Lei 2011-03-22 18:22:30 UTC
I think the patch you write below can resolve this bug, but it seems you havn't sent it out yet, do you have a plan to send it out recently?
(In reply to comment #1)
> Add eglibc-binary-*, eglibc-charmps-*, eglibc-gconv-*, eglibc-localedata-* to
> task-poky-lsb.bb.
> Owing to there are thousands of packages related to locale, So we can add four
> variables to instead of above packages.
> yan@usp-ub1004-x86:/buildarea2/yxf/poky_work/poky/meta/recipes-core/eglibc$
> diff -Nur eglibc-package.inc eglibc-package.inc.new
> --- eglibc-package.inc    2011-03-02 17:22:43.793361064 +0800
> +++ eglibc-package.inc.new    2011-03-04 13:14:25.480863298 +0800
> @@ -44,6 +44,27 @@
>              eglibc-gconv-* eglibc-charmap-* eglibc-localedata-*
> eglibc-binary-localedata-* \
>              locale-base-*${PKGSUFFIX}"
> +# Create a eglibc-binarys
> +ALLOW_EMPTY_${PN}-binarys = "1"
> +PACKAGES += "${PN}-binarys"
> +#RRECOMMENDS_${PN}-binarys =  "${@" ".join([p for p in d.getVar('PACKAGES',
> True).split() if p.find("eglibc-binary") != -1 and p != "localedef"])}"
> +RRECOMMENDS_${PN}-binarys =  "${@" ".join([p for p in d.getVar('PACKAGES',
> True).split() if p.find("eglibc-binary") != -1])}"
> +
> +# Create a eglibc-charmaps package 
> +ALLOW_EMPTY_${PN}-charmaps = "1"
> +PACKAGES += "${PN}-charmaps"
> +RRECOMMENDS_${PN}-charmaps =  "${@" ".join([p for p in d.getVar('PACKAGES',
> True).split() if p.find("eglibc-charmap") != -1])}"
> +
> +# Create a eglibc-gconvs package 
> +ALLOW_EMPTY_${PN}-gconvs = "1"
> +PACKAGES += "${PN}-gconvs"
> +RRECOMMENDS_${PN}-gconvs =  "${@" ".join([p for p in d.getVar('PACKAGES',
> True).split() if p.find("eglibc-gconv") != -1])}"
> +
> +# Create a eglibc-localedatas package 
> +ALLOW_EMPTY_${PN}-localedatas = "1"
> +PACKAGES += "${PN}-localesdatas"
> +RRECOMMENDS_${PN}-localesdatas =  "${@" ".join([p for p in
> d.getVar('PACKAGES', True).split() if p.find("eglibc-localedata") != -1])}"
> +
>  RPROVIDES_eglibc = "glibc"
>  RPROVIDES_eglibc-utils = "glibc-utils"
>  RPROVIDES_eglibc-pic = "glibc-pic"
Comment 3 Xiaofeng Yan 2011-03-22 18:56:31 UTC
I have pushed it to branch poky-contribute, Saul could merge it to poky in yocto 1.1

(In reply to comment #2)
> I think the patch you write below can resolve this bug, but it seems you havn't
> sent it out yet, do you have a plan to send it out recently?
> (In reply to comment #1)
> > Add eglibc-binary-*, eglibc-charmps-*, eglibc-gconv-*, eglibc-localedata-* to
> > task-poky-lsb.bb.
> > Owing to there are thousands of packages related to locale, So we can add four
> > variables to instead of above packages.
> > yan@usp-ub1004-x86:/buildarea2/yxf/poky_work/poky/meta/recipes-core/eglibc$
> > diff -Nur eglibc-package.inc eglibc-package.inc.new
> > --- eglibc-package.inc    2011-03-02 17:22:43.793361064 +0800
> > +++ eglibc-package.inc.new    2011-03-04 13:14:25.480863298 +0800
> > @@ -44,6 +44,27 @@
> >              eglibc-gconv-* eglibc-charmap-* eglibc-localedata-*
> > eglibc-binary-localedata-* \
> >              locale-base-*${PKGSUFFIX}"
> > +# Create a eglibc-binarys
> > +ALLOW_EMPTY_${PN}-binarys = "1"
> > +PACKAGES += "${PN}-binarys"
> > +#RRECOMMENDS_${PN}-binarys =  "${@" ".join([p for p in d.getVar('PACKAGES',
> > True).split() if p.find("eglibc-binary") != -1 and p != "localedef"])}"
> > +RRECOMMENDS_${PN}-binarys =  "${@" ".join([p for p in d.getVar('PACKAGES',
> > True).split() if p.find("eglibc-binary") != -1])}"
> > +
> > +# Create a eglibc-charmaps package 
> > +ALLOW_EMPTY_${PN}-charmaps = "1"
> > +PACKAGES += "${PN}-charmaps"
> > +RRECOMMENDS_${PN}-charmaps =  "${@" ".join([p for p in d.getVar('PACKAGES',
> > True).split() if p.find("eglibc-charmap") != -1])}"
> > +
> > +# Create a eglibc-gconvs package 
> > +ALLOW_EMPTY_${PN}-gconvs = "1"
> > +PACKAGES += "${PN}-gconvs"
> > +RRECOMMENDS_${PN}-gconvs =  "${@" ".join([p for p in d.getVar('PACKAGES',
> > True).split() if p.find("eglibc-gconv") != -1])}"
> > +
> > +# Create a eglibc-localedatas package 
> > +ALLOW_EMPTY_${PN}-localedatas = "1"
> > +PACKAGES += "${PN}-localesdatas"
> > +RRECOMMENDS_${PN}-localesdatas =  "${@" ".join([p for p in
> > d.getVar('PACKAGES', True).split() if p.find("eglibc-localedata") != -1])}"
> > +
> >  RPROVIDES_eglibc = "glibc"
> >  RPROVIDES_eglibc-utils = "glibc-utils"
> >  RPROVIDES_eglibc-pic = "glibc-pic"
Comment 4 Xiaofeng Yan 2011-05-13 18:50:41 UTC
locale have been merged. It can pass lsb test by test verification