summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/glib-networking/glib-networking/eagain.patch36
-rw-r--r--meta/recipes-core/glib-networking/glib-networking_2.80.1.bb (renamed from meta/recipes-core/glib-networking/glib-networking_2.80.0.bb)3
2 files changed, 1 insertions, 38 deletions
diff --git a/meta/recipes-core/glib-networking/glib-networking/eagain.patch b/meta/recipes-core/glib-networking/glib-networking/eagain.patch
deleted file mode 100644
index 98974aa4e7..0000000000
--- a/meta/recipes-core/glib-networking/glib-networking/eagain.patch
+++ /dev/null
@@ -1,36 +0,0 @@
1From f917ef5579257007bc02850e79769fe5ec48b2b7 Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Sat, 6 May 2023 12:18:50 +0100
4Subject: [PATCH] In autobuilder testing we regularly see glib-networking ptest
5 fail with:
6
7GLib-Net:ERROR:/usr/src/debug/glib-networking/2.74.0-r0/tls/tests/connection.c:1944:simul_read_thread: assertion failed (error == NULL): Resource temporarily unavailable (g-io-error-quark, 27)
8Bail out! GLib-Net:ERROR:/usr/src/debug/glib-networking/2.74.0-r0/tls/tests/connection.c:1944:simul_read_thread: assertion failed (error == NULL): Resource temporarily unavailable (g-io-error-quark, 27)
9FAIL: glib-networking/connection-openssl.test (Child process killed by signal 6)
10SUMMARY: total=4; passed=3; skipped=0; failed=1; user=0.9s; system=0.4s; maxrss=10708
11FAIL: glib-networking/connection-openssl.test (Child process killed by signal 6)
12
13The test should probably retry in this situation so test a patch which does this.
14
15Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/glib-networking/-/merge_requests/253]
16
17Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18---
19 tls/tests/connection.c | 4 ++++
20 1 file changed, 4 insertions(+)
21
22diff --git a/tls/tests/connection.c b/tls/tests/connection.c
23index 62a7fbb..3447c80 100644
24--- a/tls/tests/connection.c
25+++ b/tls/tests/connection.c
26@@ -2210,6 +2210,10 @@ simul_read_thread (gpointer user_data)
27 test->buf + test->nread,
28 MIN (TEST_DATA_LENGTH / 2, TEST_DATA_LENGTH - test->nread),
29 NULL, &error);
30+
31+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK))
32+ continue;
33+
34 g_assert_no_error (error);
35
36 test->nread += nread;
diff --git a/meta/recipes-core/glib-networking/glib-networking_2.80.0.bb b/meta/recipes-core/glib-networking/glib-networking_2.80.1.bb
index b080285b6e..a4396af39b 100644
--- a/meta/recipes-core/glib-networking/glib-networking_2.80.0.bb
+++ b/meta/recipes-core/glib-networking/glib-networking_2.80.1.bb
@@ -14,7 +14,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
14SECTION = "libs" 14SECTION = "libs"
15DEPENDS = "glib-2.0-native glib-2.0" 15DEPENDS = "glib-2.0-native glib-2.0"
16 16
17SRC_URI[archive.sha256sum] = "d8f4f1aab213179ae3351617b59dab5de6bcc9e785021eee178998ebd4bb3acf" 17SRC_URI[archive.sha256sum] = "b80e2874157cd55071f1b6710fa0b911d5ac5de106a9ee2a4c9c7bee61782f8e"
18 18
19# Upstream note that for the openssl backend, half the tests where this backend don't return 19# Upstream note that for the openssl backend, half the tests where this backend don't return
20# the expected error code or don't work as expected so default to gnutls 20# the expected error code or don't work as expected so default to gnutls
@@ -30,7 +30,6 @@ PACKAGECONFIG[gnomeproxy] = "-Dgnome_proxy=enabled,-Dgnome_proxy=disabled,gsetti
30inherit gnomebase gettext upstream-version-is-even gio-module-cache ptest-gnome 30inherit gnomebase gettext upstream-version-is-even gio-module-cache ptest-gnome
31 31
32SRC_URI += "file://run-ptest" 32SRC_URI += "file://run-ptest"
33SRC_URI += "file://eagain.patch"
34 33
35FILES:${PN} += "\ 34FILES:${PN} += "\
36 ${libdir}/gio/modules/libgio*.so \ 35 ${libdir}/gio/modules/libgio*.so \