[packaging/kde-buildstream] elements/components: components/docker.bst: Depend on containerd

Harald Sitter <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 37dd61418625442cce9960f8b7fe5f61b4fdb8f2 by Harald Sitter, on behalf of Aleix Pol.
Committed on 29/07/2026 at 17:19.
Pushed by sitter into branch 'master'.

components/docker.bst: Depend on containerd

And add containerd.bst

Fixes https://invent.kde.org/kde-linux/kde-linux/-/work_items/698

A  +40   -0    elements/components/containerd.bst
M  +3    -0    elements/components/docker.bst

https://invent.kde.org/packaging/kde-buildstream/-/commit/37dd61418625442cce9960f8b7fe5f61b4fdb8f2

diff --git a/elements/components/containerd.bst b/elements/components/containerd.bst
new file mode 100644
index 0000000..28c6b23
--- /dev/null
+++ b/elements/components/containerd.bst
@@ -0,0 +1,40 @@
+# SPDX-FileCopyrightText: 2026 Aleix Pol Gonzalez <[email protected]>
+# SPDX-License-Identifier: BSD-2-Clause
+
+# Inspired by Arch Linux's PKGBUILD:
+# https://gitlab.archlinux.org/archlinux/packaging/packages/containerd/-/raw/main/PKGBUILD?ref_type=heads
+kind: manual
+
+description: An open and reliable container runtime
+
+build-depends:
+- freedesktop-sdk.bst:public-stacks/buildsystem-make.bst
+- freedesktop-sdk.bst:components/go.bst
+- freedesktop-sdk.bst:components/go-md2man.bst
+- freedesktop-sdk.bst:components/pkg-config.bst
+
+depends:
+- freedesktop-sdk.bst:public-stacks/runtime-minimal.bst
+- freedesktop-sdk.bst:components/btrfs-progs.bst
+- freedesktop-sdk.bst:components/libseccomp.bst
+
+config:
+  build-commands:
+  - |
+    export GOFLAGS='-trimpath -mod=vendor -modcacherw'
+    make VERSION=v2.3.3 GO_BUILD_FLAGS="$GOFLAGS" GO_GCFLAGS='' EXTRA_LDFLAGS='-buildid='
+    make VERSION=v2.3.3 man
+  install-commands:
+  - |
+    make PREFIX="%{prefix}" DESTDIR="%{install-root}" install
+    install -Dm644 containerd.service "%{install-root}%{prefix}/lib/systemd/system/containerd.service"
+    install -Dm644 man/*.8 -t "%{install-root}%{mandir}/man8"
+    install -Dm644 man/*.5 -t "%{install-root}%{mandir}/man5"
+    install -Dm644 contrib/autocomplete/ctr "%{install-root}%{datadir}/bash-completion/completions/ctr"
+    install -Dm644 contrib/autocomplete/zsh_autocomplete "%{install-root}%{datadir}/zsh/site-functions/_ctr"
+
+sources:
+- kind: git_repo
+  url: github:containerd/containerd.git
+  track: 'v*'
+  ref: v2.3.3-0-gaad11006b869517fcd3009450b6f82da282e1a9b
diff --git a/elements/components/docker.bst b/elements/components/docker.bst
index 020f6e7..3fa877f 100644
--- a/elements/components/docker.bst
+++ b/elements/components/docker.bst
@@ -29,6 +29,9 @@ depends:
 - freedesktop-sdk.bst:components/systemd-libs.bst
 - freedesktop-sdk.bst:public-stacks/runtime-minimal.bst
 
+runtime-depends:
+- components/containerd.bst
+
 config:
   build-commands:
   - |
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.