dbus: patch out the use of close_range

This commit is contained in:
Jeremy Soller 2025-10-30 10:33:48 -06:00
parent d5dee8ab55
commit e94c9c1664
No known key found for this signature in database
GPG Key ID: 670FDFB5428E05CA
2 changed files with 15 additions and 0 deletions

View File

@ -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 = [

View File

@ -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