about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2014-02-28 14:53:33 -0800
committerPaul Pluzhnikov <ppluzhnikov@google.com>2014-02-28 14:53:33 -0800
commit7839c2120fd7e527248c5eb3d214e11e98bccf62 (patch)
tree123b94f1a41513c4df0508fdcf95ccfbaa74b1b2
parentb117857fe28c8aaa2f159a3e0b89209074ecf45b (diff)
downloadglibc-7839c2120fd7e527248c5eb3d214e11e98bccf62.tar.gz
glibc-7839c2120fd7e527248c5eb3d214e11e98bccf62.tar.xz
glibc-7839c2120fd7e527248c5eb3d214e11e98bccf62.zip
Disable libnss_db and libnss_nis{,plus} libnss_compat
-rw-r--r--README.google7
-rw-r--r--nis/Makefile7
-rw-r--r--nss/Makefile11
3 files changed, 19 insertions, 6 deletions
diff --git a/README.google b/README.google
index 80a94abee9..220d55ae5d 100644
--- a/README.google
+++ b/README.google
@@ -59,3 +59,10 @@ nss/nss_cache/nss_cache.c
 nss/nss_cache/nss_cache.h
   Forward-port nss_borg and nss_cache from glibc-2.18
   (ppluzhnikov, google-local)
+
+nis/Makefile
+nss/Makefile
+  For b/2476399, disable libnss_db (not used in google).
+  Likewise ibnsl and related libnss_* libraries.
+  Forward-ported from cl/52538169 and cl/52538711.
+  (ppluzhnikov, bmoses, google-local)
diff --git a/nis/Makefile b/nis/Makefile
index 15f86baaa9..fa411c5461 100644
--- a/nis/Makefile
+++ b/nis/Makefile
@@ -34,9 +34,12 @@ databases		= proto service hosts network grp pwd rpc ethers \
 			  spwd netgrp alias publickey
 
 # Specify rules for the nss_* modules.
-services		:= nis nisplus compat
 
-extra-libs		= libnsl $(services:%=libnss_%)
+# Google-local: Disable NIS.
+# services		:= nis nisplus compat
+#
+# extra-libs		= libnsl $(services:%=libnss_%)
+
 # These libraries will be built in the `others' pass rather than
 # the `lib' pass, because they depend on libc.so being built already.
 extra-libs-others	= $(extra-libs)
diff --git a/nss/Makefile b/nss/Makefile
index 5f7cb314c8..69b1f80f80 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -32,8 +32,9 @@ routines		= nsswitch getnssent getnssent_r digits_dots \
 databases		= proto service hosts network grp pwd rpc ethers \
 			  spwd netgrp key alias sgrp
 
-others                  := getent makedb
-install-bin             := getent makedb
+# Google-local: Disable libnss_db by removing makedb.
+others                  := getent
+install-bin             := getent
 makedb-modules = xmalloc hash-string
 extra-objs		+= $(makedb-modules:=.o)
 
@@ -43,7 +44,8 @@ xtests			= bug-erange
 include ../Makeconfig
 
 # Specify rules for the nss_* modules.  We have some services.
-services		:= files db borg cache
+# Google-local: Disable libnss_db by removing db.
+services		:= files borg cache
 
 extra-libs		= $(services:%=libnss_%)
 # These libraries will be built in the `others' pass rather than
@@ -68,7 +70,8 @@ libnss_db-routines	:= $(libnss_db-dbs) db-open db-init hash-string
 generated		+= $(filter-out db-alias.c db-netgrp.c, \
 					$(addsuffix .c,$(libnss_db-dbs)))
 
-install-others		+= $(inst_vardbdir)/Makefile
+# Google-local: Disable libnss_db.
+# install-others		+= $(inst_vardbdir)/Makefile
 
 # Build static module into libc if requested
 libnss_files-inhibit-o	= $(filter-out .os,$(object-suffixes))