sys-apps/util-linux: Sync with Gentoo

It's from Gentoo commit b7db6027b207d11e6e8ee4bdb5313fbac2741d83.

Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
Flatcar Buildbot 2026-03-23 07:37:08 +00:00 committed by Krzesimir Nowak
parent 4a982a9710
commit 1543958455
2 changed files with 30 additions and 0 deletions

View File

@ -341,6 +341,21 @@ multilib_src_configure() {
)
fi
if use kernel_Hurd ; then
# Disable Linux-specific features
myeconfargs+=(
--disable-partx
--disable-rfkill
--disable-schedutils
--disable-fsck
)
# This is explicitly needed for some reason? TODO
myeconfargs+=(
--enable-agetty
)
fi
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
if multilib_is_native_abi && use python ; then

View File

@ -316,6 +316,21 @@ multilib_src_configure() {
)
fi
if use kernel_Hurd ; then
# Disable Linux-specific features
emesonargs+=(
-Dbuild-partx=disabled
-Dbuild-rfkill=disabled
-Dbuild-schedutils=disabled
-Dbuild-fsck=disabled
)
# This is explicitly needed for some reason? TODO
emesonargs+=(
-Dbuild-agetty=enabled
)
fi
local native_file="${T}"/meson.${CHOST}.${ABI}.ini.local
cat >> ${native_file} <<-EOF || die
[binaries]