From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WOcLN+a2AmXI6QAAG6o9tA:P1 (envelope-from ) for ; Thu, 14 Sep 2023 09:31:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WOcLN+a2AmXI6QAAG6o9tA (envelope-from ) for ; Thu, 14 Sep 2023 09:31:50 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A45EB5B9F7 for ; Thu, 14 Sep 2023 09:31:50 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=beaver-labs.com header.s=zoho header.b="TqAC/AmV"; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.eu:reject}"); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694676710; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=4cO4Ov4XzuRohoQuuMvzhe11O1+rSRtYdi5QgP8/XoI=; b=E6ZQG2TU8ZCXvOWM6ipl8RMksaASOZ2aPOG/OVn3z7d2e1JTybK0w/R917IaOuvyC3+Xpq J5fl+hLO+J98aP+0ep33aBPvFUKYr88XXGSPwDMG4wQp34lneZpQ3uvuwZ2euXWQI2DKb7 rUqCIpW391FamlN/1e+IEmeAXEecfPgxrhQ9liXKyaBG5bFRka1LM99Rf+AzkA9STvzPpT hIvffLeuv2MTgkHrPzdP/xdnlfO9hfXHfDv3Me3P2mZOhFGBieAz6Cq0a5s6OfpVKlXbF7 cTSUYxF5PgWBg999vHuSFYqCZ0VRON18gXEFie/QBrrQS8wkHHkGxPTaS6eiVA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=beaver-labs.com header.s=zoho header.b="TqAC/AmV"; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.eu:reject}"); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=2; s=key1; d=yhetil.org; t=1694676710; a=rsa-sha256; cv=fail; b=qnua7LgUbNAl4khK/wAaOrF9VT71YLTNOMe2jppKcO1coxYJEzkA8glstREny+fWQ7w1JN +gOeJCGEtpwCTgWvYmOG2kDgn2oyA4U5VvJNSf65to3IJQ+Pu3eW48hJ+Id1HZ2XYHMGcv 5bhajn+HNEoqREz1BNm2cgqTgHV3myIbF3SHiFZ5Jq+UbHjrEeN3ZLBpC+qNgiaH0GcMRv XYsp5LDrCSZmAT0tx0ko7o2V/Nsz4Aedx2/XINODYvDaDJhDPcwP+mftkOEzmlNZq+mqUt pqRMoifygbxPSv8XOTbX7wl4kn9+ZunIyB4DE851QAcMA77Vzek7pU6dnlOMFw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qggpB-0006jM-2f; Thu, 14 Sep 2023 03:31:43 -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 1qggoU-0006Nm-Vx for guix-patches@gnu.org; Thu, 14 Sep 2023 03:31:04 -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 1qggoU-0003wZ-F4 for guix-patches@gnu.org; Thu, 14 Sep 2023 03:30:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qggoa-0007Tg-3R; Thu, 14 Sep 2023 03:31:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65939] [PATCH 04/33] gnu: Add go-github-com-vishvananda-netns. Resent-From: Edouard Klein Original-Sender: "Debbugs-submit" Resent-CC: cox.katherine.e+guix@gmail.com, guix-patches@gnu.org Resent-Date: Thu, 14 Sep 2023 07:31:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65939 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65939@debbugs.gnu.org Cc: Edouard Klein , Katherine Cox-Buday X-Debbugs-Original-Xcc: Katherine Cox-Buday Received: via spool by 65939-submit@debbugs.gnu.org id=B65939.169467663128463 (code B ref 65939); Thu, 14 Sep 2023 07:31:04 +0000 Received: (at 65939) by debbugs.gnu.org; 14 Sep 2023 07:30:31 +0000 Received: from localhost ([127.0.0.1]:36900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qggo1-0007Of-Hg for submit@debbugs.gnu.org; Thu, 14 Sep 2023 03:30:31 -0400 Received: from sender11-op-o11.zoho.eu ([31.186.226.225]:17158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qggns-0007Mo-QN for 65939@debbugs.gnu.org; Thu, 14 Sep 2023 03:30:22 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1694676613; cv=none; d=zohomail.eu; s=zohoarc; b=V2GPD/FK6unI9ugdtfv6DWBMoobpOtP21XxtN+xb0oiDO45EK+i2+wM/THB0xSZ5mlquEkbNhBbnIQaiX3fn9k+DQ6pPIjizP9+BXNzKevKM+9oyxY5ELi1TPDMna1hzCap1wSEeft5f8o5C31M8pleJvlHhHEPoKJn0igV0ivA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1694676613; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=4cO4Ov4XzuRohoQuuMvzhe11O1+rSRtYdi5QgP8/XoI=; b=KlqCGsh0voOgGHM7DGOF2gS/vSDAv6SczRelGvQ/UxfXscJL166L69PpWpewBotoVW8AJYEjtayAKBgD+iBwXajf/+NXe2hlVDqtmhn7c6SsxwUZCo1IhicKmf0sq0/uphoMYAcZUasyY5F6lS0Y6EP75v1+capVKdpZ/zjAvGo= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=beaver-labs.com; spf=pass smtp.mailfrom=edk@beaver-labs.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1694676613; s=zoho; d=beaver-labs.com; i=edk@beaver-labs.com; h=From:From:To:To:Cc:Cc:Message-ID:Subject:Subject:Date:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Reply-To; bh=4cO4Ov4XzuRohoQuuMvzhe11O1+rSRtYdi5QgP8/XoI=; b=TqAC/AmV62Xs/IZ/Ve0v3A5YdXn0f1IJC+eCEi/z+lgtyu7kczJTjxi5pbxr9efz 2HpyV6CSS/5vJuJj3sdsM1W9HKNA+5dRxnO62au2uy50mQ7hJORqnjM8CTy/DGv6nYn uRShx6tTEudPAzlBzZmPdHi2XAxBS4BaktCI3tOF0ml+yZhztnxTnt9hRofIfikNmPH 4dTGVQVPfuoJfqNClpMm1bQemVCvy5mQOBeVBXEmLDYbh25TD9qPb4BzKzqp6W679vH Jb8Zj3AZgsn5iDvd7Nu8EDzTpAQw7sszthB0+yo+gKMKLYM6EBIEhH+LckN9yYd0ulp 3EPlBfwVcA== Received: from schwarzy.home (lfbn-idf3-1-667-244.w86-252.abo.wanadoo.fr [86.252.237.244]) by mx.zoho.eu with SMTPS id 1694676610469225.06638094365007; Thu, 14 Sep 2023 09:30:10 +0200 (CEST) From: Edouard Klein Message-ID: Date: Thu, 14 Sep 2023 09:29:17 +0200 X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: 1.59 X-Spam-Score: 1.59 X-Migadu-Queue-Id: A45EB5B9F7 X-TUID: yw/Pb7hLaBSA * gnu/packages/golang.scm (go-github-com-vishvananda-netns): New variable. --- gnu/packages/golang.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 57dee78330..5a00fd0a2b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -13259,6 +13259,37 @@ (define-public go-src-elv-sh Windows.") (license license:bsd-2))) =20 +(define-public go-github-com-vishvananda-netns + (package + (name "go-github-com-vishvananda-netns") + (version "0.0.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vishvananda/netns") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0rci8c211m57nya9il81fz6459pia3dj5i4b16fp34vjrkcxliml")))) + (build-system go-build-system) + (arguments + '(#:tests? #f ;; From what I understand, and I may very well be wrong= , + ;; the tests require root access. At least they fail with "operatio= n not permitted". + #:import-path "github.com/vishvananda/netns")) + (propagated-inputs `(("go-golang-org-x-sys" ,go-golang-org-x-sys))) + (home-page "https://github.com/vishvananda/netns") + (synopsis "netns - network namespaces in go") + (description + "Package netns allows ultra-simple network namespace handling. @code{= NsHandles} +can be retrieved and set. Note that the current namespace is thread local= so +actions that set and reset namespaces should use @code{LockOSThread} to ma= ke +sure the namespace doesn't change due to a goroutine switch. It is best t= o +close @code{NsHandles} when you are done with them. This can be accomplis= hed +via a `defer ns.Close()` on the handle. Changing namespaces requires elev= ated +privileges, so in most cases this code needs to be run as root.") + (license license:asl2.0))) + (define-public go-github-com-gorilla-websocket (package (name "go-github-com-gorilla-websocket") --=20 2.40.1