diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-01-13 22:19:48 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-01-13 22:19:48 +0100 |
commit | cc082c34a95681eaea904cb1cb5d4f1dc9f2ca49 (patch) | |
tree | 3ac1db93c64acf8b8d006ca46d37b4a20100cd34 /package/libtirpc | |
parent | f31081e803ebfbb3b6aeb2ed460659821c342dc1 (diff) |
fix cross-compile for uClibc
Diffstat (limited to 'package/libtirpc')
-rw-r--r-- | package/libtirpc/patches/patch-src_Makefile_in | 65 | ||||
-rw-r--r-- | package/libtirpc/patches/patch-src_rpc_soc_c | 40 |
2 files changed, 105 insertions, 0 deletions
diff --git a/package/libtirpc/patches/patch-src_Makefile_in b/package/libtirpc/patches/patch-src_Makefile_in new file mode 100644 index 000000000..f6e41aa3b --- /dev/null +++ b/package/libtirpc/patches/patch-src_Makefile_in @@ -0,0 +1,65 @@ +--- libtirpc-0.2.1.orig/src/Makefile.in 2009-11-30 15:10:21.000000000 +0100 ++++ libtirpc-0.2.1/src/Makefile.in 2010-01-13 21:28:55.000000000 +0100 +@@ -81,8 +81,8 @@ am__libtirpc_la_SOURCES_DIST = auth_none + rpc_commondata.c rpc_callmsg.c rpc_generic.c rpc_soc.c \ + rpcb_clnt.c rpcb_prot.c rpcb_st_xdr.c svc.c svc_auth.c \ + svc_dg.c svc_auth_unix.c svc_generic.c svc_raw.c svc_run.c \ +- svc_simple.c svc_vc.c getpeereid.c auth_time.c auth_des.c \ +- authdes_prot.c xdr.c xdr_rec.c xdr_array.c xdr_float.c \ ++ svc_simple.c svc_vc.c getpeereid.c \ ++ xdr.c xdr_rec.c xdr_array.c xdr_float.c \ + xdr_mem.c xdr_reference.c xdr_stdio.c auth_gss.c \ + authgss_prot.c svc_auth_gss.c svc_auth_none.c + @GSS_TRUE@am__objects_1 = libtirpc_la-auth_gss.lo \ +@@ -110,8 +110,7 @@ am_libtirpc_la_OBJECTS = libtirpc_la-aut + libtirpc_la-svc_generic.lo libtirpc_la-svc_raw.lo \ + libtirpc_la-svc_run.lo libtirpc_la-svc_simple.lo \ + libtirpc_la-svc_vc.lo libtirpc_la-getpeereid.lo \ +- libtirpc_la-auth_time.lo libtirpc_la-auth_des.lo \ +- libtirpc_la-authdes_prot.lo libtirpc_la-xdr.lo \ ++ libtirpc_la-xdr.lo \ + libtirpc_la-xdr_rec.lo libtirpc_la-xdr_array.lo \ + libtirpc_la-xdr_float.lo libtirpc_la-xdr_mem.lo \ + libtirpc_la-xdr_reference.lo libtirpc_la-xdr_stdio.lo \ +@@ -297,8 +296,8 @@ libtirpc_la_SOURCES = auth_none.c auth_u + rpc_commondata.c rpc_callmsg.c rpc_generic.c rpc_soc.c \ + rpcb_clnt.c rpcb_prot.c rpcb_st_xdr.c svc.c svc_auth.c \ + svc_dg.c svc_auth_unix.c svc_generic.c svc_raw.c svc_run.c \ +- svc_simple.c svc_vc.c getpeereid.c auth_time.c auth_des.c \ +- authdes_prot.c xdr.c xdr_rec.c xdr_array.c xdr_float.c \ ++ svc_simple.c svc_vc.c getpeereid.c \ ++ xdr.c xdr_rec.c xdr_array.c xdr_float.c \ + xdr_mem.c xdr_reference.c xdr_stdio.c $(am__append_1) + @GSS_TRUE@libtirpc_la_CFLAGS = -DHAVE_RPCSEC_GSS $(GSSGLUE_CFLAGS) + all: all-am +@@ -375,12 +374,9 @@ mostlyclean-compile: + distclean-compile: + -rm -f *.tab.c + +-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtirpc_la-auth_des.Plo@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtirpc_la-auth_gss.Plo@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtirpc_la-auth_none.Plo@am__quote@ +-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtirpc_la-auth_time.Plo@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtirpc_la-auth_unix.Plo@am__quote@ +-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtirpc_la-authdes_prot.Plo@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtirpc_la-authgss_prot.Plo@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtirpc_la-authunix_prot.Plo@am__quote@ + @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libtirpc_la-bindresvport.Plo@am__quote@ +@@ -1055,7 +1051,7 @@ uninstall-am: uninstall-libLTLIBRARIES + @GSS_TRUE@ svc_raw.c svc_run.c svc_simple.c svc_vc.c \ + @GSS_TRUE@ xdr.c xdr_rec.c xdr_array.c xdr_float.c xdr_mem.c xdr_reference.c xdr_stdio.c \ + @GSS_TRUE@ auth_gss.c authgss_prot.c svc_auth_gss.c getpeereid.c \ +-@GSS_TRUE@ auth_time.c auth_des.c authdes_prot.c svc_auth_none.c ++@GSS_TRUE@ svc_auth_none.c + + @GSS_FALSE@$(libtirpc_la_OBJECTS) :auth_none.c auth_unix.c authunix_prot.c bindresvport.c clnt_bcast.c \ + @GSS_FALSE@ clnt_dg.c clnt_generic.c clnt_perror.c clnt_raw.c clnt_simple.c \ +@@ -1066,7 +1062,7 @@ uninstall-am: uninstall-libLTLIBRARIES + @GSS_FALSE@ rpcb_st_xdr.c svc.c svc_auth.c svc_dg.c svc_auth_unix.c svc_generic.c \ + @GSS_FALSE@ svc_raw.c svc_run.c svc_simple.c svc_vc.c \ + @GSS_FALSE@ xdr.c xdr_rec.c xdr_array.c xdr_float.c xdr_mem.c xdr_reference.c xdr_stdio.c \ +-@GSS_FALSE@ getpeereid.c auth_time.c auth_des.c authdes_prot.c ++@GSS_FALSE@ getpeereid.c + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/package/libtirpc/patches/patch-src_rpc_soc_c b/package/libtirpc/patches/patch-src_rpc_soc_c new file mode 100644 index 000000000..09d303f59 --- /dev/null +++ b/package/libtirpc/patches/patch-src_rpc_soc_c @@ -0,0 +1,40 @@ +--- libtirpc-0.2.1.orig/src/rpc_soc.c 2009-11-30 15:04:55.000000000 +0100 ++++ libtirpc-0.2.1/src/rpc_soc.c 2010-01-13 22:16:08.000000000 +0100 +@@ -479,37 +479,6 @@ clnt_broadcast(prog, vers, proc, xargs, + (resultproc_t) rpc_wrap_bcast, "udp"); + } + +-/* +- * Create the client des authentication object. Obsoleted by +- * authdes_seccreate(). +- */ +-AUTH * +-authdes_create(servername, window, syncaddr, ckey) +- char *servername; /* network name of server */ +- u_int window; /* time to live */ +- struct sockaddr *syncaddr; /* optional hostaddr to sync with */ +- des_block *ckey; /* optional conversation key to use */ +-{ +- AUTH *dummy; +- AUTH *nauth; +- char hostname[NI_MAXHOST]; +- +- if (syncaddr) { +- /* +- * Change addr to hostname, because that is the way +- * new interface takes it. +- */ +- if (getnameinfo(syncaddr, sizeof(syncaddr), hostname, +- sizeof hostname, NULL, 0, 0) != 0) +- goto fallback; +- +- nauth = authdes_seccreate(servername, window, hostname, ckey); +- return (nauth); +- } +-fallback: +- dummy = authdes_seccreate(servername, window, NULL, ckey); +- return (dummy); +-} + + /* + * Create a client handle for a unix connection. Obsoleted by clnt_vc_create() |