From: Edouard Klein <edk@beaver-labs.com>
To: 65974@debbugs.gnu.org
Cc: Edouard Klein <edk@beaver-labs.com>,
Katherine Cox-Buday <cox.katherine.e+guix@gmail.com>
Subject: [bug#65974] [PATCH 04/33] gnu: Add go-github-com-vishvananda-netns.
Date: Thu, 14 Sep 2023 10:02:49 +0200 [thread overview]
Message-ID: <f2cd7aa9df32855cbdc1bf2ee5993be2139f2258.1694678167.git.edk@beaver-labs.com> (raw)
In-Reply-To: <cover.1694678167.git.edk@beaver-labs.com>
* 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)))
+(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 "operation 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 make
+sure the namespace doesn't change due to a goroutine switch. It is best to
+close @code{NsHandles} when you are done with them. This can be accomplished
+via a `defer ns.Close()` on the handle. Changing namespaces requires elevated
+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")
--
2.40.1
next prev parent reply other threads:[~2023-09-14 8:04 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-14 7:57 [bug#65974] [PATCH 00/33] thirty something go packages Edouard Klein
2023-09-14 8:02 ` [bug#65974] [PATCH 01/33] gnu: Add go-github-com-sourcegraph-go-lsp Edouard Klein
2023-09-14 8:02 ` [bug#65974] [PATCH 02/33] doc: golang: Minor grammar fix on comment Edouard Klein
2023-09-14 8:02 ` [bug#65974] [PATCH 03/33] gnu: Add go-src-elv-sh Edouard Klein
2023-09-14 8:02 ` Edouard Klein [this message]
2023-09-14 8:02 ` [bug#65974] [PATCH 05/33] gnu: Add go-github-com-vishvananda-netlink Edouard Klein
2023-09-14 8:02 ` [bug#65974] [PATCH 06/33] gnu: Add go-github-com-hashicorp-errwrap Edouard Klein
2023-09-14 8:02 ` [bug#65974] [PATCH 07/33] gnu: Add go-github-com-hashicorp-go-multierror Edouard Klein
2023-09-14 8:02 ` [bug#65974] [PATCH 08/33] gnu: Add go-github-com-josharian-native Edouard Klein
2023-09-14 8:02 ` [bug#65974] [PATCH 09/33] gnu: Add go-github-com-pierrec-lz4-v4 Edouard Klein
2023-09-14 8:02 ` [bug#65974] [PATCH 10/33] gnu: Add go-github-com-u-root-uio Edouard Klein
2023-09-14 8:02 ` [bug#65974] [PATCH 11/33] gnu: Fix go-github-com-u-root-uio Edouard Klein
2023-09-14 8:02 ` [bug#65974] [PATCH 12/33] gnu: Add go-github-com-u-root-uio-ulog Edouard Klein
2023-09-14 8:02 ` [bug#65974] [PATCH 13/33] gnu: Add go-github-com-u-root-uio-cp Edouard Klein
2023-09-14 8:02 ` [bug#65974] [PATCH 14/33] gnu: Add go-github-com-u-root-gobusybox-src-pkg-bb Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 15/33] gnu: Add go-github-com-mdlayher-socket Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 16/33] gnu: Add go-github-com-mdlayher-packet Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 17/33] gnu: Add go-github-com-klauspost-pgzip Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 18/33] gnu: Add go-github-com-fanliao-go-promise Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 19/33] gnu: Add go-github-com-hugelgupf-socketpair Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 20/33] gnu: go-golang-org-x-sys: Update to 0.12.0 Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 21/33] gnu: go-github-com-frankban-quicktest: Update to 1.14.6 Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 22/33] gnu: Add go-github-com-cilium-ebpf Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 23/33] gnu: Add go-github-com-mdlayher-netlink Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 24/33] gnu: Add go-github-com-jsimonetti-rtnetlink Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 25/33] gnu: Add go-github-com-neelance-astrewrite Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 26/33] gnu: Add go-github-com-neelance-sourcemap Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 27/33] gnu: Add go-github-com-shurcool-go-importgraphutil Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 28/33] gnu: Add go-github-com-inconshreveable-mousetrap Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 29/33] gnu: Add go-github-com-u-root-uio-rand Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 30/33] gnu: Add go-github-com-insomniacslk-dhcp-dhcpv4 Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 31/33] gnu: Add go-github-com-netflix-go-expect Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 32/33] gnu: Add go-cloud-google-com-go-workflows Edouard Klein
2023-09-14 8:03 ` [bug#65974] [PATCH 33/33] gnu: Add go-github-com-hugelgupf-p9-cmd-p9ufs Edouard Klein
2023-10-10 1:34 ` [bug#65974] Sharlatan Hellseher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f2cd7aa9df32855cbdc1bf2ee5993be2139f2258.1694678167.git.edk@beaver-labs.com \
--to=edk@beaver-labs.com \
--cc=65974@debbugs.gnu.org \
--cc=cox.katherine.e+guix@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).