From 7998e81a4b5423a4501ee8faee05089c9f3df7c5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 30 Mar 2016 15:55:57 -0400 Subject: [PATCH] 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 99964fbee98e..41ba5ddf7ad0 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 a9d384a9b29b..c8cb72a81459 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 d2b9c01ed965..3263afea8618 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 4fdcae4d830a..e6ebe220ca6b 100644 --- a/sys-libs/glibc/metadata.xml +++ b/sys-libs/glibc/metadata.xml @@ -9,6 +9,7 @@ When USE=hardened, allow fortify/stack violations to dump core (SIGABRT) and not kill self (SIGKILL) build memusage and memusagestat tools Build, and enable support for, the Name Service Cache Daemon + Enable obsolete RPC/NIS layers (disabling is experimental -- see bug 381391) Make internal pt_chown helper setuid -- not needed if using Linux and have /dev/pts mounted with gid=5 enable systemtap static probe points -- 2.26.2