me
/
guix
Archived
1
0
Fork 0

gnu: docker: Apply "-trimpath" flag.

* gnu/packages/docker.scm (docker) [arguments]:
<#:phases>: Remove 'remove-go-references phase.
Set BUILDFLAGS=-trimpath to replace 'remove-go-references phase in
'build phase.

Change-Id: Iada1a8764808d26e476ca8ca87a23061834f78be
master
Sharlatan Hellseher 2024-06-19 22:38:00 +01:00
parent caf5cfaa0d
commit 6d520b8c0c
No known key found for this signature in database
GPG Key ID: 76D727BFF62CD2B5
1 changed files with 2 additions and 3 deletions

View File

@ -547,6 +547,7 @@ runcexecutor/executor.go"
;; Our LD doesn't like the statically linked relocatable things
;; that go produces, so install the dynamic version of
;; dockerd instead.
(setenv "BUILDFLAGS" "-trimpath")
(invoke "hack/make.sh" "dynbinary")))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
@ -570,9 +571,7 @@ runcexecutor/executor.go"
(install-file "bundles/dynbinary-daemon/dockerd" out-bin)
(install-file (string-append "bundles/dynbinary-daemon/dockerd-"
(getenv "VERSION"))
out-bin))))
(add-after 'install 'remove-go-references
(assoc-ref go:%standard-phases 'remove-go-references)))))
out-bin)))))))
(inputs
(list btrfs-progs
containerd ; for containerd-shim