package/systemd: needs any UTF-8 locale
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 4 Mar 2018 10:29:05 +0000 (11:29 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 4 Mar 2018 10:59:16 +0000 (11:59 +0100)
Not all distributions have the language-agnostic C.UTF-8 locale (Gentoo,
I'm frowning at you!).

Instead, use any UTF-8 locale provided by the system.

Reported-by: Christian Stewart <kidovate@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Cc: Julius Kriukas <julius@kriukas.lt>
Cc: Christian Stewart <kidovate@gmail.com>
Cc: Trent Piepho <tpiepho@impinj.com>
Cc: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/systemd/Config.in
package/systemd/systemd.mk

index 8978e3bac1bdd2e87bd3c031dc979ddefa3541fa..7b613df02c20f2de127487dd2b9aab30454e2c12 100644 (file)
@@ -27,7 +27,7 @@ menuconfig BR2_PACKAGE_SYSTEMD
        select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # kmod-tools
        select BR2_PACKAGE_KMOD_TOOLS
        select BR2_TARGET_TZ_INFO
-       select BR2_NEEDS_HOST_C_UTF8_LOCALE
+       select BR2_NEEDS_HOST_UTF8_LOCALE
        help
          systemd is a system and service manager for Linux,
          compatible with SysV and LSB init scripts. systemd provides
index 22384c648b4c8a04097c4d7a16b8e8006c727d4c..8c22c08dd19345c657fc67470759f7f49ab8056e 100644 (file)
@@ -387,7 +387,7 @@ endef
 
 SYSTEMD_NINJA_OPTS = $(if $(VERBOSE),-v) -j$(PARALLEL_JOBS)
 
-SYSTEMD_ENV = $(TARGET_MAKE_ENV) LANG=C.UTF-8 LC_ALL=C.UTF-8
+SYSTEMD_ENV = $(TARGET_MAKE_ENV) $(HOST_UTF8_LOCALE_ENV)
 
 define SYSTEMD_CONFIGURE_CMDS
        rm -rf $(@D)/build