Page MenuHomeFreeBSD

libc: Move NLS catalogues to the locales packages
ClosedPublic

Authored by ivy on Fri, Oct 3, 11:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 8:03 PM
Unknown Object (File)
Thu, Oct 9, 8:03 PM
Unknown Object (File)
Thu, Oct 9, 8:03 PM
Unknown Object (File)
Thu, Oct 9, 8:03 PM
Unknown Object (File)
Thu, Oct 9, 5:19 PM
Unknown Object (File)
Sun, Oct 5, 6:55 PM
Unknown Object (File)
Sun, Oct 5, 3:07 PM
Unknown Object (File)
Sun, Oct 5, 11:53 AM

Details

Summary

We don't want to put these in clibs (where libc is) since they are not
critical to system operation. Move them to locales, since anyone who
is interested in translated versions of strerror() is going to have
that installed anyway.

MFC after: 30 deciseconds

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ivy requested review of this revision.Fri, Oct 3, 11:12 PM
This revision is now accepted and ready to land.Sat, Oct 4, 5:55 AM
lib/libc/nls/Makefile.inc
18

How this variable supposed to work? I looked for it in non-patched sources and did not found any mention.

lib/libc/nls/Makefile.inc
18

${NLS} is implemented as a files group in bsd.nls.mk:

FILESGROUPS?=   FILES
FILESGROUPS+=   NLS
NLSDIR?=        ${SHAREDIR}/nls

this means we can use all the per-group variables supported by bsd.files.mk, including ${<groupname>PACKAGE}, which in this case happens to expand to ${NLSPACKAGE}.

kib added inline comments.
lib/libc/nls/Makefile.inc
18

Never heard about this feature/obfuscation.
Thanks.

This revision now requires review to proceed.Sat, Oct 4, 3:33 PM
This revision is now accepted and ready to land.Sun, Oct 5, 2:32 AM