glib: update to 2.72.0.
This commit is contained in:
parent
9e0b0f4e74
commit
2e7c14e9e5
@ -1,14 +1,14 @@
|
||||
--- a/gio/tests/meson.build
|
||||
+++ b/gio/tests/meson.build
|
||||
@@ -50,7 +50,6 @@ gio_tests = {
|
||||
'cancellable' : {},
|
||||
'contexts' : {},
|
||||
'contenttype' : {},
|
||||
@@ -56,7 +56,6 @@ gio_tests = {
|
||||
# FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/1392 / https://gitlab.gnome.org/GNOME/glib/-/issues/1251
|
||||
'should_fail' : host_system == 'darwin',
|
||||
},
|
||||
- 'converter-stream' : {},
|
||||
'credentials' : {},
|
||||
'data-input-stream' : {},
|
||||
'data-output-stream' : {},
|
||||
@@ -74,7 +73,6 @@ gio_tests = {
|
||||
'cxx' : {
|
||||
'source' : ['cxx.cpp'],
|
||||
@@ -91,7 +90,6 @@ gio_tests = {
|
||||
'network-monitor' : {},
|
||||
'network-monitor-race' : {},
|
||||
'permission' : {},
|
||||
@ -16,15 +16,15 @@
|
||||
'power-profile-monitor' : {},
|
||||
'proxy-test' : {},
|
||||
'readwrite' : {},
|
||||
@@ -151,7 +149,6 @@ endif
|
||||
@@ -174,7 +172,6 @@ endif
|
||||
# Test programs buildable on UNIX only
|
||||
if host_machine.system() != 'windows'
|
||||
gio_tests += {
|
||||
- 'file' : {},
|
||||
'gdbus-peer' : {
|
||||
'dependencies' : [libgdbus_example_objectmanager_dep],
|
||||
'install_rpath' : installed_tests_execdir
|
||||
@@ -737,12 +734,6 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
|
||||
'install_rpath' : installed_tests_execdir,
|
||||
@@ -798,14 +795,6 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
|
||||
test_resources_binary2,
|
||||
]
|
||||
endif
|
||||
@ -32,6 +32,8 @@
|
||||
- gio_tests += {
|
||||
- 'resources' : {
|
||||
- 'extra_sources' : resources_extra_sources,
|
||||
- # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/1392
|
||||
- 'should_fail' : host_system == 'darwin',
|
||||
- },
|
||||
- }
|
||||
endif
|
||||
@ -39,29 +41,33 @@
|
||||
foreach test_name, extra_args : gio_tests
|
||||
--- a/glib/tests/meson.build
|
||||
+++ b/glib/tests/meson.build
|
||||
@@ -11,21 +11,14 @@ glib_tests = {
|
||||
@@ -11,25 +11,17 @@ glib_tests = {
|
||||
'cache' : {},
|
||||
'charset' : {},
|
||||
'checksum' : {},
|
||||
- 'collate' : {},
|
||||
'completion' : {},
|
||||
'cond' : {},
|
||||
- 'convert' : {},
|
||||
'cxx' : {
|
||||
'source' : ['cxx.cpp'],
|
||||
},
|
||||
'dataset' : {},
|
||||
- 'date' : {},
|
||||
'dir' : {},
|
||||
'environment' : {},
|
||||
- 'error' : {},
|
||||
'fileutils' : {},
|
||||
- 'gdatetime' : {
|
||||
- 'suite' : ['slow'],
|
||||
- 'date' : {
|
||||
- # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/1392
|
||||
- 'should_fail' : host_system == 'darwin',
|
||||
- },
|
||||
'guuid' : {},
|
||||
'gvariant' : {
|
||||
'dir' : {},
|
||||
'environment' : {
|
||||
# FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/1392
|
||||
'should_fail' : host_system == 'darwin',
|
||||
},
|
||||
- 'error' : {},
|
||||
- 'fileutils' : {},
|
||||
'gdatetime' : {
|
||||
'suite' : ['slow'],
|
||||
@@ -57,7 +50,6 @@ glib_tests = {
|
||||
},
|
||||
@@ -65,7 +57,6 @@ glib_tests = {
|
||||
'mutex' : {},
|
||||
'node' : {},
|
||||
'once' : {},
|
||||
@ -69,11 +75,3 @@
|
||||
'option-argv0' : {},
|
||||
'overflow' : {},
|
||||
'overflow-fallback' : {
|
||||
@@ -102,7 +94,6 @@ glib_tests = {
|
||||
'thread' : {},
|
||||
'thread-pool' : {},
|
||||
'timeout' : {},
|
||||
- 'timer' : {},
|
||||
'tree' : {},
|
||||
'utf8-performance' : {},
|
||||
'utf8-pointer' : {},
|
||||
|
@ -1,86 +0,0 @@
|
||||
From: =?UTF-8?q?=C3=89rico=20Nogueira?= <erico.erc@gmail.com>
|
||||
[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
|
||||
|
@ -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 <gottox@voidlinux.org>"
|
||||
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user