]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
perl: Add packageconfig for setlocale functionality differences
authorKhem Raj <raj.khem@gmail.com>
Fri, 8 Sep 2023 05:32:41 +0000 (22:32 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Sep 2023 15:04:11 +0000 (16:04 +0100)
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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-devtools/perl/perl_5.38.0.bb

index 2103a39dfa487b46d2e717151bd5f0351367e097..a8623b6e84b9dc52dfd549ece5722fa92133dc21 100644 (file)
@@ -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"