mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
perl: Add packageconfig for setlocale functionality differences
setlocale behavior with 'missing' locales is different when using musl [1] which confuses perl locale tests and perl thinks it has locale on system while there are none. Therefore pass correct property on musl regarding setlocale behaviour [1] https://musl.openwall.narkive.com/kO1vpTWJ/setlocale-behavior-with-missing-locales (From OE-Core rev: e9e22c74d0544271f3e43c67fbf95f2e68400da0) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -38,8 +38,10 @@ DEPENDS += "make-native"
|
||||
PERL_LIB_VER = "${@'.'.join(d.getVar('PV').split('.')[0:2])}.0"
|
||||
|
||||
PACKAGECONFIG ??= "gdbm"
|
||||
PACKAGECONFIG:append:libc-musl = " anylocale"
|
||||
PACKAGECONFIG[bdb] = ",-Ui_db,db"
|
||||
PACKAGECONFIG[gdbm] = ",-Ui_gdbm,gdbm"
|
||||
PACKAGECONFIG[anylocale] = "-Dd_setlocale_accepts_any_locale_name=define,,"
|
||||
|
||||
# Don't generate comments in enc2xs output files. They are not reproducible
|
||||
export ENC2XS_NO_COMMENTS = "1"
|
||||
|
||||
Reference in New Issue
Block a user