Prechádzať zdrojové kódy

libtirpc: update to 1.3.6, fix gcc 15 issues from upstream git

Waldemar Brodkorb 7 mesiacov pred
rodič
commit
33d241570a

+ 2 - 2
package/libtirpc/Makefile

@@ -4,9 +4,9 @@
 include ${ADK_TOPDIR}/rules.mk
 
 PKG_NAME:=		libtirpc
-PKG_VERSION:=		1.3.5
+PKG_VERSION:=		1.3.6
 PKG_RELEASE:=		1
-PKG_HASH:=		9b31370e5a38d3391bf37edfa22498e28fe2142467ae6be7a17c9068ec0bf12f
+PKG_HASH:=		bbd26a8f0df5690a62a47f6aa30f797f3ef8d02560d1bc449a83066b5a1d3508
 PKG_DESCR:=		transport independent rpc library
 PKG_SECTION:=		libs/net
 PKG_URL:=		http://sourceforge.net/projects/libtirpc/

+ 11 - 0
package/libtirpc/patches/patch-src_auth_none_c

@@ -0,0 +1,11 @@
+--- libtirpc-1.3.6.orig/src/auth_none.c	2024-10-17 09:50:55.000000000 +0200
++++ libtirpc-1.3.6/src/auth_none.c	2025-04-30 13:30:55.736451017 +0200
+@@ -62,7 +62,7 @@ static bool_t authnone_validate (AUTH *,
+ static bool_t authnone_refresh (AUTH *, void *);
+ static void authnone_destroy (AUTH *);
+ 
+-extern bool_t xdr_opaque_auth();
++extern bool_t xdr_opaque_auth(XDR *, struct opaque_auth *);
+ 
+ static struct auth_ops *authnone_ops();
+ 

+ 20 - 0
package/libtirpc/patches/patch-src_auth_time_c

@@ -0,0 +1,20 @@
+--- libtirpc-1.3.6.orig/src/auth_time.c	2024-10-17 09:50:55.000000000 +0200
++++ libtirpc-1.3.6/src/auth_time.c	2025-04-30 13:33:25.507704020 +0200
+@@ -248,7 +248,7 @@ __rpc_get_time_offset(td, srv, thost, ua
+ 	char			ut[64], ipuaddr[64];
+ 	endpoint		teps[32];
+ 	nis_server		tsrv;
+-	void			(*oldsig)() = NULL; /* old alarm handler */
++	void			(*oldsig)(int) = NULL; /* old alarm handler */
+ 	struct sockaddr_in	sin;
+ 	int			s = RPC_ANYSOCK;
+ 	socklen_t len;
+@@ -417,7 +417,7 @@ __rpc_get_time_offset(td, srv, thost, ua
+ 		} else {
+ 			int res;
+ 
+-			oldsig = (void (*)())signal(SIGALRM, alarm_hndler);
++			oldsig = (void (*)(int))signal(SIGALRM, alarm_hndler);
+ 			saw_alarm = 0; /* global tracking the alarm */
+ 			alarm(20); /* only wait 20 seconds */
+ 			res = connect(s, (struct sockaddr *)&sin, sizeof(sin));

+ 11 - 0
package/libtirpc/patches/patch-src_getpublickey_c

@@ -0,0 +1,11 @@
+--- libtirpc-1.3.6.orig/src/getpublickey.c	2024-10-17 09:50:55.000000000 +0200
++++ libtirpc-1.3.6/src/getpublickey.c	2025-04-30 13:30:55.736451017 +0200
+@@ -52,7 +52,7 @@
+ /*
+  * Hack to let ypserv/rpc.nisd use AUTH_DES.
+  */
+-int (*__getpublickey_LOCAL)() = 0;
++int (*__getpublickey_LOCAL)(const char *, char *) = 0;
+ 
+ /*
+  * Get somebody's public key

+ 15 - 0
package/libtirpc/patches/patch-src_key_call_c

@@ -0,0 +1,15 @@
+--- libtirpc-1.3.6.orig/src/key_call.c	2024-10-17 09:50:55.000000000 +0200
++++ libtirpc-1.3.6/src/key_call.c	2025-04-30 13:33:25.507704020 +0200
+@@ -72,9 +72,9 @@
+  * implementations of these functions, and to call those in key_call().
+  */
+ 
+-cryptkeyres *(*__key_encryptsession_pk_LOCAL)() = 0;
+-cryptkeyres *(*__key_decryptsession_pk_LOCAL)() = 0;
+-des_block *(*__key_gendes_LOCAL)() = 0;
++cryptkeyres *(*__key_encryptsession_pk_LOCAL)(uid_t, char *) = 0;
++cryptkeyres *(*__key_decryptsession_pk_LOCAL)(uid_t, char *) = 0;
++des_block *(*__key_gendes_LOCAL)(uid_t, char *) = 0;
+ 
+ static int key_call( u_long, xdrproc_t, void *, xdrproc_t, void *);
+ 

+ 13 - 0
package/libtirpc/patches/patch-src_svc_auth_none_c

@@ -0,0 +1,13 @@
+--- libtirpc-1.3.6.orig/src/svc_auth_none.c	2024-10-17 09:50:55.000000000 +0200
++++ libtirpc-1.3.6/src/svc_auth_none.c	2025-04-30 13:30:55.736451017 +0200
+@@ -37,8 +37,8 @@
+ 
+ #include <rpc/rpc.h>
+ 
+-static bool_t	svcauth_none_destroy();
+-static bool_t   svcauth_none_wrap();
++static bool_t	svcauth_none_destroy(SVCAUTH *);
++static bool_t   svcauth_none_wrap(SVCAUTH *, XDR *, bool_t (*)(XDR *, ...), char *);
+ 
+ struct svc_auth_ops svc_auth_none_ops = {
+ 	svcauth_none_wrap,