Skip to contentSkip to conversation

meson: don't pass localedir

PATCH In review Ross Burton 2 participants 3 messages Jun 5, 2017 – Jun 6, 2017 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: don't pass localedir

For historic reasons the localedir directory is where binary locales are stored (/usr/lib/locale) , not where application translations belong (typically, /usr/share/locale). Don't pass localedir explicitly, and let Meson use the default of $datadir/locale to match the behaviour of autotools.bbclass and the expectations of the system.

---
 meta-oe/classes/meson.bbclass | 1 -
 1 file changed, 1 deletion(-)
meta-oe/classes/meson.bbclass +0 -1
index 0cf78e4..54b984f 100644
@@ -27,7 +27,6 @@ MESONOPTS = " --prefix ${prefix} \
               --libexecdir ${@noprefix('libexecdir', d)} \
               --includedir ${@noprefix('includedir', d)} \
               --mandir ${@noprefix('mandir', d)} \
-              --localedir ${@noprefix('localedir', d)} \
               --sysconfdir ${sysconfdir}"
 
 MESON_C_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
Signature · 1 line
2.8.1
#1 lore raw
Quoted 10 lines · Ross Burton

For historic reasons the localedir directory is where binary locales are stored
(/usr/lib/locale) , not where application translations belong (typically, /usr/share/locale). Don't pass localedir explicitly, and let Meson use the default of $datadir/locale to match the behaviour of autotools.bbclass and the
expectations of the system.

Maybe we should think about renaming that variable for clarity.

Signature · 4 lines
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Senior Software Engineer, Mentor Graphics
#2 lore raw
Quoted 2 lines · Christopher Larson

Maybe we should think about renaming that variable for clarity.

Yes. Not sure what to though.

Ross