From patchwork Wed Mar 31 05:23:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 28218 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0F9DB27BC66; Wed, 31 Mar 2021 06:26:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CCCC727BC65 for ; Wed, 31 Mar 2021 06:26:12 +0100 (BST) Received: from localhost ([::1]:45042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRTMq-00011m-0N for patchwork@mira.cbaines.net; Wed, 31 Mar 2021 01:26:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRTLk-0000Qy-27 for guix-patches@gnu.org; Wed, 31 Mar 2021 01:25:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41720) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRTLj-0006OY-RR for guix-patches@gnu.org; Wed, 31 Mar 2021 01:25:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lRTLj-000377-O4 for guix-patches@gnu.org; Wed, 31 Mar 2021 01:25:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47513] [PATCH 05/12] gnu: opendht: Update to 2.2.0rc4. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 31 Mar 2021 05:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47513 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47513@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 47513-submit@debbugs.gnu.org id=B47513.161716825111832 (code B ref 47513); Wed, 31 Mar 2021 05:25:03 +0000 Received: (at 47513) by debbugs.gnu.org; 31 Mar 2021 05:24:11 +0000 Received: from localhost ([127.0.0.1]:53250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRTKs-00034g-HC for submit@debbugs.gnu.org; Wed, 31 Mar 2021 01:24:10 -0400 Received: from mail-qv1-f45.google.com ([209.85.219.45]:43778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRTKj-00032Q-MH for 47513@debbugs.gnu.org; Wed, 31 Mar 2021 01:24:03 -0400 Received: by mail-qv1-f45.google.com with SMTP id cx5so9373594qvb.10 for <47513@debbugs.gnu.org>; Tue, 30 Mar 2021 22:24:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XxtzBDE4YOGSqt8t6TPLmEHihxpxfVZqXidK7D6xJnc=; b=ner/MXU4tHiZQc/Oo05jK9b9J+OpVKMXZSqizBconhexRKXVu4QRjbq6lNsmZZHBaU 8G/K3dhM5JTjYOqmix8E89me5NI+ZH5b+CHCc1C3YUEUJkIdkdgOYo+yX6H3+C0qi1Fl fw+dHpneKA9jZpVgV/Cru5fJgn8xWcWGLuoEt9plCJVTIjg2b+Bhy2OyLoukke6PfESX BgD3FI0bOOhrqD3dyFm2fFlud0HR0itQd6wPsUEahxFvsJKungCV5vib0RwwgqFzjWbI r5tPfu2ksAugIjvwyqPgWD/O7FmGGvVmDTQHT/y6ApggQgtgnRkVtRamtpU/IAfHasSK Xlyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XxtzBDE4YOGSqt8t6TPLmEHihxpxfVZqXidK7D6xJnc=; b=g9cPJowBr/YgErXSsCc8qFw0sZYXo0PkCMZpBfxiOQJfyn0GSyHX9yWPj6hUighLAB 7vxgSwsgEp3GTbLGYxCL9Jcgk8+N+niGyPCF61HvKOlBM6ABbgE9sD1JfDxPMWW3tkTH YfSBClD2D2zc9DsBA6OAH1H75wGWdM1PE88vB+jgOm/rB75ZI263kqzsfyj0IxTMIhNR 8bH68jVXmJR66xpTuWfhLvx8gTEBm+mprQFfEDqkHi++oW+uegi3boQ5hpsvYU6bKzdh 4NAPBxRKAYkhrFpv4nf/uUi/qQVilIT/yJuMS5cnOGlH/mJcHKrh/k9i0r2WwuErYU+g eCNg== X-Gm-Message-State: AOAM533FUZsVz6UNakiFCdyuC6+OSGHd7QM02Bb9wQMYCZiJNIuUUgKZ +Yw7WdIUjcQH54Tat9X5RkrOu8KOJTA= X-Google-Smtp-Source: ABdhPJz7JSjwBrkyMY3cDWdyKu0Y/KDeJmpZ3JanexjJhoF/FHsxJNCLXCa6P1frNz16r/5nsQ+lVQ== X-Received: by 2002:ad4:4904:: with SMTP id bh4mr1396280qvb.53.1617168235907; Tue, 30 Mar 2021 22:23:55 -0700 (PDT) Received: from localhost.localdomain ([207.35.95.145]) by smtp.gmail.com with ESMTPSA id q64sm828662qtd.32.2021.03.30.22.23.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Mar 2021 22:23:55 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 31 Mar 2021 01:23:41 -0400 Message-Id: <20210331052348.5164-5-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210331052348.5164-1-maxim.cournoyer@gmail.com> References: <20210331052348.5164-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/patches/opendht-fix-jami.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Un-register it. * gnu/packages/networking.scm (opendht): Update to 2.2.0rc4. [patches]: Remove field. [inputs]: Use nettle-3.7. [native-inputs]: Move restinio to... [propagated-inputs]: ... here. --- gnu/local.mk | 1 - gnu/packages/networking.scm | 13 ++++---- gnu/packages/patches/opendht-fix-jami.patch | 33 --------------------- 3 files changed, 6 insertions(+), 41 deletions(-) delete mode 100644 gnu/packages/patches/opendht-fix-jami.patch diff --git a/gnu/local.mk b/gnu/local.mk index deb4ddcede..9bc7ae7564 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1469,7 +1469,6 @@ dist_patch_DATA = \ %D%/packages/patches/opencascade-oce-glibc-2.26.patch \ %D%/packages/patches/opencv-fix-build-of-grfmt_jpeg2000.cpp.patch \ %D%/packages/patches/opencv-rgbd-aarch64-test-fix.patch \ - %D%/packages/patches/opendht-fix-jami.patch \ %D%/packages/patches/openfoam-4.1-cleanup.patch \ %D%/packages/patches/openjdk-10-idlj-reproducibility.patch \ %D%/packages/patches/openmpi-mtl-priorities.patch \ diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 464192ad7e..7a09c48651 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -3428,40 +3428,39 @@ and targeted primarily for asynchronous processing of HTTP-requests.") (define-public opendht (package (name "opendht") - (version "2.1.4") + (version "2.2.0rc4") ;jami requires >= 2.2.0 (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/savoirfairelinux/opendht") (commit version))) (file-name (git-file-name name version)) - (patches (search-patches "opendht-fix-jami.patch")) (sha256 (base32 - "1ax26ri1ifb6s8ppd28jmanka9yf8mw3np65q2h4djhhik0phhal")))) + "1wc0f6cnvnlmhxnx64nxqgsx93k4g7ljdaqjl40ml74jg3nqrzcl")))) ;; Since 2.0, the gnu-build-system does not seem to work anymore, upstream bug? (build-system cmake-build-system) (inputs `(("argon2" ,argon2) - ("nettle" ,nettle) + ("nettle" ,nettle-3.7) ("readline" ,readline) ("jsoncpp" ,jsoncpp) ("openssl" ,openssl) ;required for the DHT proxy ("fmt" ,fmt))) (propagated-inputs `(("gnutls" ,gnutls) ;included in opendht/crypto.h - ("msgpack" ,msgpack))) ;included in several installed headers + ("msgpack" ,msgpack) ;included in several installed headers + ("restinio" ,restinio))) ;included in opendht/http.h (native-inputs `(("autoconf" ,autoconf) ("automake" ,automake) ("pkg-config" ,pkg-config) - ("restinio" ,restinio) ;headers only library ("libtool" ,libtool) ("cppunit" ,cppunit))) (arguments `(#:tests? #f ; Tests require network connection. #:configure-flags - '(;; "-DOPENDHT_TESTS=on" + '(;;"-DOPENDHT_TESTS=on" "-DOPENDHT_TOOLS=off" "-DOPENDHT_PYTHON=off" "-DOPENDHT_PROXY_SERVER=on" diff --git a/gnu/packages/patches/opendht-fix-jami.patch b/gnu/packages/patches/opendht-fix-jami.patch deleted file mode 100644 index 9718a84a41..0000000000 --- a/gnu/packages/patches/opendht-fix-jami.patch +++ /dev/null @@ -1,33 +0,0 @@ -From e2b39dd3a0742853e00f9c3e8c46c911da20bed7 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Adrien=20B=C3=A9raud?= -Date: Tue, 30 Jun 2020 10:42:49 -0400 -Subject: [PATCH 1/4] http/request: make terminate public - ---- - include/opendht/http.h | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) - -diff --git a/include/opendht/http.h b/include/opendht/http.h -index cc8d5f9..46b722c 100644 ---- a/include/opendht/http.h -+++ b/include/opendht/http.h -@@ -294,6 +294,7 @@ public: - * User action to cancel the Request and call the completion callbacks. - */ - void cancel(); -+ void terminate(const asio::error_code& ec); - - private: - using OnCompleteCb = std::function; -@@ -320,8 +321,6 @@ private: - - void connect(std::vector&& endpoints, HandlerCb cb = {}); - -- void terminate(const asio::error_code& ec); -- - void post(); - - void handle_request(const asio::error_code& ec); --- -2.27.0 -