commit:     af6ed27691d4161c67f60740f74188523e300dc4
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri May 10 14:43:45 2024 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri May 10 14:43:45 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af6ed276

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 <AT> gentoo.org>

 sys-apps/shadow/{shadow-4.14.6.ebuild => shadow-4.14.6-r1.ebuild} | 6 ++----
 1 file 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
similarity index 97%
rename from sys-apps/shadow/shadow-4.14.6.ebuild
rename to 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

Reply via email to