From patchwork Sun Aug 25 21:23:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 67283 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 597C727BBEA; Sun, 25 Aug 2024 22:25:39 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 83D0A27BBE2 for ; Sun, 25 Aug 2024 22:25:38 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1siKjd-0005aM-JP; Sun, 25 Aug 2024 17:25:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1siKjZ-0005Ye-E4 for guix-patches@gnu.org; Sun, 25 Aug 2024 17:25:13 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1siKjZ-000894-5Q for guix-patches@gnu.org; Sun, 25 Aug 2024 17:25:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=sIQlpenF16d2uix+I0jzCKmyqVvQeI3eqWda6Iv6zOM=; b=bctGNkIQzIRL2JWkp4VT9Ud5sRZEOMk/HJscY4deLSGV8rvPXUy04DnD+j9ERWzxkGoDFgQjp9z+hVGJB16FuxHLKutogwqdRV4qMOFLvgJ3lwQf6ZDeyNUR+YZBwcApWVv3GUqj6IZrzPgDafjOuoC2e9ZKi3GncnMCkYZrUHIAKTyaplnkj6JIM73TDEL0I0nCrEPPK1z+neLShZXcOh9RlqsSjDJM3QHFzt64E88mFNyf4nvcV5z5cvrwXvjfyapNlZxynZW3HHawKbdiWQxjG/HVOh76UeFxNWbsW9n038czJe6pbC3p3y5bl0+43OpITwHuKgwOZ7PtD9UCoA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1siKkM-0003AH-Gz for guix-patches@gnu.org; Sun, 25 Aug 2024 17:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72810] [PATCH 1/4] gnu: Add go-github-com-libp2p-go-reuseport. Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Aug 2024 21:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72810 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72810@debbugs.gnu.org Cc: "Artyom V. Poptsov" Received: via spool by 72810-submit@debbugs.gnu.org id=B72810.172462114112091 (code B ref 72810); Sun, 25 Aug 2024 21:26:02 +0000 Received: (at 72810) by debbugs.gnu.org; 25 Aug 2024 21:25:41 +0000 Received: from localhost ([127.0.0.1]:43391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1siKk1-00038w-5z for submit@debbugs.gnu.org; Sun, 25 Aug 2024 17:25:41 -0400 Received: from mail-lf1-f45.google.com ([209.85.167.45]:38031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1siKjz-00038e-44 for 72810@debbugs.gnu.org; Sun, 25 Aug 2024 17:25:39 -0400 Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5334832fb94so833622e87.0 for <72810@debbugs.gnu.org>; Sun, 25 Aug 2024 14:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724621022; x=1725225822; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sIQlpenF16d2uix+I0jzCKmyqVvQeI3eqWda6Iv6zOM=; b=Sm5qttr6xQ9a34bCa/nP1MkTm1LV5EwSh4J61cgcIMg5CoxWtE73boqht5gtN3dbbT bJ53R8V8dEeA3kbp37JeKCPxej3A3ImlckVdYT1k/90cbdlVnXaAVqrmDpwiApzEiBF/ oVnnZZRltenuJtyTxB70BmHmO/7Lwj2NgCLASHP4Z2q+SMwhjfToFQ3fdYnFsTKMP7PN aB2xo2wc+/VAcFqyShOX6LA3Zd6e0/uh9pJdCpkgybE9cC4Vqtk9CkYMuImStIBis9FA QYaGSPXvhBrHGvSyVQKsEUedYAeaqm9sPAqzY6+rCjMwHlgl15qTEuKMjJdgpWN7hlmO 0xeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724621022; x=1725225822; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sIQlpenF16d2uix+I0jzCKmyqVvQeI3eqWda6Iv6zOM=; b=k6EnhYJW3QqNVSMsn2OdtrM5D6+NhEvU4H+7jH/MqRlWCuQyLtEdA1Mjgl+VxH3l9j ypv6VplV2nGCgOtMlQFnpeC9PgpLH6/liuvQ4xY6p4sc8rJpILloMs8NQg0DP+m04Q97 r3hlDn5MSYNd0wJMBz2rgiNwJc3PG/qF8g3Xvwz9NhV3X9ri+CsTaAyPAjfCHU+MDERm //a/qiN+LkSJ8h/DQAZILJ02l80VlFcyoOTiFfXyb/0YIboSu/BLaOcJ48AF/eKibVi3 KP1mRfcIXK9q7jKpi4Q2UGRfFB/bIjoi+tKeia9VQ3ievENbWgMWCPUxrEf7mc/S3C8r 0BQA== X-Gm-Message-State: AOJu0YxNPeEBnwNYU4jSyfrGchhz/421KRdFfNcbeun2a9v4jtO9ytg2 6wUP3XpWV26g8/Yuq8+F0u+xVzCwEM+kVr5Ol5BN8kAtq72wOAyMc6o8T2dU X-Google-Smtp-Source: AGHT+IFTd+H7j6K4cu7KqmKqF4YiEb+A0omy485l37FGHlLGM7SvbRZJytUM8BVrPYBtb1yZQDc1/g== X-Received: by 2002:a05:6512:3ba7:b0:52c:def2:d8af with SMTP id 2adb3069b0e04-534387be36fmr3623787e87.4.1724621021571; Sun, 25 Aug 2024 14:23:41 -0700 (PDT) Received: from elephant.. ([5.164.196.227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5334ea29a87sm1272741e87.30.2024.08.25.14.23.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Aug 2024 14:23:41 -0700 (PDT) From: "Artyom V. Poptsov" Date: Mon, 26 Aug 2024 00:23:34 +0300 Message-ID: <2958b8ffa51d4f31122951caa381e4980be4611d.1724620806.git.poptsov.artyom@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang-web.scm (go-github-com-libp2p-go-reuseport): New variable. Change-Id: Iafbf09d6537cd5a92825830b64f952ad903ed96d --- gnu/packages/golang-web.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 28eba7f5d2..dd226b6c96 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -2266,6 +2266,37 @@ (define-public go-github-com-libp2p-go-netroute gopacket/routing.Router} interface for Golang.") (license license:bsd-3))) +(define-public go-github-com-libp2p-go-reuseport + (package + (name "go-github-com-libp2p-go-reuseport") + (version "0.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libp2p/go-reuseport") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "012kgriw1bchf0apk6ff4y34n9mffbh0cmi15348v9vj3h4w3sa5")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/libp2p/go-reuseport")) + (native-inputs (list go-github-com-stretchr-testify)) + (propagated-inputs (list go-github-com-google-gopacket go-golang-org-x-net + go-golang-org-x-sys)) + (home-page "https://github.com/libp2p/go-reuseport") + (synopsis "Reuse TCP/UDP ports in Golang") + (description + "@code{go-reuseport} enables listening and dialing from the same TCP or UDP +port. This means that @code{SO_REUSEADDR} and @code{SO_REUSEPORT} socket options may +be set. This is particularly important when attempting to do TCP NAT hole-punching, +which requires a process to both @code{Listen} and @code{Dial} on the same TCP port. +@code{go-reuseport} provides some utilities around enabling this behaviour on various +operating systems.") + (license license:isc))) + (define-public go-github-com-makeworld-the-better-one-go-gemini (package (name "go-github-com-makeworld-the-better-one-go-gemini")