[packages/rusers] fix build with recent gcc versions

atler atler at pld-linux.org
Sun May 18 19:34:51 CEST 2025


commit a3956f502d32508f12954a553afc331bb38ce84a
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun May 18 19:13:12 2025 +0200

    fix build with recent gcc versions

 rusers.spec |  2 ++
 types.patch | 22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+)
---
diff --git a/rusers.spec b/rusers.spec
index df4a299..43f9335 100644
--- a/rusers.spec
+++ b/rusers.spec
@@ -22,6 +22,7 @@ Patch2:		netkit-%{name}-droppriv-later.patch
 Patch3:		netkit-%{name}-includes.patch
 Patch4:		procps.patch
 Patch5:		nostrip.patch
+Patch6:		types.patch
 BuildRequires:	libtirpc-devel
 BuildRequires:	procps-devel >= 1:3.2.5-3
 BuildRequires:	rpcsvc-proto
@@ -127,6 +128,7 @@ Statystyki te zwykle są czytane komendą rup(1).
 %patch -P3 -p1
 %patch -P4 -p1
 %patch -P5 -p1
+%patch -P6 -p1
 
 %build
 CFLAGS="%{rpmcflags} -DGNU_LIBC -D_GNU_SOURCE -D_NO_UT_TIME -I/usr/include/tirpc" \
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..6b65313
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,22 @@
+--- netkit-rusers-0.17/rpc.rstatd/rstatd.c.orig	2025-05-18 18:42:29.337637438 +0200
++++ netkit-rusers-0.17/rpc.rstatd/rstatd.c	2025-05-18 19:07:08.930537260 +0200
+@@ -66,7 +66,7 @@
+ 	int sock = 0;
+ 	int proto = 0;
+ 	struct sockaddr_in from;
+-	size_t fromlen;
++	socklen_t fromlen;
+ 
+ 	if (argc == 2)
+ 		closedown = atoi(argv[1]);
+--- netkit-rusers-0.17/rpc.rstatd/rstat_proc.c.orig	2025-05-18 18:42:29.342849366 +0200
++++ netkit-rusers-0.17/rpc.rstatd/rstat_proc.c	2025-05-18 19:10:25.084762517 +0200
+@@ -902,7 +902,7 @@
+ 
+ 	switch (rqstp->rq_proc) {
+ 	case NULLPROC:
+-		(void)svc_sendreply(transp, xdr_void, (char *)NULL);
++		(void)svc_sendreply(transp, (xdrproc_t)xdr_void, (char *)NULL);
+ 		return;
+ 		break;
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rusers.git/commitdiff/a3956f502d32508f12954a553afc331bb38ce84a



More information about the pld-cvs-commit mailing list