diff mbox series

[1/3] systemd: Handle USE_NLS

Message ID 20250815130440.1402632-1-philip.lorenz@bmw.de
State New
Headers show
Series [1/3] systemd: Handle USE_NLS | expand

Commit Message

Philip Lorenz Aug. 15, 2025, 1:04 p.m. UTC
Do not build translations when NLS is disabled.

Signed-off-by: Philip Lorenz <philip.lorenz@bmw.de>
---
 meta/recipes-core/systemd/systemd_257.8.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/recipes-core/systemd/systemd_257.8.bb b/meta/recipes-core/systemd/systemd_257.8.bb
index adc27f6cff1..174372be03c 100644
--- a/meta/recipes-core/systemd/systemd_257.8.bb
+++ b/meta/recipes-core/systemd/systemd_257.8.bb
@@ -249,6 +249,7 @@  EXTRA_OEMESON += "-Dnobody-user=nobody \
                   -Dsystem-uid-max=999 \
                   -Dsystem-alloc-gid-min=101 \
                   -Dsystem-gid-max=999 \
+                  -Dtranslations=${@'false' if d.getVar('USE_NLS') == 'no' else 'true'} \
                   ${@bb.utils.contains('DISTRO_FEATURES', 'zeroconf', '-Ddefault-mdns=no -Ddefault-llmnr=no', '', d)} \
                   -Ddbus=disabled \
                   "