2 Commits

Author SHA256 Message Date
81614e04b5 Accepting request 1231397 from network
- nfswatch-fix-proto.patch: fixed build with gcc14. (forwarded request 1231396 from msmeissn)

OBS-URL: https://build.opensuse.org/request/show/1231397
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nfswatch?expand=0&rev=12
2024-12-16 18:18:07 +00:00
dd572f05df Accepting request 1231396 from home:msmeissn:branches:network
- nfswatch-fix-proto.patch: fixed build with gcc14.

OBS-URL: https://build.opensuse.org/request/show/1231396
OBS-URL: https://build.opensuse.org/package/show/network/nfswatch?expand=0&rev=14
2024-12-16 12:56:32 +00:00
3 changed files with 30 additions and 1 deletions

22
nfswatch-fix-proto.patch Normal file
View File

@@ -0,0 +1,22 @@
Index: nfswatch-4.99.11/rpcutil.c
===================================================================
--- nfswatch-4.99.11.orig/rpcutil.c
+++ nfswatch-4.99.11/rpcutil.c
@@ -82,7 +82,7 @@
#include "rpcdefs.h"
/* get rpc arguments */
-static bool_t rpcxdr_getargs(SVCXPRT *, xdrproc_t, caddr_t);
+static bool_t rpcxdr_getargs(struct __rpc_svcxprt *, xdrproc_t, void*);
/*
* Operations on the SVCXPRT structure. We're only going to use
@@ -223,7 +223,7 @@ udprpc_recv(char *data, u_int length, st
* rpcxdr_getargs - called by SVC_GETARGS.
*/
static bool_t
-rpcxdr_getargs(SVCXPRT *xprt, xdrproc_t xdr_args, caddr_t args_ptr)
+rpcxdr_getargs(struct __rpc_svcxprt *xprt, xdrproc_t xdr_args, void* args_ptr)
{
return((*xdr_args)(&(su_data(xprt)->su_xdrs), args_ptr));
}

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Dec 16 12:55:20 UTC 2024 - Marcus Meissner <meissner@suse.com>
- nfswatch-fix-proto.patch: fixed build with gcc14.
-------------------------------------------------------------------
Thu Feb 22 14:09:32 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package nfswatch
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,7 @@ URL: http://nfswatch.sourceforge.net
Source: %{name}-%{version}.tar.gz
Patch0: makefile.patch
Patch1: nfswatch-4.99.11-sysmacros.patch
Patch2: nfswatch-fix-proto.patch
BuildRequires: libpcap-devel
BuildRequires: ncurses-devel
%if 0%{?suse_version} >= 1500
@@ -43,6 +44,7 @@ network interface or on all interfaces.
%patch -P 0 -p1
%endif
%patch -P 1 -p1
%patch -P 2 -p1
%build