sys-libs/glibc: add USE=rpc to control obsolete RPC/NIS APIs #381391 #576278
authorMike Frysinger <vapier@gentoo.org>
Wed, 30 Mar 2016 19:55:57 +0000 (15:55 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 30 Mar 2016 22:01:21 +0000 (18:01 -0400)
sys-libs/glibc/files/eblits/src_configure.eblit
sys-libs/glibc/glibc-2.23.ebuild
sys-libs/glibc/glibc-9999.ebuild
sys-libs/glibc/metadata.xml

index 99964fbee98e8afceaf0435fad98736b52431675..41ba5ddf7ad07dd409f22c98acf1f065d6cc3378 100644 (file)
@@ -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}
index a9d384a9b29b0f933f1e2f496b847e3cab161384..c8cb72a81459c4d510dacba292ed33768ea22292 100644 (file)
@@ -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
index d2b9c01ed965b3fde10df4b19488906924c8d625..3263afea8618688897330a20c6aa46cae20c5674 100644 (file)
@@ -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
index 4fdcae4d830a8f0ea878ad3c4be855fdadb016b9..e6ebe220ca6b1d06571065a7d5ee74e1a1908157 100644 (file)
@@ -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>