guix/gnu/packages/patches/opendht-meson-liburing.patch
Maxim Cournoyer d54d98ccc7
gnu: opendht: Modernize and build with liburing.
* gnu/packages/networking.scm (opendht) [source]: Apply patches.
[build-system]: Switch to meson-build-system.
[#:modules]: Adjust accordingly.  Add (ice-9 ftw) and (srfi srfi-26).
[#:configure-flags]: Migrate to Meson options.
[#:phases] {disable-problematic-tests}: Update phase.
{fix-python-installation-prefix}: Delete.
{specify-runpath-for-python-module}: Likewise.
{pkgconfig-disable-iouring, check, delete-autogen.sh}: Likewise.
{move-and-wrap-tools}: Rename to move-tools and adjust.
{move-python-bindings}: Add.
[native-inputs]: Remove autoconf, automake and libtool.
[inputs]: Delete python.
[propagated-inputs]: Add liburing.  Remove llhttp.
* gnu/packages/patches/opendht-nanosleep.patch: Delete file.
* gnu/packages/patches/opendht-meson-liburing.patch: New file.
* gnu/packages/patches/opendht-meson-install-headers.patch: Likewise.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.

Change-Id: I015e9422dd534106150f2a4a2a89777c47fb5507
2026-01-12 11:25:22 +09:00

26 lines
696 B
Diff

Upstream-status: <https://github.com/savoirfairelinux/opendht/pull/821>
diff --git a/meson.build b/meson.build
index 7d7c5e0a..d3c4a500 100644
--- a/meson.build
+++ b/meson.build
@@ -208,12 +208,18 @@ if get_option('tools').enabled()
install: true,
)
if llhttp.found()
+ durl_deps = [msgpack, openssl]
+
+ if io_uring.found()
+ durl_deps += io_uring
+ endif
+
durl = executable(
'durl',
'tools/durl.cpp',
include_directories: opendht_interface_inc,
link_with: opendht,
- dependencies: [msgpack, openssl],
+ dependencies: durl_deps,
)
endif
endif