Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCHv2 0/6] gettext improvements
@ 2014-06-01 20:23 Thomas Petazzoni
  2014-06-01 20:23 ` [Buildroot] [PATCHv2 1/6] minidlna: do not select BR2_PACKAGE_GETTEXT_TOOLS Thomas Petazzoni
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Thomas Petazzoni @ 2014-06-01 20:23 UTC (permalink / raw)
  To: buildroot

Hello,

This patch series is an extension of the gettext/host-gettext speedup
patch series sent previously.

The first three patches are almost identical, with just a few minor
changes:

 - Improved the prompt of the Config.in.legacy option in "gettext:
   remove support for gettext-tools on target", as suggested by Thomas
   DS.
 - Remove the --disable-tools option from gettext configure options,
   as suggested by Baruch.
 - Add Tested-by tags from Andrew Ruder

Those first three patches can be applied without looking at the last
three patches, which are not directly related.

The last three patches fix a situation that our gettext handling was
not handling. We were assuming that gettext was *never* necessary for
glibc-based builds. However, it turns out that certain programs (for
example ecryptfs-utils) need the 'gettext' binary program on the
target to get translated strings. It is used in shell scripts in
ecryptfs-utils. This was reported at
https://bugs.busybox.net/show_bug.cgi?id=7136 and discussed on IRC
with the bug submitter, who tested the proposed patches and confirmed
that they work.

The approach is to allow the gettext package to be built even with
glibc toolchains. In this case, the gettext-runtime configure script
detects that it's not necessary to build libintl, and therefore only
the gettext utilities are built and installed on the target. Of
course, only packages that need this will select gettext
unconditionally (i.e without depending on BR2_NEEDS_GETTEXT or
BR2_NEEDS_GETTEXT_IF_LOCALE). This is a quite sensitive change, but I
believe it's good to do it early in the development cycle.

Thomas

Thomas Petazzoni (6):
  minidlna: do not select BR2_PACKAGE_GETTEXT_TOOLS
  gettext: remove support for gettext-tools on target
  gettext: optimize build time
  gettext: allow building when BR2_NEEDS_GETTEXT is not selected
  ecryptfs-utils: select gettext, needed for command line utilities
  docs/manual: update documentation about gettext handling

 Config.in.legacy                                   | 12 +++++++
 docs/manual/adding-packages-gettext.txt            | 22 +++++++++---
 package/ecryptfs-utils/Config.in                   |  8 +++--
 package/gettext/Config.in                          | 15 --------
 .../gettext-03-option-to-disable-tools.patch       | 42 ----------------------
 .../gettext/gettext-04-remove-examples-tests.patch | 20 -----------
 package/gettext/gettext.mk                         | 30 ++++++++--------
 package/minidlna/Config.in                         |  1 -
 8 files changed, 52 insertions(+), 98 deletions(-)
 delete mode 100644 package/gettext/gettext-03-option-to-disable-tools.patch
 delete mode 100644 package/gettext/gettext-04-remove-examples-tests.patch

-- 
1.9.3

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

end of thread, other threads:[~2014-06-08 22:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-01 20:23 [Buildroot] [PATCHv2 0/6] gettext improvements Thomas Petazzoni
2014-06-01 20:23 ` [Buildroot] [PATCHv2 1/6] minidlna: do not select BR2_PACKAGE_GETTEXT_TOOLS Thomas Petazzoni
2014-06-02 20:29   ` Bernd Kuhls
2014-06-08 20:55   ` Yann E. MORIN
2014-06-01 20:23 ` [Buildroot] [PATCHv2 2/6] gettext: remove support for gettext-tools on target Thomas Petazzoni
2014-06-08 21:27   ` Yann E. MORIN
2014-06-01 20:23 ` [Buildroot] [PATCHv2 3/6] gettext: optimize build time Thomas Petazzoni
2014-06-08 22:26   ` Yann E. MORIN
2014-06-01 20:23 ` [Buildroot] [PATCHv2 4/6] gettext: allow building when BR2_NEEDS_GETTEXT is not selected Thomas Petazzoni
2014-06-01 20:23 ` [Buildroot] [PATCHv2 5/6] ecryptfs-utils: select gettext, needed for command line utilities Thomas Petazzoni
2014-06-01 20:23 ` [Buildroot] [PATCHv2 6/6] docs/manual: update documentation about gettext handling Thomas Petazzoni
2014-06-02  5:50   ` Thomas De Schampheleire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox