From 363d48a55c590022c9dfea8830c45b5e0fa457eb Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 10 Nov 2025 20:44:48 -0700 Subject: [PATCH] Add glib-networking --- .../wip/libs/net/glib-networking/recipe.toml | 18 ++++++++++++++++++ .../wip/libs/net/glib-networking/redox.patch | 12 ++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 recipes/wip/libs/net/glib-networking/recipe.toml create mode 100644 recipes/wip/libs/net/glib-networking/redox.patch diff --git a/recipes/wip/libs/net/glib-networking/recipe.toml b/recipes/wip/libs/net/glib-networking/recipe.toml new file mode 100644 index 000000000..f5cb23d88 --- /dev/null +++ b/recipes/wip/libs/net/glib-networking/recipe.toml @@ -0,0 +1,18 @@ +[source] +tar = "https://download.gnome.org/sources/glib-networking/2.80/glib-networking-2.80.1.tar.xz" +blake3 = "114a3ea41ea33d8cd01a61381b49fbf60278212ddd88c65f70c26137217be3fd" +patches = ["redox.patch"] + +[build] +template = "custom" +dependencies = [ + "glib", + "gnutls3", +] +script = """ +DYNAMIC_INIT +cookbook_meson \ + -Ddefault_library=shared \ + -Dgnome_proxy=disabled \ + -Dlibproxy=disabled +""" diff --git a/recipes/wip/libs/net/glib-networking/redox.patch b/recipes/wip/libs/net/glib-networking/redox.patch new file mode 100644 index 000000000..b0aaeb43b --- /dev/null +++ b/recipes/wip/libs/net/glib-networking/redox.patch @@ -0,0 +1,12 @@ +diff -ruwN source-old/tls/tests/meson.build source/tls/tests/meson.build +--- source-old/tls/tests/meson.build 2025-01-08 14:51:06.000000000 -0700 ++++ source/tls/tests/meson.build 2025-11-10 20:33:28.041098208 -0700 +@@ -40,7 +40,7 @@ + test_programs = [ + ['certificate', [], deps, [], [mock_pkcs11_module]], + ['file-database', [], deps, [], []], +- ['connection', ['mock-interaction.c'], deps, [], [mock_pkcs11_module]], ++ #TODO: RTLD_NEXT on Redox: ['connection', ['mock-interaction.c'], deps, [], [mock_pkcs11_module]], + # DTLS tests are disabled until we fix https://gitlab.gnome.org/GNOME/glib-networking/issues/49 + # ['dtls-connection', ['mock-interaction.c', 'lossy-socket.c'], deps, [], [mock_pkcs11_module]], + ]