freebsd-dev/usr.bin/localedef
Jessica Clarke 01d07b03ef localedef: Fix bootstrapping on Ubuntu 16.04
Glibc's stdlib.h defines various prototypes for GNU extensions that take
a locale_t. Newer versions use locale_t directly and include an internal
bits/types/locale_t.h in order to get its definition, but older versions
include xlocale.h for that, for which our bootstrap version is empty.
Moreover it expects to use the glibc-specific __locale_t type. Thus,
provide dummy definitions of both types in order to ensure the
prototypes don't give any errors, and guard against the header being
inadvertently included between the bootstrapping namespace.h and
un-namespace.h, where locale_t is #define'd.

This header is not used when bootstrapping on FreeBSD and exists solely
to stub out glibc's, so this should have no impact on FreeBSD hosts.

Reviewed by:	arichardson, emaste (comment only)
Differential Revision:	https://reviews.freebsd.org/D28317
2021-02-10 16:41:35 +00:00
..
bootstrap localedef: Fix bootstrapping on Ubuntu 16.04 2021-02-10 16:41:35 +00:00
charmap.c localedef(1): remove duplicated includes. 2018-07-09 20:38:47 +00:00
collate.c Add collation version support to querylocale(3). 2020-11-08 02:50:34 +00:00
ctype.c Allow bootstrapping localdef on non-FreeBSD systems 2020-07-15 12:07:59 +00:00
localedef.1 Add collation version support to querylocale(3). 2020-11-08 02:50:34 +00:00
localedef.c Add collation version support to querylocale(3). 2020-11-08 02:50:34 +00:00
localedef.h Add collation version support to querylocale(3). 2020-11-08 02:50:34 +00:00
Makefile Only set WARNS if not defined 2020-09-11 13:28:37 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
messages.c localedef(1): Add comment markings for license. 2017-03-10 16:12:16 +00:00
monetary.c localedef(1): Add comment markings for license. 2017-03-10 16:12:16 +00:00
numeric.c localedef(1): Add comment markings for license. 2017-03-10 16:12:16 +00:00
parser.y localedef(1): Add comment markings for license. 2017-03-10 16:12:16 +00:00
README
scanner.c localedef(1): Add comment markings for license. 2017-03-10 16:12:16 +00:00
time.c localedef(1): Add comment markings for license. 2017-03-10 16:12:16 +00:00
wide.c Mark errf _Noreturn, and mark errf and warn __printflike 2017-05-14 18:47:09 +00:00

While there are tools called "localedef" in Solaris and Linux, this
tool does not share heritage with any other implementation.  It was
written independently by Garrett D'Amore while employed at Nexenta
Systems, and thus carries the Nexenta Copyright.

It was initially released under the CDDL license, but on 4 July 2014,
Nexenta reissued the source under the BSD 2-clause license.  This
code is part of the Illumos project.

see:
https://github.com/Nexenta/illumos-nexenta/commit/cf17542a37fc83d0ae093777e30d480423858c29