commit:     7998e81a4b5423a4501ee8faee05089c9f3df7c5
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 30 19:55:57 2016 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Wed Mar 30 22:01:21 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7998e81a

sys-libs/glibc: add USE=rpc to control obsolete RPC/NIS APIs #381391 #576278

 sys-libs/glibc/files/eblits/src_configure.eblit | 2 +-
 sys-libs/glibc/glibc-2.23.ebuild                | 2 +-
 sys-libs/glibc/glibc-9999.ebuild                | 2 +-
 sys-libs/glibc/metadata.xml                     | 1 +
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/sys-libs/glibc/files/eblits/src_configure.eblit 
b/sys-libs/glibc/files/eblits/src_configure.eblit
index 99964fb..41ba5dd 100644
--- a/sys-libs/glibc/files/eblits/src_configure.eblit
+++ b/sys-libs/glibc/files/eblits/src_configure.eblit
@@ -113,7 +113,7 @@ glibc_do_configure() {
                --with-bugurl=http://bugs.gentoo.org/
                --with-pkgversion="$(glibc_banner)"
                $(use_multiarch || echo --disable-multi-arch)
-               --enable-obsolete-rpc
+               $(in_iuse rpc && use_enable rpc obsolete-rpc || echo 
--enable-obsolete-rpc)
                $(in_iuse systemtap && use_enable systemtap)
                $(in_iuse nscd && use_enable nscd)
                ${EXTRA_ECONF}

diff --git a/sys-libs/glibc/glibc-2.23.ebuild b/sys-libs/glibc/glibc-2.23.ebuild
index a9d384a..c8cb72a 100644
--- a/sys-libs/glibc/glibc-2.23.ebuild
+++ b/sys-libs/glibc/glibc-2.23.ebuild
@@ -30,7 +30,7 @@ GCC_BOOTSTRAP_VER="4.7.3-r1"
 PATCH_VER="3"                                  # Gentoo patchset
 : ${NPTL_KERN_VER:="2.6.32"}                   # min kernel version nptl 
requires
 
-IUSE="debug gd hardened multilib nscd selinux systemtap profile suid vanilla 
crosscompile_opts_headers-only"
+IUSE="debug gd hardened multilib nscd +rpc selinux systemtap profile suid 
vanilla crosscompile_opts_headers-only"
 
 # Here's how the cross-compile logic breaks down ...
 #  CTARGET - machine that will target the binaries

diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index d2b9c01..3263afe 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -30,7 +30,7 @@ GCC_BOOTSTRAP_VER="4.7.3-r1"
 PATCH_VER=""                                   # Gentoo patchset
 : ${NPTL_KERN_VER:="2.6.32"}                   # min kernel version nptl 
requires
 
-IUSE="debug gd hardened multilib nscd selinux systemtap profile suid vanilla 
crosscompile_opts_headers-only"
+IUSE="debug gd hardened multilib nscd +rpc selinux systemtap profile suid 
vanilla crosscompile_opts_headers-only"
 
 # Here's how the cross-compile logic breaks down ...
 #  CTARGET - machine that will target the binaries

diff --git a/sys-libs/glibc/metadata.xml b/sys-libs/glibc/metadata.xml
index 4fdcae4..e6ebe22 100644
--- a/sys-libs/glibc/metadata.xml
+++ b/sys-libs/glibc/metadata.xml
@@ -9,6 +9,7 @@
  <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="nscd">Build, and enable support for, the Name Service Cache 
Daemon</flag>
+ <flag name="rpc">Enable obsolete RPC/NIS layers (disabling is experimental -- 
see bug 381391)</flag>
  <flag name="suid">Make internal pt_chown helper setuid -- not needed if using 
Linux and have /dev/pts mounted with gid=5</flag>
  <flag name="systemtap">enable systemtap static probe points</flag>
 </use>

Reply via email to