GNU bug report logs - #65944
[PATCH 04/33] gnu: Add go-github-com-vishvananda-netns.

Previous Next

Package: guix-patches;

Reported by: Edouard Klein <edk <at> beaver-labs.com>

Date: Thu, 14 Sep 2023 07:20:06 UTC

Severity: normal

Tags: patch

Done: Edouard Klein <edou <at> rdklein.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 65944 in the body.
You can then email your comments to 65944 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to cox.katherine.e+guix <at> gmail.com, guix-patches <at> gnu.org:
bug#65944; Package guix-patches. (Thu, 14 Sep 2023 07:20:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Edouard Klein <edk <at> beaver-labs.com>:
New bug report received and forwarded. Copy sent to cox.katherine.e+guix <at> gmail.com, guix-patches <at> gnu.org. (Thu, 14 Sep 2023 07:20:06 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Edouard Klein <edk <at> beaver-labs.com>
To: guix-patches <at> gnu.org
Cc: Edouard Klein <edk <at> beaver-labs.com>
Subject: [PATCH 04/33] gnu: Add go-github-com-vishvananda-netns.
Date: Thu, 14 Sep 2023 09:09:11 +0200
* 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






Reply sent to Edouard Klein <edou <at> rdklein.fr>:
You have taken responsibility. (Thu, 14 Sep 2023 07:41:03 GMT) Full text and rfc822 format available.

Notification sent to Edouard Klein <edk <at> beaver-labs.com>:
bug acknowledged by developer. (Thu, 14 Sep 2023 07:41:03 GMT) Full text and rfc822 format available.

Message #10 received at 65944-done <at> debbugs.gnu.org (full text, mbox):

From: Edouard Klein <edou <at> rdklein.fr>
To: 65944-done <at> debbugs.gnu.org
Subject: Re: bug#65944: Acknowledgement ([PATCH 04/33] gnu: Add
 go-github-com-vishvananda-netns.)
Date: Thu, 14 Sep 2023 09:40:13 +0200
help-debbugs <at> gnu.org (GNU bug Tracking System) writes:

> Thank you for filing a new bug report with debbugs.gnu.org.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> As you requested using X-Debbugs-CC, your message was also forwarded to
>   Katherine Cox-Buday <cox.katherine.e+guix <at> gmail.com>
> (after having been given a bug report number, if it did not have one).
>
> Your message has been sent to the package maintainer(s):
>  guix-patches <at> gnu.org
>
> If you wish to submit further information on this problem, please
> send it to 65944 <at> debbugs.gnu.org.
>
> Please do not send mail to help-debbugs <at> gnu.org unless you wish
> to report a problem with the Bug-tracking system.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 12 Oct 2023 11:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 211 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.