commit:     95fbc62a625a8025f3317e6ddd3b5c431a0968c8
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Wed Nov  6 20:10:23 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Wed Nov  6 20:10:36 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95fbc62a

sys-libs/glibc: introduce USE=+crypt

Today libcrypt.so.1 is provided by glibc. Eventually glibc will
stop providing it in favoud of external providers like libcrypt.

USE=crypt exposes a knob to disable libcrypt.so.1 installation.
Use at your own risk. There currently is no replacement yet in
Gentoo.

Bug: https://bugs.gentoo.org/699422
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-libs/glibc/glibc-2.30-r2.ebuild | 3 ++-
 sys-libs/glibc/metadata.xml         | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/sys-libs/glibc/glibc-2.30-r2.ebuild 
b/sys-libs/glibc/glibc-2.30-r2.ebuild
index 238a8290631..c779a813347 100644
--- a/sys-libs/glibc/glibc-2.30-r2.ebuild
+++ b/sys-libs/glibc/glibc-2.30-r2.ebuild
@@ -34,7 +34,7 @@ PATCH_VER=3
 SRC_URI+=" 
https://dev.gentoo.org/~slyfox/distfiles/${P}-patches-${PATCH_VER}.tar.xz";
 SRC_URI+=" multilib? ( 
https://dev.gentoo.org/~dilfridge/distfiles/gcc-multilib-bootstrap-${GCC_BOOTSTRAP_VER}.tar.xz
 )"
 
-IUSE="audit caps cet compile-locales custom-cflags doc gd headers-only 
+multiarch multilib nscd profile selinux +ssp +static-libs suid systemtap test 
vanilla"
+IUSE="audit caps cet compile-locales +crypt custom-cflags doc gd headers-only 
+multiarch multilib nscd profile selinux +ssp +static-libs suid systemtap test 
vanilla"
 
 # Minimum kernel version that glibc requires
 MIN_KERN_VER="3.2.0"
@@ -941,6 +941,7 @@ glibc_do_configure() {
                --libexecdir='$(libdir)'/misc/glibc
                --with-bugurl=https://bugs.gentoo.org/
                --with-pkgversion="$(glibc_banner)"
+               $(use_enable crypt)
                $(use_multiarch || echo --disable-multi-arch)
                $(use_enable systemtap)
                $(use_enable nscd)

diff --git a/sys-libs/glibc/metadata.xml b/sys-libs/glibc/metadata.xml
index 58d861be030..b00c5f56e58 100644
--- a/sys-libs/glibc/metadata.xml
+++ b/sys-libs/glibc/metadata.xml
@@ -8,6 +8,7 @@
 <use>
  <flag name="cet">Enable Intel Control-flow Enforcement Technology (needs 
binutils 2.29 and gcc 8)</flag>
  <flag name="compile-locales">build *all* locales in src_install; this is 
generally meant for stage building only as it ignores /etc/locale.gen file and 
can be pretty slow</flag>
+ <flag name="crypt">build and install libcrypt and crypt.h</flag>
  <flag name="debug">When USE=hardened, allow fortify/stack violations to dump 
core (SIGABRT) and not kill self (SIGKILL)</flag>
  <flag name="gd">build memusage and memusagestat tools</flag>
  <flag name="multiarch">enable optimizations for multiple CPU architectures 
(detected at runtime)</flag>

Reply via email to