git: 4010c267a55c - stable/13 - libc: move NIS xdr_* symbols from rpc's to yp's Symbol.map

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Wed, 29 May 2024 16:27:08 UTC
The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=4010c267a55c5bdb8f752f023d147de3021f9d75

commit 4010c267a55c5bdb8f752f023d147de3021f9d75
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-05-24 17:27:29 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-05-29 15:42:17 +0000

    libc: move NIS xdr_* symbols from rpc's to yp's Symbol.map
    
    To fix WITHOUT_NIS build.  Building yp_xdr.c is gated by MK_NIS.
    
    PR:             279270
    Reported by:    peterj
    Reported by:    matteo
    Reported by:    Michael Dexter's Build Option Survey run
    Reviewed by:    brooks
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D45347
    
    (cherry picked from commit 61639bb3fc5abe0bb7b096e643b51c30703ac432)
    (cherry picked from commit 1e3dfe0c343c74d4c7162e25378b221e5a797917)
---
 lib/libc/rpc/Symbol.map | 31 -------------------------------
 lib/libc/yp/Symbol.map  | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 31 deletions(-)

diff --git a/lib/libc/rpc/Symbol.map b/lib/libc/rpc/Symbol.map
index 89b434ce67db..cee6b26bc3d1 100644
--- a/lib/libc/rpc/Symbol.map
+++ b/lib/libc/rpc/Symbol.map
@@ -11,37 +11,6 @@ FBSD_1.0 {
 	xdr_desargs;
 	xdr_desresp;
 
-	/* From yp_xdr.c (generated by rpcgen - include/rpcsvc/yp.x) */
-	xdr_domainname;
-	xdr_keydat;
-	xdr_mapname;
-	xdr_peername;
-	xdr_valdat;
-	xdr_ypbind_binding;
-	xdr_ypbind_resp;
-	xdr_ypbind_resptype;
-	xdr_ypbind_setdom;
-	xdr_ypmap_parms;
-	xdr_ypmaplist;
-	xdr_yppush_status;
-	xdr_yppushresp_xfr;
-	xdr_ypreq_key;
-	xdr_ypreq_nokey;
-	xdr_ypreq_xfr;
-	xdr_ypreqtype;
-	xdr_yprequest;
-	xdr_ypresp_all;
-	xdr_ypresp_key_val;
-	xdr_ypresp_maplist;
-	xdr_ypresp_master;
-	xdr_ypresp_order;
-	xdr_ypresp_val;
-	xdr_ypresp_xfr;
-	xdr_ypresponse;
-	xdr_ypresptype;
-	xdr_ypstat;
-	xdr_ypxfrstat;
-
 	authdes_seccreate;
 	authdes_pk_seccreate;
 	authnone_create;
diff --git a/lib/libc/yp/Symbol.map b/lib/libc/yp/Symbol.map
index ecd17af4a29a..71cccb3dfebe 100644
--- a/lib/libc/yp/Symbol.map
+++ b/lib/libc/yp/Symbol.map
@@ -21,4 +21,36 @@ FBSD_1.0 {
 	yperr_string;
 	ypprot_err;
 	_yp_check;
+
+	/* From yp_xdr.c (generated by rpcgen - include/rpcsvc/yp.x) */
+	xdr_domainname;
+	xdr_keydat;
+	xdr_mapname;
+	xdr_peername;
+	xdr_valdat;
+	xdr_ypbind_binding;
+	xdr_ypbind_resp;
+	xdr_ypbind_resptype;
+	xdr_ypbind_setdom;
+	xdr_ypmap_parms;
+	xdr_ypmaplist;
+	xdr_yppush_status;
+	xdr_yppushresp_xfr;
+	xdr_ypreq_key;
+	xdr_ypreq_nokey;
+	xdr_ypreq_xfr;
+	xdr_ypreqtype;
+	xdr_yprequest;
+	xdr_ypresp_all;
+	xdr_ypresp_key_val;
+	xdr_ypresp_maplist;
+	xdr_ypresp_master;
+	xdr_ypresp_order;
+	xdr_ypresp_val;
+	xdr_ypresp_xfr;
+	xdr_ypresponse;
+	xdr_ypresptype;
+	xdr_ypstat;
+	xdr_ypxfrstat;
+
 };