GNU bug report logs - #69572
[PATCH] gnu: Add gvisor-tap-vsock.

Previous Next

Package: guix-patches;

Reported by: Tomas Volf <~@wolfsden.cz>

Date: Tue, 5 Mar 2024 23:51:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

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 69572 in the body.
You can then email your comments to 69572 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 guix-patches <at> gnu.org:
bug#69572; Package guix-patches. (Tue, 05 Mar 2024 23:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tomas Volf <~@wolfsden.cz>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 05 Mar 2024 23:51:02 GMT) Full text and rfc822 format available.

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

From: Tomas Volf <~@wolfsden.cz>
To: guix-patches <at> gnu.org
Cc: Tomas Volf <~@wolfsden.cz>
Subject: [PATCH] gnu: Add gvisor-tap-vsock.
Date: Wed,  6 Mar 2024 00:48:56 +0100
* gnu/packages/containers.scm (gvisor-tap-vsock): New variable.

Change-Id: I50c51613509e84998f17b4be593ce80c16002778
---
The binary name is mentioned in the description because I expect that to be what
most people search for.  I knew I need `gvproxy', I had no idea what was the
actual name of the project.

 gnu/packages/containers.scm | 44 +++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm
index aa270a25f3..d041263f3a 100644
--- a/gnu/packages/containers.scm
+++ b/gnu/packages/containers.scm
@@ -336,6 +336,50 @@ (define-public cni-plugins
 configure network interfaces in Linux containers.")
     (license license:asl2.0)))

+(define-public gvisor-tap-vsock
+  (package
+    (name "gvisor-tap-vsock")
+    (version "0.7.3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/containers/gvisor-tap-vsock")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1q1zism0c63k2aq6yhkjqc3b2zsm4lwn0bk39p2kl79h798wfyp4"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list
+      #:make-flags `(list ,(string-append "GIT_VERSION=v" version))
+      #:test-target "test"
+      #:phases
+      #~(modify-phases %standard-phases
+          (delete 'configure)
+          (add-before 'build 'setenv
+            (lambda _
+              ;; For golang toolchain.
+              (setenv "HOME" "/tmp")))
+          (add-before 'check 'prune-tests
+            (lambda _
+              ;; Requires internet connection to fetch QEMU image.
+              (invoke "rm" "-r" "test")))
+          (replace 'install
+            (lambda _
+              (install-file "bin/gvproxy" (string-append #$output "/bin")))))))
+    (native-inputs (list go-1.20))
+    (home-page "https://github.com/containers/gvisor-tap-vsock")
+    (synopsis "Network stack for virtualization based on gVisor")
+    (description "This package provides a replacement for @code{libslirp} and
+@code{VPNKit}, written in pure Go.  It is based on the network stack of gVisor
+and brings a configurable DNS server and dynamic port forwarding.
+
+It can be used with QEMU, Hyperkit, Hyper-V and User Mode Linux.
+
+The binary is called gvproxy.")
+    (license license:asl2.0)))
+
 ;; For podman to work, the user needs to run
 ;; `sudo mount -t cgroup2 none /sys/fs/cgroup`


base-commit: f18d13b5f89c161c6ee88d15ecdaa8d973ee4503
--
2.41.0




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Fri, 22 Mar 2024 10:54:04 GMT) Full text and rfc822 format available.

Notification sent to Tomas Volf <~@wolfsden.cz>:
bug acknowledged by developer. (Fri, 22 Mar 2024 10:54:05 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Tomas Volf <~@wolfsden.cz>
Cc: 69572-done <at> debbugs.gnu.org
Subject: Re: [bug#69572] [PATCH] gnu: Add gvisor-tap-vsock.
Date: Fri, 22 Mar 2024 11:37:04 +0100
[Message part 1 (text/plain, inline)]
Hi,

Tomas Volf <~@wolfsden.cz> skribis:

> * gnu/packages/containers.scm (gvisor-tap-vsock): New variable.
>
> Change-Id: I50c51613509e84998f17b4be593ce80c16002778

Applied with these oh-so-important changes:

[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm
index eca7a697b7..61c7e74c78 100644
--- a/gnu/packages/containers.scm
+++ b/gnu/packages/containers.scm
@@ -375,9 +375,9 @@ (define-public gvisor-tap-vsock
 @code{VPNKit}, written in pure Go.  It is based on the network stack of gVisor
 and brings a configurable DNS server and dynamic port forwarding.
 
-It can be used with QEMU, Hyperkit, Hyper-V and User Mode Linux.
+It can be used with QEMU, Hyperkit, Hyper-V and User-Mode Linux.
 
-The binary is called gvproxy.")
+The binary is called @command{gvproxy}.")
     (license license:asl2.0)))
 
 ;; For podman to work, the user needs to run
[Message part 3 (text/plain, inline)]
Thanks,
Ludo’.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 19 Apr 2024 11:24:21 GMT) Full text and rfc822 format available.

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

Previous Next


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