net-misc/netplan: add musl libc compat patch

This commit is contained in:
2024-10-25 08:29:54 +03:00
parent 4abbfa541c
commit acd9ae18ed
3 changed files with 45 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ SLOT="0"
KEYWORDS="~amd64"
IUSE="examples +systemd +bash-completion test lto"
IUSE="elibc_musl +examples +systemd +bash-completion test lto"
REQUIRED_USE="systemd bash-completion"
DEPEND=">=dev-libs/glib-2.64.3
@@ -44,12 +44,22 @@ RDEPEND=">=dev-python/netifaces-0.10.9
app-shells/bash-completion
"
PATCHES=(
"${FILESDIR}/0001-build-add-Gentoo-compat.patch"
)
distutils_enable_sphinx doc
src_prepare() {
local PATCHES=(
"${FILESDIR}/0001-build-add-Gentoo-compat.patch"
)
if use elibc_musl; then
PATCHES+=(
"${FILESDIR}/0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch"
)
fi
default
}
python_configure() {
local emesonargs=(
$(meson_use test unit_testing)