[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
27/30: gnu: gvisor-tap-vsock: Fix build.
From: |
guix-commits |
Subject: |
27/30: gnu: gvisor-tap-vsock: Fix build. |
Date: |
Wed, 3 Jul 2024 17:59:23 -0400 (EDT) |
sharlatan pushed a commit to branch master
in repository guix.
commit 13ae21cd05bc69595bea97cd9c63c5f135e4427f
Author: Jean-Pierre De Jesus DIAZ <jean@foundation.xyz>
AuthorDate: Wed Jul 3 18:36:40 2024 +0200
gnu: gvisor-tap-vsock: Fix build.
* gnu/packages/containers.scm (gvisor-tap-vsock)<arguments>: Remove
'remove-go-references phase, add 'patch-go-reference phase and remove
imported modules.
Change-Id: I202292e303268b3ec0f13f19d4ceba517cd73aaa
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/containers.scm | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/containers.scm b/gnu/packages/containers.scm
index c57f249ebd..8cded06753 100644
--- a/gnu/packages/containers.scm
+++ b/gnu/packages/containers.scm
@@ -7,6 +7,7 @@
;;; Copyright © 2023 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
;;; Copyright © 2024 Foundation Devices, Inc. <hello@foundation.xyz>
+;;; Copyright © 2024 Jean-Pierre De Jesus DIAZ <jean@foundation.xyz>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -392,12 +393,15 @@ configure network interfaces in Linux containers.")
(list
#:make-flags `(list ,(string-append "GIT_VERSION=v" version))
#:test-target "test"
- #:imported-modules
- (source-module-closure `(,@%gnu-build-system-modules
- (guix build go-build-system)))
#:phases
#~(modify-phases %standard-phases
(delete 'configure)
+ ;; Add -trimpath flag to avoid keeping references to go package
+ ;; in the store.
+ (add-after 'unpack 'patch-go-reference
+ (lambda _
+ (substitute* "Makefile"
+ (("go build") "go build -trimpath"))))
(add-before 'build 'setenv
(lambda _
;; For golang toolchain.
@@ -408,9 +412,7 @@ configure network interfaces in Linux containers.")
(invoke "rm" "-r" "test")))
(replace 'install
(lambda _
- (install-file "bin/gvproxy" (string-append #$output "/bin"))))
- (add-after 'install 'remove-go-references
- (@@ (guix build go-build-system) remove-go-references)))))
+ (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")
- 14/30: gnu: Add go-github-com-otiai10-mint., (continued)
- 14/30: gnu: Add go-github-com-otiai10-mint., guix-commits, 2024/07/03
- 15/30: gnu: Add go-github-com-otiai10-copy., guix-commits, 2024/07/03
- 17/30: gnu: Add go-github-com-errata-ai-regexp2., guix-commits, 2024/07/03
- 20/30: gnu: Add go-atomicgo-dev-cursor., guix-commits, 2024/07/03
- 21/30: gnu: Add go-atomicgo-dev-schedule., guix-commits, 2024/07/03
- 23/30: gnu: Add go-github-com-marvinjwendt-testza., guix-commits, 2024/07/03
- 26/30: gnu: Add go-github-com-nwaples-rardecode-v2., guix-commits, 2024/07/03
- 16/30: gnu: Add go-github-com-neurosnap-sentences., guix-commits, 2024/07/03
- 18/30: gnu: Add go-github-com-jdkato-twine., guix-commits, 2024/07/03
- 28/30: gnu: podman: Fix build., guix-commits, 2024/07/03
- 27/30: gnu: gvisor-tap-vsock: Fix build.,
guix-commits <=
- 24/30: gnu: Add go-github-com-pterm-pterm., guix-commits, 2024/07/03
- 30/30: gnu: podman: Update to 5.1.1., guix-commits, 2024/07/03
- 29/30: gnu: buildah: Fix build., guix-commits, 2024/07/03
- 25/30: gnu: go-github-com-masterminds-sprig-v3: Update to 3.2.3., guix-commits, 2024/07/03