Subject: bug#65941: closed (Re: bug#65941: Acknowledgement ([PATCH 05/33] gnu: Add go-github-com-vishvananda-netlink.))

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 14 Sep 2023 07:41:02 +0000

Your bug report

#65941: [PATCH 05/33] gnu: Add go-github-com-vishvananda-netlink.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
65941: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=65941
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#65941: Acknowledgement ([PATCH 05/33] gnu: Add go-github-com-vishvananda-netlink.)
From: Edouard Klein <[email-masked]>
To: [email-masked]
Date: Thu, 14 Sep 2023 09:39:49 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

[email-masked] (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 <[email-masked]>
> (after having been given a bug report number, if it did not have one).
>
> Your message has been sent to the package maintainer(s):
>  [email-masked]
>
> If you wish to submit further information on this problem, please
> send it to [email-masked].
>
> Please do not send mail to [email-masked] unless you wish
> to report a problem with the Bug-tracking system.

Subject: [PATCH 05/33] gnu: Add go-github-com-vishvananda-netlink.
From: Edouard Klein <[email-masked]>
To: [email-masked]
Cc: Edouard Klein <[email-masked]>
Date: Thu, 14 Sep 2023 09:09:12 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/golang.scm (go-github-com-vishvananda-netlink): New variable.
---
 gnu/packages/golang.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 5a00fd0a2b..0f64892d56 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -13259,6 +13259,38 @@ (define-public go-src-elv-sh
 Windows.")
     (license license:bsd-2)))
 
+(define-public go-github-com-vishvananda-netlink
+  (package
+    (name "go-github-com-vishvananda-netlink")
+    (version "1.1.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/vishvananda/netlink")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1vhl30p1gx636a088ls4h6a0l8jjyfvz79fr5w0qzdrg4qg9h08h"))))
+    (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/netlink"))
+    (propagated-inputs `(("go-golang-org-x-sys" ,go-golang-org-x-sys)
+                         ("go-github-com-vishvananda-netns" ,go-github-com-vishvananda-netns)))
+    (home-page "https://github.com/vishvananda/netlink")
+    (synopsis "netlink - netlink library for go")
+    (description
+     "Package netlink provides a simple library for netlink.  Netlink is the interface
+a user-space program in linux uses to communicate with the kernel.  It can be
+used to add and remove interfaces, set up ip addresses and routes, and confiugre
+ipsec.  Netlink communication requires elevated privileges, so in most cases
+this code needs to be run as root.  The low level primitives for netlink are
+contained in the nl subpackage.  This package attempts to provide a high-level
+interface that is loosly modeled on the iproute2 cli.")
+    (license license:asl2.0)))
+
 (define-public go-github-com-vishvananda-netns
   (package
     (name "go-github-com-vishvananda-netns")
-- 
2.40.1