Skip to contentSkip to conversation

podman: remove skopeo rdepends

PATCH Superseded [email protected] 2 participants 4 messages Apr 29, 2024 – May 2, 2024

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 podman: remove skopeo rdepends

From: Patrick Wicki <[email protected]>

Podman does not require skopeo to run. They are both independent tools. In distros like Debian, Fedora and Arch they don't depend on it either.

We do require some of its dependencies, so include those directly. Skopeo also seems to be used in some of podman's tests, so it makes sense to keep it around for the ptest.

---
 recipes-containers/podman/podman_git.bb | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
recipes-containers/podman/podman_git.bb +9 -2
index f69dec16..41f090f0 100644
@@ -55,6 +55,7 @@ TOOLCHAIN = "gcc"
 export BUILDFLAGS="${GOBUILDFLAGS}"
 
 inherit go goarch
+inherit container-host
 inherit systemd pkgconfig ptest
 
 do_configure[noexec] = "1"
@@ -148,8 +149,13 @@ VIRTUAL-RUNTIME_base-utils-nsenter ?= "util-linux-nsenter"
 
 COMPATIBLE_HOST = "^(?!mips).*"
 
-RDEPENDS:${PN} += "\
-	conmon ${VIRTUAL-RUNTIME_container_runtime} iptables ${VIRTUAL-RUNTIME_container_networking} skopeo ${VIRTUAL-RUNTIME_base-utils-nsenter} \
+RDEPENDS:${PN} += " \
+	conmon \
+	iptables \
+	libdevmapper \
+	${VIRTUAL-RUNTIME_base-utils-nsenter} \
+	${VIRTUAL-RUNTIME_container_networking} \
+	${VIRTUAL-RUNTIME_container_runtime} \
 	${@bb.utils.contains('PACKAGECONFIG', 'rootless', 'fuse-overlayfs slirp4netns', '', d)} \
 "
 RRECOMMENDS:${PN} += "slirp4netns \
@@ -172,5 +178,6 @@ RDEPENDS:${PN}-ptest += " \
 	gnupg \
 	jq \
 	make \
+	skopeo \
 	tar \
 "
Signature · 1 line
2.44.0
#1 lore raw

PATCH 2/2 podman: require catatonit

From: Patrick Wicki <[email protected]>

Alternatively, we could add it to RRECOMMENDS. But I would say, given its name, managing pods is part of podman's core functionality and that requires catatonit, which is currently only pulled in for the ptest:

root@qemux86-64:~# podman pod create
Error: building local pause image: finding pause binary: exec: "catatonit": executable file not found in $PATH
---
 recipes-containers/podman/podman_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-containers/podman/podman_git.bb +1 -1
index 41f090f0..7bdefba5 100644
@@ -150,6 +150,7 @@ VIRTUAL-RUNTIME_base-utils-nsenter ?= "util-linux-nsenter"
 COMPATIBLE_HOST = "^(?!mips).*"
 
 RDEPENDS:${PN} += " \
+	catatonit \
 	conmon \
 	iptables \
 	libdevmapper \
@@ -172,7 +173,6 @@ RDEPENDS:${PN}-ptest += " \
 	bash \
 	bats \
 	buildah \
-	catatonit \
 	coreutils \
 	file \
 	gnupg \
Signature · 1 line
2.44.0
#2 lore raw

Re: [meta-virtualization][PATCH 2/2] podman: require catatonit

In message: [meta-virtualization][PATCH 2/2] podman: require catatonit

Quoted 8 lines · on 29/04/2024 Patrick Wicki via lists.yoctoproject.org wrote:

From: Patrick Wicki <[email protected]>

Alternatively, we could add it to RRECOMMENDS. But I would say, given its name, managing pods is part of podman's core functionality and that requires catatonit, which is currently only pulled in for the ptest:

root@qemux86-64:~# podman pod create
Error: building local pause image: finding pause binary: exec: "catatonit": executable file not found in $PATH

We've never required this before since podman create isn't a common use case for our target devices.

The change is fine with me, but I'll wait for it to be resent along with v2 of patch 1/2 as the list dependency formatting will be different.

Bruce

Quoted 39 lines
---
 recipes-containers/podman/podman_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-containers/podman/podman_git.bb +1 -1
index 41f090f0..7bdefba5 100644
@@ -150,6 +150,7 @@ VIRTUAL-RUNTIME_base-utils-nsenter ?= "util-linux-nsenter"
 COMPATIBLE_HOST = "^(?!mips).*"
 
 RDEPENDS:${PN} += " \
+	catatonit \
 	conmon \
 	iptables \
 	libdevmapper \
@@ -172,7 +173,6 @@ RDEPENDS:${PN}-ptest += " \
 	bash \
 	bats \
 	buildah \
-	catatonit \
 	coreutils \
 	file \
 	gnupg \
Signature · 11 lines
2.44.0



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8705): https://lists.yoctoproject.org/g/meta-virtualization/message/8705
Mute This Topic: https://lists.yoctoproject.org/mt/105805580/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#3 lore raw
In reply to [email protected]

Hi Patrick,

In message: [meta-virtualization][PATCH 1/2] podman: remove skopeo rdepends

Quoted 19 lines · on 29/04/2024 Patrick Wicki via lists.yoctoproject.org wrote:

From: Patrick Wicki <[email protected]>

Podman does not require skopeo to run. They are both independent tools. In distros like Debian, Fedora and Arch they don't depend on it either.

We do require some of its dependencies, so include those directly. Skopeo also seems to be used in some of podman's tests, so it makes sense to keep it around for the ptest.

---
 recipes-containers/podman/podman_git.bb | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
recipes-containers/podman/podman_git.bb +0 -0
index f69dec16..41f090f0 100644

recipes-containers/podman/podman_git.bb TOOLCHAIN = "gcc" · line 58

Quoted 4 lines
recipes-containers/podman/podman_git.bb +1 -0
@@ -55,6 +55,7 @@ TOOLCHAIN = "gcc"
 export BUILDFLAGS="${GOBUILDFLAGS}"
 
 inherit go goarch
+inherit container-host

The addition of container-host configuration should be mentioned in the commit log.

Quoted 7 lines
recipes-containers/podman/podman_git.bb +0 -0
 inherit systemd pkgconfig ptest
 
 do_configure[noexec] = "1"
@@ -148,8 +149,13 @@ VIRTUAL-RUNTIME_base-utils-nsenter ?= "util-linux-nsenter"
 
 COMPATIBLE_HOST = "^(?!mips).*"
 

recipes-containers/podman/podman_git.bb VIRTUAL-RUNTIME_base-utils-nsenter ?= "util-linux-nsenter" · line 159

Quoted 10 lines
recipes-containers/podman/podman_git.bb +7 -2
-RDEPENDS:${PN} += "\
-	conmon ${VIRTUAL-RUNTIME_container_runtime} iptables ${VIRTUAL-RUNTIME_container_networking} skopeo ${VIRTUAL-RUNTIME_base-utils-nsenter} \
+RDEPENDS:${PN} += " \
+	conmon \
+	iptables \
+	libdevmapper \
+	${VIRTUAL-RUNTIME_base-utils-nsenter} \
+	${VIRTUAL-RUNTIME_container_networking} \
+	${VIRTUAL-RUNTIME_container_runtime} \
 	${@bb.utils.contains('PACKAGECONFIG', 'rootless', 'fuse-overlayfs slirp4netns', '', d)} \

Many people know that I don't like mixing formatting and functional changes. So in a v2, keep the formatting as is and make the change without sorting or changing the list of rdepends.

Other than that, I agree with the logic of the change and thanks for the patch!

Bruce

Quoted 22 lines
recipes-containers/podman/podman_git.bb +1 -0
 "
 RRECOMMENDS:${PN} += "slirp4netns \
@@ -172,5 +178,6 @@ RDEPENDS:${PN}-ptest += " \
 	gnupg \
 	jq \
 	make \
+	skopeo \
 	tar \
 "
Signature · 11 lines
2.44.0



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8704): https://lists.yoctoproject.org/g/meta-virtualization/message/8704
Mute This Topic: https://lists.yoctoproject.org/mt/105805579/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-