This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, aj/revert-sunrpc, created. glibc-2.15-770-g2377a58


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, aj/revert-sunrpc has been created
        at  2377a584a909c1db63eac178f879ab837328701c (commit)

- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=2377a584a909c1db63eac178f879ab837328701c

commit 2377a584a909c1db63eac178f879ab837328701c
Author: Andreas Schwab <schwab@linux-m68k.org>
Date:   Wed May 9 15:51:23 2012 +0200

    Make sunrpc code usable again
    
    This in effect reverts the obsoletion of the sunrpc code.
    
    	* include/libc-symbols.h (libc_hidden_nolink): Redefine to
    	hidden_def to allow again linking against the symbols.
    	* sunrpc/Makefile (headers): Add rpc headers.
    	* nis/Makefile (headers): Add rpc headers.

diff --git a/ChangeLog b/ChangeLog
index 81d17c9..36ac87f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
+
+	* include/libc-symbols.h (libc_hidden_nolink): Redefine to
+	hidden_def to allow again linking against the symbols.
+	* sunrpc/Makefile (headers): Add rpc headers.
+	* nis/Makefile (headers): Add rpc headers.
+
 2012-05-08  Ian Wienand  <ianw@vmware.com>
 
 	[BZ #14080]
diff --git a/NEWS b/NEWS
index ca1f753..e3133bb 100644
--- a/NEWS
+++ b/NEWS
@@ -56,7 +56,11 @@ Version 2.16
 
 * More generic and 64-bit performance optimizations to math functions.
   Implemented by Ulrich Drepper.
-
+
+* Resurrect the RPC implementation in libc so that it can be used again for
+  compilation of new programs. It will be removed once TI-RPC can fully
+  replace the glibc RPC code.
+
 Version 2.15
 
 * The following bugs are resolved with this release:
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index 951e46a..db0f995 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -556,7 +556,9 @@ for linking")
 # define libc_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
 # define libc_hidden_def(name) hidden_def (name)
 # define libc_hidden_weak(name) hidden_weak (name)
-# define libc_hidden_nolink(name, version) hidden_nolink (name, libc, version)
+/* libc_hidden_nolink is only used in sunrpc code, for now
+   export the symbols.  */
+# define libc_hidden_nolink(name, version) hidden_def (name)
 # define libc_hidden_ver(local, name) hidden_ver (local, name)
 # define libc_hidden_data_def(name) hidden_data_def (name)
 # define libc_hidden_data_weak(name) hidden_data_weak (name)
diff --git a/nis/Makefile b/nis/Makefile
index a48753f..8e8b1ef 100644
--- a/nis/Makefile
+++ b/nis/Makefile
@@ -22,6 +22,7 @@
 subdir	:= nis
 
 aux			:= nis_hash
+headers			:= $(wildcard rpcsvc/*.[hx])
 
 # These are the databases available for the nis (and perhaps later nisplus)
 # service.  This must be a superset of the services in nss.
diff --git a/string/bits/string2.h b/string/bits/string2.h
index af5c88c..bbf05a3 100644
--- a/string/bits/string2.h
+++ b/string/bits/string2.h
@@ -1014,7 +1014,7 @@ __strcspn_c3 (const char *__s, int __reject1, int __reject2,
       ? ((__builtin_constant_p (s) && __string2_1bptr_p (s))		      \
 	 ? __builtin_strspn (s, accept)					      \
 	 : ((__a0 = ((const char *) (accept))[0], __a0 == '\0')		      \
-	    ? ((void) (s), 0)						      \
+	    ? ((void) (s), (size_t) 0)					      \
 	    : ((__a1 = ((const char *) (accept))[1], __a1 == '\0')	      \
 	       ? __strspn_c1 (s, __a0)					      \
 	       : ((__a2 = ((const char *) (accept))[2], __a2 == '\0')	      \
@@ -1029,7 +1029,7 @@ __strcspn_c3 (const char *__s, int __reject1, int __reject2,
   ({ char __a0, __a1, __a2;						      \
      (__builtin_constant_p (accept) && __string2_1bptr_p (accept)	      \
       ? ((__a0 = ((const char *) (accept))[0], __a0 == '\0')		      \
-	 ? ((void) (s), 0)						      \
+	 ? ((void) (s), (size_t) 0)					      \
 	 : ((__a1 = ((const char *) (accept))[1], __a1 == '\0')		      \
 	    ? __strspn_c1 (s, __a0)					      \
 	    : ((__a2 = ((const char *) (accept))[2], __a2 == '\0')	      \
diff --git a/sunrpc/Makefile b/sunrpc/Makefile
index 48790f4..e95271b 100644
--- a/sunrpc/Makefile
+++ b/sunrpc/Makefile
@@ -52,7 +52,7 @@ headers-in-tirpc = $(addprefix rpc/,auth.h auth_unix.h clnt.h pmap_clnt.h \
 				    des_crypt.h)
 headers-not-in-tirpc = $(addprefix rpc/,key_prot.h rpc_des.h) \
 		       $(rpcsvc:%=rpcsvc/%) rpcsvc/bootparam.h
-headers = rpc/netdb.h
+headers = rpc/netdb.h $(headers-in-tirpc) $(headers-not-in-tirpc)
 install-others = $(inst_sysconfdir)/rpc
 generated = $(rpcsvc:%.x=rpcsvc/%.h) $(rpcsvc:%.x=x%.c) $(rpcsvc:%.x=x%.stmp) \
 	    $(rpcsvc:%.x=rpcsvc/%.stmp) rpcgen

-----------------------------------------------------------------------


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]