public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/5] gconv module configuration improvements
@ 2021-06-07  8:52 Siddhesh Poyarekar
  2021-06-07  8:52 ` [PATCH 1/5] iconvconfig: Make file handling more general purpose Siddhesh Poyarekar
                   ` (4 more replies)
  0 siblings, 5 replies; 19+ messages in thread
From: Siddhesh Poyarekar @ 2021-06-07  8:52 UTC (permalink / raw)
  To: libc-alpha

This patchset proposes to replace the single gconv-modules file in the
GCONV_PATH directory with a gconv-modules.d directory with configuration
files suffixed with .conf to allow a single module directory to have
multiple module configurations.

The main intent of this change is to make the installation of modules
shipped in glibc more configurable.  The change allows the glibc gconv
modules to be classified into 'minimal' and 'extra' sets wherein the former
are the most commonly used converters, e.g. UTF, ISO8859-1{,5}, etc. and
the latter set constitutes everything else.

In future, the 'extra' set could could be further subdivided and mapped
to languages, allowing finer grained control in distributions over which
modules get installed.  This has a number of advantages, chief among
them being reduction in size.  There is the secondary advantage of the
possibility of reducing attack surface by removing all 'extra' modules
since many of them are not as extensively used and hence haven't had as
much testing.

The patchset has been tested in Fedora on x86_64 and s390x.

Siddhesh Poyarekar (5):
  iconvconfig: Make file handling more general purpose
  iconvconfig: Read configuration from gconv-modules.d subdirectory
  gconv_conf: Read configuration files in gconv-modules.d
  iconvdata: Move gconv-modules configuration to gconv-modules.conf
  iconvdata: Split out non-essential gconv module configuration

 iconv/gconv_conf.c                            |  49 +++++++-
 iconv/iconvconfig.c                           | 103 ++++++++++++----
 iconvdata/Makefile                            |  46 ++++---
 ...gconv-modules => gconv-modules-extra.conf} |  83 -------------
 iconvdata/gconv-modules.conf                  | 115 ++++++++++++++++++
 localedata/Makefile                           |   4 +-
 sysdeps/s390/Makefile                         |  16 ++-
 ...{gconv-modules => gconv-modules-s390.conf} |   0
 8 files changed, 280 insertions(+), 136 deletions(-)
 rename iconvdata/{gconv-modules => gconv-modules-extra.conf} (95%)
 create mode 100644 iconvdata/gconv-modules.conf
 rename sysdeps/s390/{gconv-modules => gconv-modules-s390.conf} (100%)

-- 
2.31.1


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

end of thread, other threads:[~2021-06-10 11:58 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-07  8:52 [PATCH 0/5] gconv module configuration improvements Siddhesh Poyarekar
2021-06-07  8:52 ` [PATCH 1/5] iconvconfig: Make file handling more general purpose Siddhesh Poyarekar
2021-06-08 20:53   ` DJ Delorie
2021-06-07  8:52 ` [PATCH 2/5] iconvconfig: Read configuration from gconv-modules.d subdirectory Siddhesh Poyarekar
2021-06-07  9:06   ` Andreas Schwab
2021-06-07  9:17     ` Siddhesh Poyarekar
2021-06-08 21:46   ` DJ Delorie
2021-06-07  8:52 ` [PATCH 3/5] gconv_conf: Read configuration files in gconv-modules.d Siddhesh Poyarekar
2021-06-08 23:33   ` DJ Delorie
2021-06-09  2:07   ` DJ Delorie
2021-06-07  8:52 ` [PATCH 4/5] iconvdata: Move gconv-modules configuration to gconv-modules.conf Siddhesh Poyarekar
2021-06-09  1:33   ` DJ Delorie
2021-06-10 10:23   ` Andreas Schwab
2021-06-10 11:11     ` Siddhesh Poyarekar
2021-06-10 11:24       ` Andreas Schwab
2021-06-10 11:28         ` Siddhesh Poyarekar
2021-06-10 11:58           ` Andreas Schwab
2021-06-07  8:52 ` [PATCH 5/5] iconvdata: Split out non-essential gconv module configuration Siddhesh Poyarekar
2021-06-09  2:00   ` DJ Delorie

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