[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#52790] [PATCH v3 3/7] gnu: containerd: Update to 1.6.4.
From: |
Pierre Langlois |
Subject: |
[bug#52790] [PATCH v3 3/7] gnu: containerd: Update to 1.6.4. |
Date: |
Tue, 10 May 2022 00:35:15 +0100 |
* gnu/packages/docker.scm (containerd): Update to 1.6.4.
[arguments]: Substitute runc binary for "pkg/cri/config/config_unix.go". Set
PREFIX to empty string, as the install directory is $DESTDIR/$PREFIX.
---
gnu/packages/docker.scm | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm
index 5c0f4d496d..e95614cfae 100644
--- a/gnu/packages/docker.scm
+++ b/gnu/packages/docker.scm
@@ -174,7 +174,7 @@ (define-public python-docker-pycreds
(define-public containerd
(package
(name "containerd")
- (version "1.4.4")
+ (version "1.6.4")
(source
(origin
(method git-fetch)
@@ -183,7 +183,7 @@ (define-public containerd
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "0qjbfj1dw6pykxhh8zahcxlgpyjzgnrngk5vjaf34akwyan8nrxb"))))
+ (base32 "1hy5jaf5x8lffh3p4hdkk6ar8i4w84i0b539k1h5baqx9gnq2l2s"))))
(build-system go-build-system)
(arguments
(let ((make-flags (list (string-append "VERSION=" version)
@@ -203,6 +203,11 @@ (define-public containerd
(string-append "defaultShim = \""
(assoc-ref outputs "out")
"/bin/containerd-shim\"\n")))
+ (substitute* "pkg/cri/config/config_unix.go"
+ (("DefaultRuntimeName: \"runc\"")
+ (string-append "DefaultRuntimeName: \""
+ (assoc-ref inputs "runc")
+ "/sbin/runc\"")))
(substitute* "vendor/github.com/containerd/go-runc/runc.go"
(("DefaultCommand[ \t]*=.*")
(string-append "DefaultCommand = \""
@@ -226,8 +231,8 @@ (define-public containerd
(lambda* (#:key import-path outputs #:allow-other-keys)
(with-directory-excursion (string-append "src/" import-path)
(let* ((out (assoc-ref outputs "out")))
- (apply invoke "make" (string-append "DESTDIR=" out)
"install"
- ',make-flags)))))))))
+ (apply invoke "make" (string-append "DESTDIR=" out)
+ "PREFIX=" "install" ',make-flags)))))))))
(inputs
(list btrfs-progs libseccomp pigz runc util-linux))
(native-inputs
--
2.36.0
- [bug#52790] [PATCH v3 0/7] Update docker to 20.10.15., Pierre Langlois, 2022/05/09
- [bug#52790] [PATCH v3 1/7] gnu: runc: Update to 1.1.1., Pierre Langlois, 2022/05/09
- [bug#52790] [PATCH v3 2/7] gnu: containerd: Fix patch-paths build phase., Pierre Langlois, 2022/05/09
- [bug#52790] [PATCH v3 4/7] gnu: containerd: Switch to gexp arguments., Pierre Langlois, 2022/05/09
- [bug#52790] [PATCH v3 3/7] gnu: containerd: Update to 1.6.4.,
Pierre Langlois <=
- [bug#52790] [PATCH v3 5/7] gnu: docker: Fix mkfs.xfs reference., Pierre Langlois, 2022/05/09
- [bug#52790] [PATCH v3 7/7] gnu: docker: Switch to gexp and new input style., Pierre Langlois, 2022/05/09
- [bug#52790] [PATCH v3 6/7] gnu: docker: Update to 20.10.15., Pierre Langlois, 2022/05/09