sys-apps/shadow: port to GNU Hurd

Only build btrfs support (what does that even do for shadow?) on Linux
and avoid collision on /bin/login, as sys-kernel/hurd provides its own.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2026-03-10 12:03:58 +00:00
parent 28c15d5664
commit 3608e32cd1
5 changed files with 14 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -42,7 +42,7 @@ COMMON_DEPEND="
"
DEPEND="
${COMMON_DEPEND}
>=sys-kernel/linux-headers-4.14
kernel_linux? ( >=sys-kernel/linux-headers-4.14 )
"
RDEPEND="
${COMMON_DEPEND}

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -42,7 +42,7 @@ COMMON_DEPEND="
"
DEPEND="
${COMMON_DEPEND}
>=sys-kernel/linux-headers-4.14
kernel_linux? ( >=sys-kernel/linux-headers-4.14 )
"
RDEPEND="
${COMMON_DEPEND}

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -42,7 +42,7 @@ COMMON_DEPEND="
"
DEPEND="
${COMMON_DEPEND}
>=sys-kernel/linux-headers-4.14
kernel_linux? ( >=sys-kernel/linux-headers-4.14 )
"
RDEPEND="
${COMMON_DEPEND}

View File

@@ -41,7 +41,7 @@ COMMON_DEPEND="
"
DEPEND="
${COMMON_DEPEND}
>=sys-kernel/linux-headers-4.14
kernel_linux? ( >=sys-kernel/linux-headers-4.14 )
"
RDEPEND="
${COMMON_DEPEND}

View File

@@ -41,7 +41,7 @@ COMMON_DEPEND="
"
DEPEND="
${COMMON_DEPEND}
>=sys-kernel/linux-headers-4.14
kernel_linux? ( >=sys-kernel/linux-headers-4.14 )
"
RDEPEND="
${COMMON_DEPEND}
@@ -86,7 +86,7 @@ src_configure() {
--enable-lastlog
--disable-account-tools-setuid
--disable-static
--with-btrfs
$(use_enable kernel_linux btrfs)
# Use bundled replacements for readpassphrase and freezero
--without-libbsd
--without-group-name-max-length
@@ -221,6 +221,11 @@ src_install() {
if use elibc_musl; then
QA_CONFIG_IMPL_DECL_SKIP+=( sgetsgent )
fi
if use kernel_Hurd ; then
# sys-kernel/hurd provides this instead
rm "${ED}"/bin/login || die
fi
}
pkg_postinst() {