summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-09-07 22:32:41 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-11 16:04:35 +0100
commitad48f96a88f2068e91d0e293860e5f46ec55ba57 (patch)
tree6c2f106617c120b0087344829fc8f3f170934232
parent61531cd3956c56644fc1c4cc77f130e60db1a771 (diff)
downloadpoky-ad48f96a88f2068e91d0e293860e5f46ec55ba57.tar.gz
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>
-rw-r--r--meta/recipes-devtools/perl/perl_5.38.0.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl_5.38.0.bb b/meta/recipes-devtools/perl/perl_5.38.0.bb
index 2103a39dfa..a8623b6e84 100644
--- a/meta/recipes-devtools/perl/perl_5.38.0.bb
+++ b/meta/recipes-devtools/perl/perl_5.38.0.bb
@@ -38,8 +38,10 @@ DEPENDS += "make-native"
38PERL_LIB_VER = "${@'.'.join(d.getVar('PV').split('.')[0:2])}.0" 38PERL_LIB_VER = "${@'.'.join(d.getVar('PV').split('.')[0:2])}.0"
39 39
40PACKAGECONFIG ??= "gdbm" 40PACKAGECONFIG ??= "gdbm"
41PACKAGECONFIG:append:libc-musl = " anylocale"
41PACKAGECONFIG[bdb] = ",-Ui_db,db" 42PACKAGECONFIG[bdb] = ",-Ui_db,db"
42PACKAGECONFIG[gdbm] = ",-Ui_gdbm,gdbm" 43PACKAGECONFIG[gdbm] = ",-Ui_gdbm,gdbm"
44PACKAGECONFIG[anylocale] = "-Dd_setlocale_accepts_any_locale_name=define,,"
43 45
44# Don't generate comments in enc2xs output files. They are not reproducible 46# Don't generate comments in enc2xs output files. They are not reproducible
45export ENC2XS_NO_COMMENTS = "1" 47export ENC2XS_NO_COMMENTS = "1"