Install this version:
emerge -a =net-libs/libslirp-4.9.3
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-libs/libslirp-4.9.3
Or alternatively:
emerge --autounmask-write -a =net-libs/libslirp-4.9.3
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 4.9.3 | 8 | ~amd64 ~arm64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~x86 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
MY_P="${PN}-v${PV}"
DESCRIPTION="A TCP-IP emulator used to provide virtual networking services"
HOMEPAGE="https://gitlab.freedesktop.org/slirp/libslirp"
SRC_URI="https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v${PV}/${MY_P}.tar.bz2 -> ${P}.tar.bz2"
S=${WORKDIR}/${MY_P}
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~x86"
IUSE="static-libs valgrind"
RDEPEND="dev-libs/glib:="
# Valgrind usage is automagic but it's not so bad given it's a header-only dep.
DEPEND="${RDEPEND}
valgrind? ( dev-debug/valgrind )
"
src_prepare() {
echo "${PV}" > .tarball-version || die
echo -e "#!${BASH}\necho -n \$(cat '${S}/.tarball-version')" > build-aux/git-version-gen || die
default
}
src_configure() {
local emesonargs=(
-Ddefault_library=$(usex static-libs both shared)
)
meson_src_configure
}
Manage flags for this package:
euse -i <flag> -p net-libs/libslirp |
euse -E <flag> -p net-libs/libslirp |
euse -D <flag> -p net-libs/libslirp
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | libslirp-4.9.3.tar.bz2 | 133720 bytes | https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v4.9.3/libslirp-v4.9.3.tar.bz2 |