[PATCH 10/94] sys-apps/util-linux: adapt to GNU Hurd

Sam James <[email protected]>
Newsgroups gmane.linux.gentoo.devel
Message-ID <8d860476460bdc0a07131c76cafa0960ff50e1cc.1774994285.git.sam@gentoo.org>
Disable Linux-specific features. The agetty check failed for me but
it worked when forcing it, needs checking.

Signed-off-by: Sam James <[email protected]>
---
 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 28ef863e8f6f3..d7577c86e9678 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
-- 
2.53.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.