public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Problem with glibc-locale recipe in yocto after the generic C.UTF-8 locale were introduced in glibc
@ 2021-10-13 20:47 Lukasz Majewski
  2021-10-13 20:56 ` Joseph Myers
  0 siblings, 1 reply; 3+ messages in thread
From: Lukasz Majewski @ 2021-10-13 20:47 UTC (permalink / raw)
  To: Carlos O'Donell via Libc-alpha
  Cc: libc-alpha, Florian Weimer,
	Patches and discussions about the oe-core layer, Khem Raj

[-- Attachment #1: Type: text/plain, Size: 1581 bytes --]

Hi Carlos,

I would like to report that the commit:
https://sourceware.org/git/?p=glibc.git;a=commit;h=466f2be6c08070e9113ae2fdc7acd5d8828cba50
"Add generic C.UTF-8 locale (Bug 17318)"

causes some issues with Yocto/OE build environment, when glibc-locale
are build.

PATH="/home/lukma/work/yocto/y2038/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/lukma/work/yocto/y2038/poky/scripts:/home/lukma/work/yocto/y2038/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc-locale/2.34-r0/recipe-sys$
/home/lukma/work/yocto/y2038/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc-locale/2.34-r0/locale-tree//usr/share/i18n/locales/C:60:
LC_COLLATE: syntax error
/home/lukma/work/yocto/y2038/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc-locale/2.34-r0/locale-tree//usr/share/i18n/locales/C:61:
LC_COLLATE: empty category description not allowed [error] too many
errors; giving up


From the patch description I've deduced that this change requires some
"ground" work/support for C.UTF-8 locales in the downstream distros.

Apparently poky from newest master (SHA1:
1e2e9a84d6dd81d7f6dd69c0d119d0149d10ade1) doesn't provide necessary
tools/code.

Carlos, do you have any idea what may be missing to make the OE/Yocto
build the glibc-locale again?

Thanks in advance.


Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem with glibc-locale recipe in yocto after the generic C.UTF-8 locale were introduced in glibc
  2021-10-13 20:47 Problem with glibc-locale recipe in yocto after the generic C.UTF-8 locale were introduced in glibc Lukasz Majewski
@ 2021-10-13 20:56 ` Joseph Myers
  2021-10-18 14:43   ` Carlos O'Donell
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph Myers @ 2021-10-13 20:56 UTC (permalink / raw)
  To: Lukasz Majewski
  Cc: Carlos O'Donell via Libc-alpha, Florian Weimer,
	Patches and discussions about the oe-core layer

On Wed, 13 Oct 2021, Lukasz Majewski wrote:

> Hi Carlos,
> 
> I would like to report that the commit:
> https://sourceware.org/git/?p=glibc.git;a=commit;h=466f2be6c08070e9113ae2fdc7acd5d8828cba50
> "Add generic C.UTF-8 locale (Bug 17318)"
> 
> causes some issues with Yocto/OE build environment, when glibc-locale
> are build.
> 
> PATH="/home/lukma/work/yocto/y2038/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/lukma/work/yocto/y2038/poky/scripts:/home/lukma/work/yocto/y2038/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc-locale/2.34-r0/recipe-sys$
> /home/lukma/work/yocto/y2038/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc-locale/2.34-r0/locale-tree//usr/share/i18n/locales/C:60:
> LC_COLLATE: syntax error
> /home/lukma/work/yocto/y2038/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc-locale/2.34-r0/locale-tree//usr/share/i18n/locales/C:61:
> LC_COLLATE: empty category description not allowed [error] too many
> errors; giving up

Yocto does its own funny things for cross-localedef.  Are you sure that's 
using the same localedef sources as in the glibc version being built / has 
been updated as necessary for the localedef changes involved in adding 
C.UTF-8?

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem with glibc-locale recipe in yocto after the generic C.UTF-8 locale were introduced in glibc
  2021-10-13 20:56 ` Joseph Myers
@ 2021-10-18 14:43   ` Carlos O'Donell
  0 siblings, 0 replies; 3+ messages in thread
From: Carlos O'Donell @ 2021-10-18 14:43 UTC (permalink / raw)
  To: Joseph Myers, Lukasz Majewski
  Cc: Florian Weimer, Carlos O'Donell via Libc-alpha,
	Patches and discussions about the oe-core layer

On 10/13/21 16:56, Joseph Myers wrote:
> On Wed, 13 Oct 2021, Lukasz Majewski wrote:
> 
>> Hi Carlos,
>>
>> I would like to report that the commit:
>> https://sourceware.org/git/?p=glibc.git;a=commit;h=466f2be6c08070e9113ae2fdc7acd5d8828cba50
>> "Add generic C.UTF-8 locale (Bug 17318)"
>>
>> causes some issues with Yocto/OE build environment, when glibc-locale
>> are build.
>>
>> PATH="/home/lukma/work/yocto/y2038/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/lukma/work/yocto/y2038/poky/scripts:/home/lukma/work/yocto/y2038/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc-locale/2.34-r0/recipe-sys$
>> /home/lukma/work/yocto/y2038/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc-locale/2.34-r0/locale-tree//usr/share/i18n/locales/C:60:
>> LC_COLLATE: syntax error
>> /home/lukma/work/yocto/y2038/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/glibc-locale/2.34-r0/locale-tree//usr/share/i18n/locales/C:61:
>> LC_COLLATE: empty category description not allowed [error] too many
>> errors; giving up
> 
> Yocto does its own funny things for cross-localedef.  Are you sure that's 
> using the same localedef sources as in the glibc version being built / has 
> been updated as necessary for the localedef changes involved in adding 
> C.UTF-8?
 
I agree this looks like you used an older localedef that doesn't support 'codepoint_collation'
as a new directive to enable C.UTF-8 with zero collation rules (strcmp/wcscmp sorting).

This is the error I get when I use glibc 2.33 to compile the glibc 2.34 C.UTF-8:

[carlos@athas glibc-rawhide]$ LOCPATH=/home/carlos/install/glibc-pristine/usr/lib64/locale I18NPATH=/home/carlos/src/glibc-pristine/localedata/ localedef -f UTF-8 -i C /home/carlos/install/glibc-pristine/usr/lib64/locale/C.UTF-8
/home/carlos/src/glibc-pristine/localedata//locales/C:60: LC_COLLATE: syntax error
/home/carlos/src/glibc-pristine/localedata//locales/C:61: LC_COLLATE: empty category description not allowed
[error] too many errors; giving up
[carlos@athas glibc-rawhide]$ echo $?
1

Which is exactly what is expected. We have a new directive and you must use the new localedef
to compiled the new locale.

-- 
Cheers,
Carlos.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-18 14:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13 20:47 Problem with glibc-locale recipe in yocto after the generic C.UTF-8 locale were introduced in glibc Lukasz Majewski
2021-10-13 20:56 ` Joseph Myers
2021-10-18 14:43   ` Carlos O'Donell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).