mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-21 16:32:45 -09:00
Upstream lists uClibc-ng support as a "nice-to-have, eventually", and
tracks the required build fixes as an enhancement:
https://bugs.passt.top/show_bug.cgi?id=5
passt relies on interfaces and definitions missing from uClibc,
resulting in build failures such as:
qrap.c:145:25: error: 'ARG_MAX' undeclared
tcp.c:2926:34: error: storage size of 'wnd' isn't known
tcp.c:3321:47: error: 'TCP_SEND_QUEUE' undeclared
Disable passt for uClibc toolchains and propagate the dependency to
Podman's passt backend.
Fixes:
- http://autobuild.buildroot.org/results/7e4/7e4434e01baece4d090e44b4b3713f2eeefc1e27/
- http://autobuild.buildroot.org/results/3f6/3f60889b4599f1bc42a69076f6fe469517ea9ab5/
Signed-off-by: Joseph Kogut <joseph@anodize.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 87e95b9877)
Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
100 lines
3.1 KiB
Plaintext
100 lines
3.1 KiB
Plaintext
config BR2_PACKAGE_PODMAN
|
|
bool "podman"
|
|
depends on BR2_USE_MMU # fork()
|
|
depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS # host-go
|
|
depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # netavark
|
|
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgpgme
|
|
depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS # libseccomp
|
|
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 # shadow
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS # conmon
|
|
depends on BR2_USE_WCHAR # conmon
|
|
select BR2_PACKAGE_HOST_GO
|
|
select BR2_PACKAGE_CA_CERTIFICATES # runtime
|
|
select BR2_PACKAGE_CGROUPFS_V2_MOUNT if !BR2_PACKAGE_CGROUPFS_MOUNT && !BR2_INIT_SYSTEMD # runtime
|
|
select BR2_PACKAGE_CONMON # runtime
|
|
select BR2_PACKAGE_CONTAINERS_IMAGE_CONFIG # runtime
|
|
select BR2_PACKAGE_LIBGPGME
|
|
select BR2_PACKAGE_LIBSECCOMP
|
|
select BR2_PACKAGE_NETAVARK # runtime
|
|
# podman officially only supports crun, but compatible runtimes are
|
|
# also accepted. So we do the select the other way around, to match
|
|
# docker-engine's own select and thus avoid circular dependency
|
|
# issues.
|
|
select BR2_PACKAGE_RUNC if !BR2_PACKAGE_CRUN # runtime
|
|
select BR2_PACKAGE_SHADOW
|
|
select BR2_PACKAGE_SHADOW_SUBORDINATE_IDS
|
|
help
|
|
The best free & open source container tools
|
|
|
|
Manage containers, pods, and images with Podman. Seamlessly
|
|
work with containers and Kubernetes from your local
|
|
environment.
|
|
|
|
https://podman.io/
|
|
|
|
if BR2_PACKAGE_PODMAN
|
|
|
|
choice
|
|
bool "support podman-init"
|
|
default BR2_PACKAGE_PODMAN_INIT_CATATONIT
|
|
help
|
|
Support providing a minimal init process for containers.
|
|
Required to use "podman container run --init".
|
|
|
|
config BR2_PACKAGE_PODMAN_INIT_NONE
|
|
bool "none"
|
|
help
|
|
Do not support docker-init.
|
|
|
|
config BR2_PACKAGE_PODMAN_INIT_CATATONIT
|
|
bool "catatonit"
|
|
select BR2_PACKAGE_CATATONIT # runtime
|
|
help
|
|
Support providing a minimal init process for containers,
|
|
using catatonit.
|
|
|
|
config BR2_PACKAGE_PODMAN_INIT_TINI
|
|
bool "tini"
|
|
select BR2_PACKAGE_TINI # runtime
|
|
help
|
|
Support providing a minimal init process for containers,
|
|
using tini.
|
|
|
|
endchoice
|
|
|
|
config BR2_PACKAGE_PODMAN_INIT_NAME
|
|
string
|
|
default "tini" if BR2_PACKAGE_PODMAN_INIT_TINI
|
|
default "catatonit" if BR2_PACKAGE_PODMAN_INIT_CATATONIT
|
|
|
|
choice
|
|
bool "Network backend"
|
|
|
|
config BR2_PACKAGE_PODMAN_NET_PASST
|
|
bool "passt/pasta"
|
|
depends on !BR2_TOOLCHAIN_USES_UCLIBC # passt
|
|
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9 # passt
|
|
select BR2_PACKAGE_PASST # runtime
|
|
|
|
comment "passt/pasta backend needs a glibc or musl toolchain w/ headers >= 5.9"
|
|
depends on BR2_TOOLCHAIN_USES_UCLIBC || \
|
|
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9
|
|
|
|
config BR2_PACKAGE_PODMAN_NET_SLIRP4NETNS
|
|
bool "slirp4netns"
|
|
select BR2_PACKAGE_SLIRP4NETNS # runtime
|
|
|
|
endchoice
|
|
|
|
endif
|
|
|
|
comment "podman needs a toolchain w/ headers >= 4.14, threads, wchar"
|
|
depends on BR2_USE_MMU
|
|
depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
|
|
depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
|
|
depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS
|
|
depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS
|
|
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 \
|
|
|| !BR2_TOOLCHAIN_HAS_THREADS \
|
|
|| !BR2_USE_WCHAR
|