commit:     15addb9d5957b061750c7ef59130dc3ead89e3b8
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar  9 06:45:18 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 15 22:52:35 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15addb9d

sys-apps/util-linux: adapt to GNU Hurd

Disable Linux-specific features. The agetty check failed for me but
it worked when forcing it, needs checking.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/util-linux/util-linux-2.41.3.ebuild | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/sys-apps/util-linux/util-linux-2.41.3.ebuild 
b/sys-apps/util-linux/util-linux-2.41.3.ebuild
index 28ef863e8f6f..d7577c86e967 100644
--- a/sys-apps/util-linux/util-linux-2.41.3.ebuild
+++ b/sys-apps/util-linux/util-linux-2.41.3.ebuild
@@ -341,6 +341,21 @@ multilib_src_configure() {
                )
        fi
 
+       if [[ ${CTARGET} == *-gnu ]] ; 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

Reply via email to