summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-05-10 10:58:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-12 14:17:51 +0100
commit8331008bc5b8c97469301701e4bd899610989198 (patch)
tree696d7c60d808c309e84f51464c9536b9f1897350 /meta
parent706410c847ac9c89317d098de5d5c580736edbbb (diff)
downloadopenembedded-core-contrib-8331008bc5b8c97469301701e4bd899610989198.tar.gz
openembedded-core-contrib-8331008bc5b8c97469301701e4bd899610989198.tar.bz2
openembedded-core-contrib-8331008bc5b8c97469301701e4bd899610989198.zip
glib-2.0: fix locale handling
A bug upstream resulted in broken locale handling with the new glibc we have, so the test suite was failing. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0/fix-nl-abaltmon.patch62
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0_2.58.3.bb1
2 files changed, 63 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0/fix-nl-abaltmon.patch b/meta/recipes-core/glib-2.0/glib-2.0/fix-nl-abaltmon.patch
new file mode 100644
index 0000000000..5c1488bc41
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/glib-2.0/fix-nl-abaltmon.patch
@@ -0,0 +1,62 @@
+Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/glib/merge_requests/828]
+Signed-off-by: Ross Burton <ross.burton@intel.com>
+
+From 93d8482384ebc5c7d1f3d92b0190db0371269663 Mon Sep 17 00:00:00 2001
+From: Rafal Luzynski <digitalfreak@lingonborough.com>
+Date: Fri, 10 May 2019 00:40:27 +0200
+Subject: [PATCH] build: Fix a typo in the test whether _NL_ABALTMON_n is
+ supported
+
+The correct spelling is "_NL_ABALTMON_n" rather than "_NL_ALTMON_n".
+The typo made Meson build think that _NL_ABALTMON_n constants are
+not supported which was totally wrong. This made g_date_time_format()
+output incorrect abbreviated month names in some languages.
+The old configure.ac script was correct here.
+
+Bug introduced in commit be4f96b6502c01d2a51d60b7a669c8ef82e22a4d.
+
+Closes: #1759
+---
+ meson.build | 26 +++++++++++++-------------
+ 1 file changed, 13 insertions(+), 13 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index c5d2ce5f8..08fa40ac5 100644
+--- a/meson.build
++++ b/meson.build
+@@ -1002,20 +1002,20 @@ if cc.links('''#ifndef _GNU_SOURCE
+ #include <langinfo.h>
+ int main (int argc, char ** argv) {
+ char *str;
+- str = nl_langinfo (_NL_ALTMON_1);
+- str = nl_langinfo (_NL_ALTMON_2);
+- str = nl_langinfo (_NL_ALTMON_3);
+- str = nl_langinfo (_NL_ALTMON_4);
+- str = nl_langinfo (_NL_ALTMON_5);
+- str = nl_langinfo (_NL_ALTMON_6);
+- str = nl_langinfo (_NL_ALTMON_7);
+- str = nl_langinfo (_NL_ALTMON_8);
+- str = nl_langinfo (_NL_ALTMON_9);
+- str = nl_langinfo (_NL_ALTMON_10);
+- str = nl_langinfo (_NL_ALTMON_11);
+- str = nl_langinfo (_NL_ALTMON_12);
++ str = nl_langinfo (_NL_ABALTMON_1);
++ str = nl_langinfo (_NL_ABALTMON_2);
++ str = nl_langinfo (_NL_ABALTMON_3);
++ str = nl_langinfo (_NL_ABALTMON_4);
++ str = nl_langinfo (_NL_ABALTMON_5);
++ str = nl_langinfo (_NL_ABALTMON_6);
++ str = nl_langinfo (_NL_ABALTMON_7);
++ str = nl_langinfo (_NL_ABALTMON_8);
++ str = nl_langinfo (_NL_ABALTMON_9);
++ str = nl_langinfo (_NL_ABALTMON_10);
++ str = nl_langinfo (_NL_ABALTMON_11);
++ str = nl_langinfo (_NL_ABALTMON_12);
+ return 0;
+- }''', name : 'nl_langinfo (_NL_ALTMON_n)')
++ }''', name : 'nl_langinfo (_NL_ABALTMON_n)')
+ glib_conf.set('HAVE_LANGINFO_ABALTMON', 1)
+ endif
+
+--
+2.18.1
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.58.3.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.58.3.bb
index 733a2d46d9..d749be34ee 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.58.3.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.58.3.bb
@@ -17,6 +17,7 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
file://0001-Do-not-write-bindir-into-pkg-config-files.patch \
file://0001-meson.build-do-not-hardcode-linux-as-the-host-system.patch \
file://0001-meson-do-a-build-time-check-for-strlcpy-before-attem.patch \
+ file://fix-nl-abaltmon.patch \
file://glib-meson.cross \
"