* [Buildroot] [PATCH] package/glibc: install locale utility when nls is enabled
@ 2019-11-26 8:55 Pascal de Bruijn
2019-11-26 11:52 ` Thomas Petazzoni
2019-11-26 21:35 ` Peter Seiderer
0 siblings, 2 replies; 3+ messages in thread
From: Pascal de Bruijn @ 2019-11-26 8:55 UTC (permalink / raw)
To: buildroot
Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
---
package/glibc/Config.in | 2 +-
package/glibc/glibc.mk | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/package/glibc/Config.in b/package/glibc/Config.in
index 323767f..b8c2573 100644
--- a/package/glibc/Config.in
+++ b/package/glibc/Config.in
@@ -14,7 +14,7 @@ config BR2_PACKAGE_GLIBC_UTILS
depends on BR2_PACKAGE_BASH
help
Enabling this option will compile and install the getconf,
- ldconfig and ldd glibc utilities for the target.
+ ldconfig, ldd and locale glibc utilities for the target.
comment "glibc utilities need bash"
depends on !BR2_PACKAGE_BASH
diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk
index 5da0b06..e366134 100644
--- a/package/glibc/glibc.mk
+++ b/package/glibc/glibc.mk
@@ -146,7 +146,10 @@ endif
ifeq ($(BR2_PACKAGE_GLIBC_UTILS),y)
GLIBC_TARGET_UTILS_USR_BIN = posix/getconf elf/ldd
GLIBC_TARGET_UTILS_SBIN = elf/ldconfig
+endif
+ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
+GLIBC_TARGET_UTILS_USR_BIN += locale/locale
endif
define GLIBC_INSTALL_TARGET_CMDS
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/glibc: install locale utility when nls is enabled
2019-11-26 8:55 [Buildroot] [PATCH] package/glibc: install locale utility when nls is enabled Pascal de Bruijn
@ 2019-11-26 11:52 ` Thomas Petazzoni
2019-11-26 21:35 ` Peter Seiderer
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2019-11-26 11:52 UTC (permalink / raw)
To: buildroot
On Tue, 26 Nov 2019 09:55:41 +0100
Pascal de Bruijn <p.debruijn@unilogic.nl> wrote:
> Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
> ---
> package/glibc/Config.in | 2 +-
> package/glibc/glibc.mk | 3 +++
> 2 files changed, 4 insertions(+), 1 deletion(-)
Applied to next, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/glibc: install locale utility when nls is enabled
2019-11-26 8:55 [Buildroot] [PATCH] package/glibc: install locale utility when nls is enabled Pascal de Bruijn
2019-11-26 11:52 ` Thomas Petazzoni
@ 2019-11-26 21:35 ` Peter Seiderer
1 sibling, 0 replies; 3+ messages in thread
From: Peter Seiderer @ 2019-11-26 21:35 UTC (permalink / raw)
To: buildroot
Hello Pascal,
On Tue, 26 Nov 2019 09:55:41 +0100, Pascal de Bruijn <p.debruijn@unilogic.nl> wrote:
> Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
> ---
> package/glibc/Config.in | 2 +-
> package/glibc/glibc.mk | 3 +++
> 2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/package/glibc/Config.in b/package/glibc/Config.in
> index 323767f..b8c2573 100644
> --- a/package/glibc/Config.in
> +++ b/package/glibc/Config.in
> @@ -14,7 +14,7 @@ config BR2_PACKAGE_GLIBC_UTILS
> depends on BR2_PACKAGE_BASH
> help
> Enabling this option will compile and install the getconf,
> - ldconfig and ldd glibc utilities for the target.
> + ldconfig, ldd and locale glibc utilities for the target.
>
> comment "glibc utilities need bash"
> depends on !BR2_PACKAGE_BASH
> diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk
> index 5da0b06..e366134 100644
> --- a/package/glibc/glibc.mk
> +++ b/package/glibc/glibc.mk
> @@ -146,7 +146,10 @@ endif
> ifeq ($(BR2_PACKAGE_GLIBC_UTILS),y)
> GLIBC_TARGET_UTILS_USR_BIN = posix/getconf elf/ldd
> GLIBC_TARGET_UTILS_SBIN = elf/ldconfig
> +endif
>
> +ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
> +GLIBC_TARGET_UTILS_USR_BIN += locale/locale
> endif
Short question regarding your patch: Why install the locale command
only in case BR2_SYSTEM_ENABLE_NLS is enabled?
Background: The postgresql initialize startup script emits the following
warning:
performing post-bootstrap initialization ... sh: locale: not found
1970-01-01 00:10:13.173 UTC [398] WARNING: no usable system locales were found
Which can be fixed by:
- install the locale command (fixes 'sh: locale: not found')
- enabling some locales e.g. by BR2_GENERATE_LOCALE="C en_US" (fixes no usable system locales were found)
No need to enable BR2_SYSTEM_ENABLE_NLS...
Regards,
Peter
>
> define GLIBC_INSTALL_TARGET_CMDS
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-11-26 21:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26 8:55 [Buildroot] [PATCH] package/glibc: install locale utility when nls is enabled Pascal de Bruijn
2019-11-26 11:52 ` Thomas Petazzoni
2019-11-26 21:35 ` Peter Seiderer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.