From 5679890338be53ad88971a1eb1f7b1cd42cd4679 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Fri, 25 Mar 2022 21:58:04 +0100 Subject: [PATCH] glib: update to 2.72.0. --- srcpkgs/glib/patches/fix-formatd.patch | 86 -------------------------- srcpkgs/glib/template | 6 +- 2 files changed, 3 insertions(+), 89 deletions(-) delete mode 100644 srcpkgs/glib/patches/fix-formatd.patch diff --git a/srcpkgs/glib/patches/fix-formatd.patch b/srcpkgs/glib/patches/fix-formatd.patch deleted file mode 100644 index 2249ff5a4506..000000000000 --- a/srcpkgs/glib/patches/fix-formatd.patch +++ /dev/null @@ -1,86 +0,0 @@ -From: =?UTF-8?q?=C3=89rico=20Nogueira?= -[PATCH] gstrfuncs: don't require nonstandard functions for USE_XLOCALE. - -Make it so USE_XLOCALE is set whenever newlocale() and uselocale() are -available. This way, we can still use the _g_snprintf() path for some -functions, and also use the *_l functions when they are available. - -newlocale(3) are uselocale(3) part of POSIX 2008, while the *_l -functions being used are nonstandard glibc extensions. Gating all the -locale functionality behind them meant we were using fallbacks on non -glibc platforms unnecessarily. - -Further changes to this code could add fallback for the non _l suffixed -number parsing functions, but that might be unnecessary complexity. - -Fixes #2553 ---- - glib/gstrfuncs.c | 17 +++++++---------- - 1 file changed, 7 insertions(+), 10 deletions(-) - -diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c -index ea710c7a1..e486251ab 100644 ---- a/glib/gstrfuncs.c -+++ b/glib/gstrfuncs.c -@@ -317,11 +317,8 @@ static const guint16 ascii_table_data[256] = { - - const guint16 * const g_ascii_table = ascii_table_data; - --#if defined (HAVE_NEWLOCALE) && \ -- defined (HAVE_USELOCALE) && \ -- defined (HAVE_STRTOD_L) && \ -- defined (HAVE_STRTOULL_L) && \ -- defined (HAVE_STRTOLL_L) -+#if defined(HAVE_NEWLOCALE) && \ -+ defined(HAVE_USELOCALE) - #define USE_XLOCALE 1 - #endif - -@@ -731,7 +728,7 @@ gdouble - g_ascii_strtod (const gchar *nptr, - gchar **endptr) - { --#ifdef USE_XLOCALE -+#if defined(USE_XLOCALE) && defined(HAVE_STRTOD_L) - - g_return_val_if_fail (nptr != NULL, 0); - -@@ -1044,7 +1041,7 @@ g_ascii_formatd (gchar *buffer, - #define TOUPPER(c) (ISLOWER (c) ? (c) - 'a' + 'A' : (c)) - #define TOLOWER(c) (ISUPPER (c) ? (c) - 'A' + 'a' : (c)) - --#ifndef USE_XLOCALE -+#if !defined(USE_XLOCALE) || !defined(HAVE_STRTOULL_L) || !defined(HAVE_STRTOLL_L) - - static guint64 - g_parse_long_long (const gchar *nptr, -@@ -1169,7 +1166,7 @@ g_parse_long_long (const gchar *nptr, - } - return 0; - } --#endif /* !USE_XLOCALE */ -+#endif /* !defined(USE_XLOCALE) || !defined(HAVE_STRTOULL_L) || !defined(HAVE_STRTOLL_L) */ - - /** - * g_ascii_strtoull: -@@ -1210,7 +1207,7 @@ g_ascii_strtoull (const gchar *nptr, - gchar **endptr, - guint base) - { --#ifdef USE_XLOCALE -+#if defined(USE_XLOCALE) && defined(HAVE_STRTOULL_L) - return strtoull_l (nptr, endptr, base, get_C_locale ()); - #else - gboolean negative; -@@ -1257,7 +1254,7 @@ g_ascii_strtoll (const gchar *nptr, - gchar **endptr, - guint base) - { --#ifdef USE_XLOCALE -+#if defined(USE_XLOCALE) && defined(HAVE_STRTOLL_L) - return strtoll_l (nptr, endptr, base, get_C_locale ()); - #else - gboolean negative; --- -2.34.1 - diff --git a/srcpkgs/glib/template b/srcpkgs/glib/template index 0cd7eee4f698..d301dadb8990 100644 --- a/srcpkgs/glib/template +++ b/srcpkgs/glib/template @@ -1,6 +1,6 @@ # Template file for 'glib' pkgname=glib -version=2.70.2 +version=2.72.0 revision=1 build_style=meson # static version is necessary for qemu-user-static; @@ -15,9 +15,9 @@ maintainer="Enno Boland " license="LGPL-2.1-or-later" homepage="https://wiki.gnome.org/Projects/GLib" #changelog="https://gitlab.gnome.org/GNOME/glib/raw/main/NEWS" -changelog="https://gitlab.gnome.org/GNOME/glib/raw/glib-2-70/NEWS" +changelog="https://gitlab.gnome.org/GNOME/glib/raw/glib-2-72/NEWS" distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz" -checksum=0551459c85cd3da3d58ddc9016fd28be5af503f5e1615a71ba5b512ac945806f +checksum=d7bef0d4c4e7a62e08efb8e5f252a01357007b9588a87ff2b463a3857011f79d build_options="gtk_doc" desc_option_gtk_doc="Build GTK API docs"