From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id WOxhLJO+AmV4SAEAauVa8A:P1 (envelope-from ) for ; Thu, 14 Sep 2023 10:04:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WOxhLJO+AmV4SAEAauVa8A (envelope-from ) for ; Thu, 14 Sep 2023 10:04:35 +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 99075A1D9 for ; Thu, 14 Sep 2023 10:04:35 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=beaver-labs.com header.s=zoho header.b=HGyTYZy5; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.eu:reject}"); dmarc=none; 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" ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694678675; 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=XL8P/4XTwDs2rHOyHiyWkhKnk6HGcKJYhYq/EOyBttpWNcNdtda+GEJ8rz1jdN32F8F0PW ysrb2W1deNljkYKBPwGvSEuRI9qHSFOSivUkRVa2XzwMvV6IMhHnZ89kMvLqk1WU8ZkUVB gkOogZUrKrJpYPynGgsj3vD6NFYA2fURrnciBOr/AsJt0236HUIMPZtJGDQ2wBx0DGBkGb ghhUX/aD3fn8rWhz4y71jUiHkrUGLHVZ9sesWCOFrNW+dyTZ5Ch3dG7/0aMrLCchv8jznc AUUrT0Z8EfAB4NL3+6WNU/NsFH6NxLhmQeQqkeRQ64yI+Ji6xLYSjd9ySzxZcA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1694678675; a=rsa-sha256; cv=fail; b=OR9QI0pyVlIPXkcg6AWUlrBybvZn/QB92hFFgK3UR21Fnamt9Qu2Z/RlsGgOxXm5V6Jkby J8W848uqNEokXeebMjxBUmz59qjG4lheJihxpUB3XgcZrgko7dfvzlE5mA+XoxvcRfQYbe GH9IIQyMBLZr9Of+OLD89V3+nJ+j1Wdmkk+0z6QWr3Nb64U/NyVkUFyLGnUsPN092znXfV p3LlUT6brx/NDL8iI+TM2Kfop8m0gF0B8vVR1iOns0/9qQWyI/Wi9Chj7THLBqJwFbb8F6 Tv15E+gQWzi8c23HrbaZ7Nl9mgnnJy1lJcnVWbgv2y4OSHq53UudXqC4SFllxA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=beaver-labs.com header.s=zoho header.b=HGyTYZy5; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.eu:reject}"); dmarc=none; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qghKU-0006HE-Ec; Thu, 14 Sep 2023 04:04:02 -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 1qghKP-0006GF-Li for guix-patches@gnu.org; Thu, 14 Sep 2023 04:03:58 -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 1qghKP-00058c-DB for guix-patches@gnu.org; Thu, 14 Sep 2023 04:03:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qghKU-0000Hk-2k; Thu, 14 Sep 2023 04:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65974] [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 08:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65974 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65974@debbugs.gnu.org Cc: Edouard Klein , Katherine Cox-Buday X-Debbugs-Original-Xcc: Katherine Cox-Buday Received: via spool by 65974-submit@debbugs.gnu.org id=B65974.16946786361012 (code B ref 65974); Thu, 14 Sep 2023 08:04:02 +0000 Received: (at 65974) by debbugs.gnu.org; 14 Sep 2023 08:03:56 +0000 Received: from localhost ([127.0.0.1]:37353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qghKM-0000Fl-O6 for submit@debbugs.gnu.org; Thu, 14 Sep 2023 04:03:55 -0400 Received: from sender11-op-o11.zoho.eu ([31.186.226.225]:17104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qghKK-0000FN-Ma for 65974@debbugs.gnu.org; Thu, 14 Sep 2023 04:03:53 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1694678625; cv=none; d=zohomail.eu; s=zohoarc; b=Vfty2REy+1MOaCf8QL2H7ae7aAZx8s7yY1kGMfH1J6yAUfb+dEzukYv0RMYercg1Ozrwz4wFtXRIUoksLLCsXQ4BwiTIt1FzRIe+YQTaxA/5emd2SIE+X0ffHTKbchUiZ/wZfuGvRtGnOfXiv6JPBkR1AO39qo/S3C6wrH4Tf0E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1694678625; 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=aTeVtNHBSHZDYONy2TfbsxzoMgtXMJtp0WC2q7p1ThC8SoeuP1EnFtWrdGxpJLtRiAXsAdeTjdrJEwRHQQTq82U06Ks1L/9ILwzqBusYmVjb64sv6JOBWMIqOd1Udw9YhIhjKDmk9XXsxwKNL68/aVF77hjNHVb+WQxr17COdSs= 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=1694678625; 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=HGyTYZy5E6suFyD9WYnt57tPpfNN3FVj9MtM/Xcd1dNLzyc2CT606kTOIwBsuf3b osC581Qd1EaIqRIOu1zSCGS1pn/txwJEVyJ2a0flg0HXarsSJIbbIs/Y6KByVT18D3V CwSSJcbkVmlKfmVTdsmhMn+0BLvYan1pCGtPYP41J8MLa5MYXI9hDHYCIHVs2IP4L7J coM6Xh2P0xzrMNqnqS54pxhFmxVl1NTXPVj59/zV+55DAOtxIevDvNb3ecz+DXFwSfQ mwlu+QmPhznNvij8NsNqTvOtbTINwQPg4cqkiLCgAQPk+vOe+WCrYWHnsOH96pno0LE I90X8RSjhA== 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 169467862398136.67784277893645; Thu, 14 Sep 2023 10:03:43 +0200 (CEST) From: Edouard Klein Message-ID: Date: Thu, 14 Sep 2023 10:02:49 +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-Spam-Score: 4.22 X-Spam-Score: 4.22 X-Migadu-Queue-Id: 99075A1D9 X-Migadu-Scanner: mx0.migadu.com X-TUID: W6h8PuGHYINZ * 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