diff options
author | Mike Gilbert <floppym@gentoo.org> | 2024-05-10 10:43:45 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2024-05-10 10:43:45 -0400 |
commit | af6ed27691d4161c67f60740f74188523e300dc4 (patch) | |
tree | ac6d8492e35ec664a03a8f396e456ec624c5ed80 /sys-apps/shadow | |
parent | dev-lisp/ecl: bump to 24.5.10 (diff) | |
download | gentoo-af6ed27691d4161c67f60740f74188523e300dc4.tar.gz gentoo-af6ed27691d4161c67f60740f74188523e300dc4.tar.bz2 gentoo-af6ed27691d4161c67f60740f74188523e300dc4.zip |
sys-apps/shadow: do not use libbsd
Only 2 functions are used: readpassphrase and freezero.
freezero is a trivial wrapper around explicit_bzero and free.
readpassphrase has been copied locally from OpenBSD.
No need to pull in libbsd and its deps for this.
Closes: https://bugs.gentoo.org/924684
Closes: https://bugs.gentoo.org/931668
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-apps/shadow')
-rw-r--r-- | sys-apps/shadow/shadow-4.14.6-r1.ebuild (renamed from sys-apps/shadow/shadow-4.14.6.ebuild) | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys-apps/shadow/shadow-4.14.6.ebuild b/sys-apps/shadow/shadow-4.14.6-r1.ebuild index 60ab0fa7c897..2cfb43e405bd 100644 --- a/sys-apps/shadow/shadow-4.14.6.ebuild +++ b/sys-apps/shadow/shadow-4.14.6-r1.ebuild @@ -24,9 +24,7 @@ LANGS=( cs da de es fi fr hu id it ja ko pl pt_BR ru sv tr zh_CN zh_TW ) REQUIRED_USE="?? ( cracklib pam )" -# TODO: Revisit libbsd dep once glibc-2.28 is stable as it provides strlcpy. COMMON_DEPEND=" - dev-libs/libbsd virtual/libcrypt:= acl? ( sys-apps/acl:= ) audit? ( >=sys-process/audit-2.6:= ) @@ -83,8 +81,8 @@ src_configure() { --disable-account-tools-setuid --disable-static --with-btrfs - # shadow uses a bundled copy of readpassphrase if --without-libbsd - --with-libbsd + # Use bundled replacements for readpassphrase and freezero + --without-libbsd --without-group-name-max-length --without-tcb --with-bcrypt |