[bug#73940,v2] gnu: gvisor-tap-vsock: Update to 0.8.6.

Message ID f058d6469223dc2721a879d4ef71475d8adbc699.1748379423.git.~@wolfsden.cz
State New
Headers
Series [bug#73940,v2] gnu: gvisor-tap-vsock: Update to 0.8.6. |

Commit Message

Tomas Volf May 27, 2025, 8:57 p.m. UTC
  * gnu/packages/containers.scm (gvisor-tap-vsock): Update to 0.8.6.
[arguments]<#:phases>{'prune-tests}: Adjust.
[native-inputs]: Use go-1.23.

Change-Id: Ia591a145c519b4f0cdfcd20a76ccdb625c097676
---
 gnu/packages/containers.scm | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)
  

Comments

Andreas Enge June 2, 2025, 11:40 a.m. UTC | #1
Pushed!

Andreas
  

Patch

diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm
index be3e05f862..51457a85d0 100644
--- a/gnu/packages/containers.scm
+++ b/gnu/packages/containers.scm
@@ -391,7 +391,7 @@  (define-public cni-plugins
 (define-public gvisor-tap-vsock
   (package
     (name "gvisor-tap-vsock")
-    (version "0.7.3")
+    (version "0.8.6")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -400,7 +400,7 @@  (define-public gvisor-tap-vsock
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "1q1zism0c63k2aq6yhkjqc3b2zsm4lwn0bk39p2kl79h798wfyp4"))))
+                "18pwpw3dap42mpv5a1ciq6fh0y8ya5ix7r38bi8i1xc7dxcy3jdj"))))
     (build-system gnu-build-system)
     (arguments
      (list
@@ -422,11 +422,19 @@  (define-public gvisor-tap-vsock
           (add-before 'check 'prune-tests
             (lambda _
               ;; Requires internet connection to fetch QEMU image.
-              (invoke "rm" "-r" "test")))
+              (invoke "rm" "-r" "test-qemu")
+              ;; Requires working DNS.
+              (substitute* "pkg/services/dns/dns_test.go"
+                (("Should pass DNS requests to default system DNS.*" all)
+                 (string-append all "\n" "ginkgo.Skip(\"No network.\");"))
+                (("\"redhat.com\",")
+                 "\"localhost\",")
+                (("\"52.200.142.250\"")
+                 "\"127.0.0.1\""))))
           (replace 'install
             (lambda _
               (install-file "bin/gvproxy" (string-append #$output "/bin")))))))
-    (native-inputs (list go-1.20))
+    (native-inputs (list go-1.23))
     (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