From e94c9c16640fbab2dfee7d96612e12061907d156 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 30 Oct 2025 10:33:48 -0600 Subject: [PATCH] dbus: patch out the use of close_range --- recipes/wip/services/dbus/recipe.toml | 3 +++ recipes/wip/services/dbus/redox.patch | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 recipes/wip/services/dbus/redox.patch diff --git a/recipes/wip/services/dbus/recipe.toml b/recipes/wip/services/dbus/recipe.toml index 6bd09ed1..65564ad0 100644 --- a/recipes/wip/services/dbus/recipe.toml +++ b/recipes/wip/services/dbus/recipe.toml @@ -1,6 +1,9 @@ [source] tar = "https://dbus.freedesktop.org/releases/dbus/dbus-1.16.2.tar.xz" blake3 = "b1d1f22858a8f04665e5dca29d194f892620f00fd3e3f4e89dd208e78868436e" +patches = [ + "redox.patch", +] [build] dependencies = [ diff --git a/recipes/wip/services/dbus/redox.patch b/recipes/wip/services/dbus/redox.patch new file mode 100644 index 00000000..c9dc8554 --- /dev/null +++ b/recipes/wip/services/dbus/redox.patch @@ -0,0 +1,12 @@ +diff -ruwN source-old/dbus/dbus-sysdeps-unix.c source/dbus/dbus-sysdeps-unix.c +--- source-old/dbus/dbus-sysdeps-unix.c 2025-02-27 09:29:06.000000000 -0700 ++++ source/dbus/dbus-sysdeps-unix.c 2025-10-30 10:32:21.000125207 -0600 +@@ -4981,7 +4981,7 @@ + void + _dbus_fd_set_all_close_on_exec (void) + { +-#if defined(HAVE_CLOSE_RANGE) && defined(CLOSE_RANGE_CLOEXEC) ++#if defined(HAVE_CLOSE_RANGE) && defined(CLOSE_RANGE_CLOEXEC) && !defined(__redox__) + if (close_range (3, INT_MAX, CLOSE_RANGE_CLOEXEC) == 0) + return; + #endif