public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* Building only localedef?
@ 2018-11-05  3:04 Samuel Mendoza-Jonas
  2018-12-04 14:50 ` Florian Weimer
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Mendoza-Jonas @ 2018-11-05  3:04 UTC (permalink / raw)
  To: libc-help; +Cc: Joel Stanley, buildroot

Hi,

Updating to glibc 2.27 introduced some changes that meant using an older
localedef binary no longer worked, which is what Buildroot does:
https://bugs.busybox.net/show_bug.cgi?id=11096

Ideally we'd like to compile localedef for the host at build time along
with everything else without also compiling a whole separate glibc but I
don't believe that's possible by default. Various projects seem to either
patch the build files or fork some version of localedef for this purpose,
eg:
https://git.pengutronix.de/cgit/ptxdist/tree/patches/localedef-glibc-2.27/0001-HACK-only-build-and-install-localedef.patch

Is there a method of compiling only localedef, or a preferred way to
implement such a change? I've messed around with the Makefiles a bit but
I'd like to check to see what the existing conventions are before
charging ahead.

Thanks for any help,
Sam

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

* Re: Building only localedef?
  2018-11-05  3:04 Building only localedef? Samuel Mendoza-Jonas
@ 2018-12-04 14:50 ` Florian Weimer
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Weimer @ 2018-12-04 14:50 UTC (permalink / raw)
  To: Samuel Mendoza-Jonas; +Cc: libc-help, Joel Stanley, buildroot

* Samuel Mendoza-Jonas:

> Is there a method of compiling only localedef, or a preferred way to
> implement such a change? I've messed around with the Makefiles a bit but
> I'd like to check to see what the existing conventions are before
> charging ahead.

There isn't a clear way to do this because localedef needs some level of
access to glibc internals (although it is fairly contained at the
moment).

Cross-building of locales is possible, they only depend on endianess.
Could you perhaps install a glibc build into a non-standard location?
Or not install it at all and use testrun.sh to run localedef?

Thanks,
Florian

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

end of thread, other threads:[~2018-12-04 14:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-05  3:04 Building only localedef? Samuel Mendoza-Jonas
2018-12-04 14:50 ` Florian Weimer

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).