commit:     68061fbd8345c59ec19fbad1bf1569d55186c19a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  8 03:40:44 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep 10 11:28:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68061fbd

profiles/features/musl: set -crypt on sys-libs/musl

musl will still work with its own libcrypt, but applications
and libraries are starting to need a fancier libcrypt (libxcrypt)
so let's disable USE=crypt by default on sys-libs/musl to
have libxcrypt provide crypt.h & libcrypt.so (musl's libcrypt
is included in libc.so).

This brings musl in line with the changes we made for glibc a while
ago. The situation with glibc is a bit different because the migration
is mandatory there, while we're just strongly recommending it for musl
because sys-libs/libxcrypt[-system] causes headaches (see linked
PAM bug for an example, but I've also hit a similar issue with Python
yesterday).

Bug: https://bugs.gentoo.org/867991
Bug: https://bugs.gentoo.org/699422
Signed-off-by: Sam James <sam <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/27187
Signed-off-by: Sam James <sam <AT> gentoo.org>

 profiles/features/musl/package.use | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/profiles/features/musl/package.use 
b/profiles/features/musl/package.use
index 686670ae9ef4..db211e90d794 100644
--- a/profiles/features/musl/package.use
+++ b/profiles/features/musl/package.use
@@ -1,6 +1,12 @@
-# Copyright 1999-2018 Gentoo Foundation.
+# Copyright 1999-2022 Gentoo Authors.
 # Distributed under the terms of the GNU General Public License v2
 
+# Sam James <[email protected]> (2022-09-08)
+# musl isn't removing support for its own crypt,
+# so we don't need to mask the flag, just turn it
+# off by default to steer towards libxcrypt.
+sys-libs/musl -crypt
+
 # Esteve Varela Colominas <[email protected]> (2022-02-19)
 # The musl allocator works well with telegram
 net-im/telegram-desktop -jemalloc

Reply via email to