From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Newsgroups: gmane.comp.gnu.guix.patches,gmane.lisp.guile.devel Subject: [bug#56867] [PATCH] download: Do not wrap TLS port on GnuTLS >= 3.7.7. Date: Mon, 01 Aug 2022 11:15:24 +0200 Message-ID: <877d3s2ukz.fsf@gnu.org> References: <20220801090749.11655-1-ludo@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28055"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) Cc: guile-devel@gnu.org To: 56867@debbugs.gnu.org Original-X-From: guix-patches-bounces+gcggp-guix-patches=m.gmane-mx.org@gnu.org Mon Aug 01 11:16:11 2022 Return-path: Envelope-to: gcggp-guix-patches@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oIRX0-0007A1-Jv for gcggp-guix-patches@m.gmane-mx.org; Mon, 01 Aug 2022 11:16:10 +0200 Original-Received: from localhost ([::1]:36344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oIRWy-0006oW-RW for gcggp-guix-patches@m.gmane-mx.org; Mon, 01 Aug 2022 05:16:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIRWs-0006mw-3x for guix-patches@gnu.org; Mon, 01 Aug 2022 05:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49514) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oIRWr-0000jk-QI for guix-patches@gnu.org; Mon, 01 Aug 2022 05:16:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oIRWr-0001cK-KW for guix-patches@gnu.org; Mon, 01 Aug 2022 05:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 Aug 2022 09:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56867 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch Original-Received: via spool by 56867-submit@debbugs.gnu.org id=B56867.16593453546197 (code B ref 56867); Mon, 01 Aug 2022 09:16:01 +0000 Original-Received: (at 56867) by debbugs.gnu.org; 1 Aug 2022 09:15:54 +0000 Original-Received: from localhost ([127.0.0.1]:39263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIRWk-0001bt-69 for submit@debbugs.gnu.org; Mon, 01 Aug 2022 05:15:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oIRWf-0001bU-9O for 56867@debbugs.gnu.org; Mon, 01 Aug 2022 05:15:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIRWZ-0000iS-4P; Mon, 01 Aug 2022 05:15:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=cBiCP8ixfKX3LWkH+quyFgdxzeGCpsulLgT7aTOGpFk=; b=L5CHG+08NH7C0hU4lyS/ 7IKyKf2j+EIdRcuRPSBCxZ4uYy+3Qw/d6wecLEOz0Sv81s9ZF3tjv2DBVhRTO2SUCPvdDPzeI3fru d7bACji5krWqzLCzZycvFDac6JEicB/fLzNWkuQvuFiWUVHKnpVb+gkiyvLnUcFSphh8tyqBkRiSy mMvAW9Aui6b6thnQNqpHETkXbnMBs5rJzhE/C9y2BYKCke5n9h1tNCtXnd+XtQzjqakpp/PvKuPhN HPXU3o+W+7iI3S2Ig6b/hDDkpPwMEndC8Ei9RJspcNPLX606jzzW39QVzr/r3vVUapWBi3CyqRSpT n8aRjMpbunmHpQ==; Original-Received: from [193.50.110.235] (port=44834 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oIRWJ-0001oF-IM; Mon, 01 Aug 2022 05:15:42 -0400 In-Reply-To: <20220801090749.11655-1-ludo@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 1 Aug 2022 11:07:49 +0200") 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+gcggp-guix-patches=m.gmane-mx.org@gnu.org Original-Sender: "Guix-patches" Xref: news.gmane.io gmane.comp.gnu.guix.patches:28317 gmane.lisp.guile.devel:21273 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s skribis: > The custom input/output port wrapping the TLS session record port would > introduce overhead, and it would also prevent its uses in a non-blocking > context--e.g., with Fibers. The port close mechanism added in GnuTLS > 3.7.7 allows us to get rid of that wrapper. And here=E2=80=99s the GnuTLS 3.7.7 package to test it; you need to make su= re to have 3.7.7 on your load path, for instance by running: ./pre-inst-env guix shell -D guix guile gnutls@3.7.7 Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm index 1ee5400a9c..33c93b7a5b 100644 --- a/gnu/packages/tls.scm +++ b/gnu/packages/tls.scm @@ -329,6 +329,21 @@ (define-public gnutls (properties '((ftp-server . "ftp.gnutls.org") (ftp-directory . "/gcrypt/gnutls"))))) +(define-public gnutls-latest + (package + (inherit gnutls) + (version "3.7.7") + (source (origin + (method url-fetch) + (uri (string-append "mirror://gnupg/gnutls/v" + (version-major+minor version) + "/gnutls-" version ".tar.xz")) + (patches (search-patches "gnutls-skip-trust-store-test.patch" + "gnutls-cross.patch")) + (sha256 + (base32 + "01i1gl15k6qwvxmxx0by1mn9nlmcmym18wdpm7dn9awfsp8474dy")))))) + (define-public gnutls/guile-2.0 ;; GnuTLS for Guile 2.0. (package/inherit gnutls --=-=-=--