package/runc: enable uClibc support
PATCH 1/1 package/runc: enable uClibc support
fexecve was added to uClibc in 2019 in commit858ffad217076227089cc17eb832db0bd1497792.
Runtime tested on a Raspberry PI4 (64 Bit).
System compiled with Bootlin Toolchain.
--- package/runc/Config.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
package/runc/Config.in +1 -2
@@ -3,7 +3,6 @@ config BR2_PACKAGE_RUNC depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS - depends on !BR2_TOOLCHAIN_USES_UCLIBC # no fexecve select BR2_PACKAGE_HOST_GO help runC is a CLI tool for spawning and running containers
@@ -14,4 +13,4 @@ config BR2_PACKAGE_RUNC comment "runc needs a glibc or musl toolchain w/ threads" depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS && \ BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS - depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_USES_UCLIBC + depends on !BR2_TOOLCHAIN_HAS_THREADS
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Waldemar,
Thanks for your patch!
Quoted 24 lines · Waldemar Brodkorb
fexecve was added to uClibc in 2019 in commit
858ffad217076227089cc17eb832db0bd1497792.Runtime tested on a Raspberry PI4 (64 Bit).
System compiled with Bootlin Toolchain.Signed-off-by Waldemar Brodkorb <[email protected]>--- package/runc/Config.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)package/runc/Config.in +0
-1@@ -3,7 +3,6 @@ config BR2_PACKAGE_RUNC depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS - depends on !BR2_TOOLCHAIN_USES_UCLIBC # no fexecve select BR2_PACKAGE_HOST_GO help runC is a CLI tool for spawning and running containers
package/runc/Config.in config BR2_PACKAGE_RUNC · line 13
Quoted 1 line
package/runc/Config.in +0
-0@@ -14,4 +13,4 @@ config BR2_PACKAGE_RUNC comment "runc needs a glibc or musl toolchain w/ threads"
You need to update this comment, to drop "glibc or musl". I had done that locally, because it was trivial.
But the less trivial thing that you need to do is look at the reverse dependencies of runc:
package/containerd/Config.in: select BR2_PACKAGE_RUNC if !BR2_PACKAGE_CRUN # runtime dependency package/podman/Config.in: select BR2_PACKAGE_RUNC if !BR2_PACKAGE_CRUN # runtime
containerd has:
depends on !BR2_TOOLCHAIN_USES_UCLIBC # runc
which is no longer correct since runc no longer depends on !uclibc. So either this dependency can be dropped, or its comment needs to be updated to explain why containerd still doesn't work with uclibc.
Regarding podman, it's even weirder because it doesn't have this dependency.. But I guess that's OK because podman needs rust, and rust is only available for glibc and musl configurations. That's why we didn't see any issue there.
Still, the containerd case needs to be looked at. Can you check this?
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot