mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
glib: update to 2.74.0.
This commit is contained in:
parent
41ce1421fd
commit
81ff41ba61
4 changed files with 112 additions and 31 deletions
|
@ -6,25 +6,17 @@
|
||||||
},
|
},
|
||||||
- 'converter-stream' : {},
|
- 'converter-stream' : {},
|
||||||
'credentials' : {},
|
'credentials' : {},
|
||||||
'cxx' : {
|
'data-input-stream' : {},
|
||||||
'source' : ['cxx.cpp'],
|
'data-output-stream' : {},
|
||||||
@@ -91,7 +90,6 @@ gio_tests = {
|
@@ -198,7 +197,6 @@ endif
|
||||||
'network-monitor' : {},
|
|
||||||
'network-monitor-race' : {},
|
|
||||||
'permission' : {},
|
|
||||||
- 'pollable' : {'dependencies' : [libdl_dep]},
|
|
||||||
'power-profile-monitor' : {},
|
|
||||||
'proxy-test' : {},
|
|
||||||
'readwrite' : {},
|
|
||||||
@@ -174,7 +172,6 @@ endif
|
|
||||||
# Test programs buildable on UNIX only
|
# Test programs buildable on UNIX only
|
||||||
if host_machine.system() != 'windows'
|
if host_machine.system() != 'windows'
|
||||||
gio_tests += {
|
gio_tests += {
|
||||||
- 'file' : {},
|
- 'file' : {},
|
||||||
'gdbus-peer' : {
|
'gdbus-peer-object-manager' : {},
|
||||||
'dependencies' : [libgdbus_example_objectmanager_dep],
|
'gdbus-sasl' : {},
|
||||||
'install_rpath' : installed_tests_execdir,
|
'live-g-file' : {},
|
||||||
@@ -798,14 +795,6 @@ if not meson.is_cross_build() or meson.has_exe_wrapper()
|
@@ -814,14 +812,6 @@ if meson.can_run_host_binaries()
|
||||||
test_resources_binary2,
|
test_resources_binary2,
|
||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
|
@ -39,9 +31,11 @@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
foreach test_name, extra_args : gio_tests
|
foreach test_name, extra_args : gio_tests
|
||||||
|
diff --git a/glib/tests/meson.build b/glib/tests/meson.build
|
||||||
|
index d74617823..1de81a825 100644
|
||||||
--- a/glib/tests/meson.build
|
--- a/glib/tests/meson.build
|
||||||
+++ b/glib/tests/meson.build
|
+++ b/glib/tests/meson.build
|
||||||
@@ -11,25 +11,17 @@ glib_tests = {
|
@@ -11,22 +11,14 @@ glib_tests = {
|
||||||
'cache' : {},
|
'cache' : {},
|
||||||
'charset' : {},
|
'charset' : {},
|
||||||
'checksum' : {},
|
'checksum' : {},
|
||||||
|
@ -49,9 +43,6 @@
|
||||||
'completion' : {},
|
'completion' : {},
|
||||||
'cond' : {},
|
'cond' : {},
|
||||||
- 'convert' : {},
|
- 'convert' : {},
|
||||||
'cxx' : {
|
|
||||||
'source' : ['cxx.cpp'],
|
|
||||||
},
|
|
||||||
'dataset' : {},
|
'dataset' : {},
|
||||||
- 'date' : {
|
- 'date' : {
|
||||||
- # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/1392
|
- # FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/1392
|
||||||
|
@ -68,9 +59,9 @@
|
||||||
'suite' : ['slow'],
|
'suite' : ['slow'],
|
||||||
},
|
},
|
||||||
@@ -65,7 +57,6 @@ glib_tests = {
|
@@ -65,7 +57,6 @@ glib_tests = {
|
||||||
'mutex' : {},
|
|
||||||
'node' : {},
|
'node' : {},
|
||||||
'once' : {},
|
'once' : {},
|
||||||
|
'onceinit' : {},
|
||||||
- 'option-context' : {},
|
- 'option-context' : {},
|
||||||
'option-argv0' : {},
|
'option-argv0' : {},
|
||||||
'overflow' : {},
|
'overflow' : {},
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
This fixes segfault when editing color of text in gimp.
|
||||||
|
|
||||||
|
From ea3f17d598d550345e94e4571130e429443e91cb Mon Sep 17 00:00:00 2001
|
||||||
|
From: Emmanuele Bassi <ebassi@gnome.org>
|
||||||
|
Date: Sun, 25 Sep 2022 14:20:24 +0100
|
||||||
|
Subject: [PATCH] Empty values are not valid GParamSpec
|
||||||
|
|
||||||
|
The validate() vfunc for GParamSpecParam returns FALSE for empty GValue,
|
||||||
|
which means the is_valid() vfunc should do the same.
|
||||||
|
|
||||||
|
This avoids a segfault when calling g_param_value_is_valid() on a
|
||||||
|
GParamSpecParam.
|
||||||
|
|
||||||
|
Fixes: #2770
|
||||||
|
---
|
||||||
|
gobject/gparamspecs.c | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/gobject/gparamspecs.c b/gobject/gparamspecs.c
|
||||||
|
index f17b3488b9..17b8606572 100644
|
||||||
|
--- a/gobject/gparamspecs.c
|
||||||
|
+++ b/gobject/gparamspecs.c
|
||||||
|
@@ -894,6 +894,9 @@ param_param_is_valid (GParamSpec *pspec,
|
||||||
|
{
|
||||||
|
GParamSpec *param = value->data[0].v_pointer;
|
||||||
|
|
||||||
|
+ if (param == NULL)
|
||||||
|
+ return FALSE;
|
||||||
|
+
|
||||||
|
return g_value_type_compatible (G_PARAM_SPEC_TYPE (param), G_PARAM_SPEC_VALUE_TYPE (pspec));
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
|
|
50
srcpkgs/glib/patches/test-error-musl.patch
Normal file
50
srcpkgs/glib/patches/test-error-musl.patch
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
From 902ba0bc0db50ede3473af576bddd2b6a2f9e326 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michal Vasilek <michal@vasilek.cz>
|
||||||
|
Date: Sun, 18 Sep 2022 17:30:41 +0200
|
||||||
|
Subject: [PATCH] tests: Only run g_error_new_valist() programmer error test on
|
||||||
|
glibc
|
||||||
|
|
||||||
|
The musl implementation of vasprintf segfaults with NULL
|
||||||
|
---
|
||||||
|
glib/tests/error.c | 18 +++++++++---------
|
||||||
|
1 file changed, 9 insertions(+), 9 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/glib/tests/error.c b/glib/tests/error.c
|
||||||
|
index 7ea04ea3ce..fa3a25969d 100644
|
||||||
|
--- a/glib/tests/error.c
|
||||||
|
+++ b/glib/tests/error.c
|
||||||
|
@@ -123,12 +123,12 @@ static void
|
||||||
|
test_new_valist_invalid_va (gpointer dummy,
|
||||||
|
...)
|
||||||
|
{
|
||||||
|
-#ifdef __linux__
|
||||||
|
- /* Only worth testing this on Linux; if other platforms regress on this legacy
|
||||||
|
- * behaviour, we don’t care. In particular, calling g_error_new_valist() with
|
||||||
|
- * a %NULL format will crash on FreeBSD as its implementation of vasprintf()
|
||||||
|
- * is less forgiving than Linux’s. That’s fine: it’s a programmer error in
|
||||||
|
- * either case. */
|
||||||
|
+#if defined(__linux__) && defined(__GLIBC__)
|
||||||
|
+ /* Only worth testing this on Linux with glibc; if other platforms regress on
|
||||||
|
+ * this legacy behaviour, we don’t care. In particular, calling
|
||||||
|
+ * g_error_new_valist() with a %NULL format will crash on FreeBSD as its
|
||||||
|
+ * implementation of vasprintf() is less forgiving than Linux’s. That’s
|
||||||
|
+ * fine: it’s a programmer error in either case. */
|
||||||
|
const struct
|
||||||
|
{
|
||||||
|
GQuark domain;
|
||||||
|
@@ -182,9 +182,9 @@ test_new_valist_invalid_va (gpointer dummy,
|
||||||
|
|
||||||
|
va_end (ap);
|
||||||
|
}
|
||||||
|
-#else /* if !__linux__ */
|
||||||
|
- g_test_skip ("g_error_new_valist() programmer error handling is only relevant on Linux");
|
||||||
|
-#endif /* !__linux__ */
|
||||||
|
+#else /* if !__linux__ || !__GLIBC__ */
|
||||||
|
+ g_test_skip ("g_error_new_valist() programmer error handling is only relevant on Linux with glibc");
|
||||||
|
+#endif /* !__linux__ || ! __GLIBC__ */
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
# Template file for 'glib'
|
# Template file for 'glib'
|
||||||
pkgname=glib
|
pkgname=glib
|
||||||
reverts="2.74.0_1"
|
version=2.74.0
|
||||||
version=2.72.2
|
revision=2
|
||||||
revision=3
|
|
||||||
build_style=meson
|
build_style=meson
|
||||||
# static version is necessary for qemu-user-static;
|
# static version is necessary for qemu-user-static;
|
||||||
# also disable LTO, otherwise there are multiple failures when linking qemu
|
# also disable LTO, otherwise there are multiple failures when linking qemu
|
||||||
configure_args="-Dfam=false -Dman=true -Dselinux=disabled
|
configure_args="-Dman=true -Dselinux=disabled
|
||||||
$(vopt_bool gtk_doc gtk_doc) --default-library=both -Db_lto=false"
|
$(vopt_bool gtk_doc gtk_doc) --default-library=both -Db_lto=false"
|
||||||
hostmakedepends="gettext pkg-config libxslt docbook-xsl $(vopt_if gtk_doc gtk-doc)"
|
hostmakedepends="gettext pkg-config libxslt docbook-xsl $(vopt_if gtk_doc gtk-doc)"
|
||||||
makedepends="zlib-devel pcre-devel libffi-devel dbus-devel elfutils-devel libmount-devel"
|
makedepends="zlib-devel pcre2-devel libffi-devel dbus-devel elfutils-devel libmount-devel"
|
||||||
checkdepends="desktop-file-utils shared-mime-info dbus python3-pytest"
|
checkdepends="desktop-file-utils shared-mime-info dbus python3-pytest"
|
||||||
short_desc="GNU library of C routines"
|
short_desc="GNU library of C routines"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
maintainer="Michal Vasilek <michal@vasilek.cz>"
|
||||||
license="LGPL-2.1-or-later"
|
license="LGPL-2.1-or-later"
|
||||||
homepage="https://wiki.gnome.org/Projects/GLib"
|
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-74/NEWS"
|
||||||
changelog="https://gitlab.gnome.org/GNOME/glib/raw/glib-2-72/NEWS"
|
changelog="https://gitlab.gnome.org/GNOME/glib/raw/main/NEWS"
|
||||||
distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz"
|
distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz"
|
||||||
checksum=78d599a133dba7fe2036dfa8db8fb6131ab9642783fc9578b07a20995252d2de
|
checksum=3652c7f072d7b031a6b5edd623f77ebc5dcd2ae698598abcc89ff39ca75add30
|
||||||
|
make_check_pre="dbus-run-session"
|
||||||
|
|
||||||
build_options="gtk_doc"
|
build_options="gtk_doc"
|
||||||
desc_option_gtk_doc="Build GTK API docs"
|
desc_option_gtk_doc="Build GTK API docs"
|
||||||
|
@ -27,8 +27,13 @@ if [ -z "$CROSS_BUILD" ]; then
|
||||||
build_options_default+=" gtk_doc"
|
build_options_default+=" gtk_doc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
do_check() {
|
pre_check() {
|
||||||
dbus-run-session ninja -C build test
|
# machine-id is a random, non-zero value
|
||||||
|
echo 'dcb30309cd6c8b7cc20383d85a5c7012' > /etc/machine-id
|
||||||
|
}
|
||||||
|
|
||||||
|
post_check() {
|
||||||
|
rm /etc/machine-id
|
||||||
}
|
}
|
||||||
|
|
||||||
libglib-devel_package() {
|
libglib-devel_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue