sys-apps/bubblewrap - 0.11.2 (gentoo)

Search

Install

Install this version:

emerge -a =sys-apps/bubblewrap-0.11.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-apps/bubblewrap-0.11.2

Or alternatively:

emerge --autounmask-write -a =sys-apps/bubblewrap-0.11.2

Package Information

Description:
Unprivileged sandboxing tool, namespaces-powered chroot-like solution
Homepage:
https://github.com/containers/bubblewrap/
License:
LGPL-2+

Ebuild Details

Version EAPI Keywords Slot
0.11.2 8 amd64 arm arm64 ~loong ppc ppc64 ~riscv x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit bash-completion-r1 linux-info meson

DESCRIPTION="Unprivileged sandboxing tool, namespaces-powered chroot-like solution"
HOMEPAGE="https://github.com/containers/bubblewrap/"
SRC_URI="https://github.com/containers/${PN}/releases/download/v${PV}/${P}.tar.xz"

LICENSE="LGPL-2+"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv x86"
IUSE="selinux suid"

RDEPEND="
	sys-libs/libseccomp
	sys-libs/libcap
	selinux? ( >=sys-libs/libselinux-2.1.9 )
"
DEPEND="${RDEPEND}"
BDEPEND="
	app-text/docbook-xml-dtd:4.3
	app-text/docbook-xsl-stylesheets
	dev-libs/libxslt
	virtual/pkgconfig
"

# tests require root privileges
RESTRICT="test"

PATCHES=(
	"${FILESDIR}"/${PN}-0.11.2-no-werror.patch
)

pkg_setup() {
	if [[ ${MERGE_TYPE} != buildonly ]]; then
		CONFIG_CHECK="~UTS_NS ~IPC_NS ~USER_NS ~PID_NS ~NET_NS"
		linux-info_pkg_setup
	fi
}

src_configure() {
	local emesonargs=(
		-Dbash_completion=enabled
		-Dbash_completion_dir="$(get_bashcompdir)"
		-Dman=enabled
		-Dtests=false
		# whether bwrap will run under suid mode
		-Dsupport_setuid=$(usex suid true false)
		-Dzsh_completion=enabled
		$(meson_feature selinux)
	)

	meson_src_configure
}

src_install() {
	meson_src_install

	if use suid; then
		chmod u+s "${ED}"/usr/bin/bwrap
	fi
}

USE Flags

Manage flags for this package: euse -i <flag> -p sys-apps/bubblewrap | euse -E <flag> -p sys-apps/bubblewrap | euse -D <flag> -p sys-apps/bubblewrap

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	sys-libs/libseccomp
	sys-libs/libcap
	selinux? ( >=sys-libs/libselinux-2.1.9 )

RDEPEND

	sys-libs/libseccomp
	sys-libs/libcap
	selinux? ( >=sys-libs/libselinux-2.1.9 )

BDEPEND

	app-text/docbook-xml-dtd:4.3
	app-text/docbook-xsl-stylesheets
	dev-libs/libxslt
	virtual/pkgconfig

Manifest for 0.11.2

Type File Size Source URLs
DIST bubblewrap-0.11.2.tar.xz 116336 bytes https://github.com/containers/bubblewrap/releases/download/v0.11.2/bubblewrap-0.11.2.tar.xz