guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 794cdb77e88b141a1b9aa1f168c56137dcbe0504
Author: kestrel <[email protected]>
AuthorDate: Thu Oct 9 10:44:20 2025 +0300

    gnu: Update opendht to 3.5.4.
    
    Change-Id: I97e4f4339209d6acba51aac1576198a8197b62cb
    Signed-off-by: Maxim Cournoyer <[email protected]>
---
 gnu/packages/networking.scm | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 0ae1bf0aa1..d557df14a8 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -4133,7 +4133,7 @@ and targeted primarily for asynchronous processing of 
HTTP-requests.")
 (define-public opendht
     (package
       (name "opendht")
-      (version "3.4.0")
+      (version "3.5.4")
       (source (origin
                 (method git-fetch)
                 (uri (git-reference
@@ -4142,8 +4142,7 @@ and targeted primarily for asynchronous processing of 
HTTP-requests.")
                 (file-name (git-file-name name version))
                 (sha256
                  (base32
-                  "069y4mgygjsfp5szfbqr7l30g7fbcqqj62h11byyq9k24rl7ilsq"))
-                (patches (search-patches "opendht-nanosleep.patch"))))
+                  "1qy5fvz4rr480n0sa81n3rx5zskpgk7zqip12b9ly8hk43mxsycs"))))
       (outputs '("out" "python" "tools" "debug"))
       (build-system gnu-build-system)
       (arguments
@@ -4194,6 +4193,15 @@ and targeted primarily for asynchronous processing of 
HTTP-requests.")
                   (("extra_link_args=\\[(.*)\\]" _ args)
                    (string-append "extra_link_args=[" args
                                   ", '-Wl,-rpath=" #$output "/lib']")))))
+            ;; This is due to an upstream issue:
+            ;; https://git.jami.net/savoirfairelinux/opendht/-/issues/69 
+            (add-after 'unpack 'fix-llhttp-lib-substitution
+              (lambda _
+                (substitute* "configure.ac"
+                  (("http_lib")
+                   "llhttp_lib")
+                  (("-lllhttp")
+                   ", libllhttp"))))
             ;; TODO: build with liburing, requires cmake or meson.
             (add-after 'unpack 'pkgconfig-disable-iouring
               (lambda _

Reply via email to