1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-31 12:49:46 +00:00

rpcbind: 0.2.2 -> 0.2.3

* Updated 0001-Avoid-use-of-glibc-sys-cdefs.h-header.patch
* Removed 0002-uclibc-rpcsvc-defines.patch since it is already in the
  source.

(From OE-Core rev: 713ac3bfbc95e58ce3332409bae838053fdeced8)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Robert Yang
2015-04-29 00:29:56 -07:00
committed by Richard Purdie
parent 18ed8ec921
commit 43a60facf6
3 changed files with 57 additions and 122 deletions
@@ -5,21 +5,21 @@ Subject: [PATCH] Avoid use of glibc sys/cdefs.h header
Upstream-Status: Pending Upstream-Status: Pending
--- ---
src/check_bound.c | 2 +- src/check_bound.c | 2 +-
src/pmap_svc.c | 10 +++++----- src/pmap_svc.c | 10 +++++-----
src/rpcb_svc.c | 10 +++++----- src/rpcb_svc.c | 10 +++++-----
src/rpcb_svc_4.c | 14 +++++++------- src/rpcb_svc_4.c | 14 +++++++-------
src/rpcb_svc_com.c | 46 +++++++++++++++++++++++----------------------- src/rpcb_svc_com.c | 46 +++++++++++++++++++++++-----------------------
src/rpcbind.c | 12 ++++++------ src/rpcbind.c | 12 ++++++------
src/util.c | 2 +- src/util.c | 2 +-
src/warmstart.c | 4 ++-- src/warmstart.c | 4 ++--
8 files changed, 50 insertions(+), 50 deletions(-) 8 files changed, 50 insertions(+), 50 deletions(-)
Index: rpcbind-0.2.2/src/check_bound.c diff --git a/src/check_bound.c b/src/check_bound.c
=================================================================== index c70b845..5d21730 100644
--- rpcbind-0.2.2.orig/src/check_bound.c --- a/src/check_bound.c
+++ rpcbind-0.2.2/src/check_bound.c +++ b/src/check_bound.c
@@ -70,7 +70,7 @@ static struct fdlist *fdhead; /* Link li @@ -70,7 +70,7 @@ static struct fdlist *fdhead; /* Link list of the check fd's */
static struct fdlist *fdtail; static struct fdlist *fdtail;
static char *nullstring = ""; static char *nullstring = "";
@@ -28,13 +28,13 @@ Index: rpcbind-0.2.2/src/check_bound.c
/* /*
* Returns 1 if the given address is bound for the given addr & transport * Returns 1 if the given address is bound for the given addr & transport
Index: rpcbind-0.2.2/src/pmap_svc.c diff --git a/src/pmap_svc.c b/src/pmap_svc.c
=================================================================== index ad28b93..9c7d409 100644
--- rpcbind-0.2.2.orig/src/pmap_svc.c --- a/src/pmap_svc.c
+++ rpcbind-0.2.2/src/pmap_svc.c +++ b/src/pmap_svc.c
@@ -58,11 +58,11 @@ static char sccsid[] = "@(#)pmap_svc.c 1 @@ -60,11 +60,11 @@ static char sccsid[] = "@(#)pmap_svc.c 1.23 89/04/05 Copyr 1984 Sun Micro";
#endif
#include "rpcbind.h" #include "rpcbind.h"
#include "xlog.h"
#include <rpc/svc_soc.h> /* svc_getcaller routine definition */ #include <rpc/svc_soc.h> /* svc_getcaller routine definition */
-static struct pmaplist *find_service_pmap __P((rpcprog_t, rpcvers_t, -static struct pmaplist *find_service_pmap __P((rpcprog_t, rpcvers_t,
- rpcprot_t)); - rpcprot_t));
@@ -49,13 +49,13 @@ Index: rpcbind-0.2.2/src/pmap_svc.c
/* /*
* Called for all the version 2 inquiries. * Called for all the version 2 inquiries.
Index: rpcbind-0.2.2/src/rpcb_svc.c diff --git a/src/rpcb_svc.c b/src/rpcb_svc.c
=================================================================== index bd92201..6c7f7fe 100644
--- rpcbind-0.2.2.orig/src/rpcb_svc.c --- a/src/rpcb_svc.c
+++ rpcbind-0.2.2/src/rpcb_svc.c +++ b/src/rpcb_svc.c
@@ -52,10 +52,10 @@ @@ -53,10 +53,10 @@
#include "rpcbind.h" #include "rpcbind.h"
#include "xlog.h"
-static void *rpcbproc_getaddr_3_local __P((void *, struct svc_req *, SVCXPRT *, -static void *rpcbproc_getaddr_3_local __P((void *, struct svc_req *, SVCXPRT *,
- rpcvers_t)); - rpcvers_t));
@@ -68,7 +68,7 @@ Index: rpcbind-0.2.2/src/rpcb_svc.c
/* /*
* Called by svc_getreqset. There is a separate server handle for * Called by svc_getreqset. There is a separate server handle for
@@ -74,7 +74,7 @@ rpcb_service_3(struct svc_req *rqstp, SV @@ -75,7 +75,7 @@ rpcb_service_3(struct svc_req *rqstp, SVCXPRT *transp)
} argument; } argument;
char *result; char *result;
xdrproc_t xdr_argument, xdr_result; xdrproc_t xdr_argument, xdr_result;
@@ -77,13 +77,13 @@ Index: rpcbind-0.2.2/src/rpcb_svc.c
rpcprog_t setprog = 0; rpcprog_t setprog = 0;
rpcbs_procinfo(RPCBVERS_3_STAT, rqstp->rq_proc); rpcbs_procinfo(RPCBVERS_3_STAT, rqstp->rq_proc);
Index: rpcbind-0.2.2/src/rpcb_svc_4.c diff --git a/src/rpcb_svc_4.c b/src/rpcb_svc_4.c
=================================================================== index b673452..6764c0a 100644
--- rpcbind-0.2.2.orig/src/rpcb_svc_4.c --- a/src/rpcb_svc_4.c
+++ rpcbind-0.2.2/src/rpcb_svc_4.c +++ b/src/rpcb_svc_4.c
@@ -53,13 +53,13 @@ @@ -54,13 +54,13 @@
#include <stdlib.h>
#include "rpcbind.h" #include "rpcbind.h"
#include "xlog.h"
-static void *rpcbproc_getaddr_4_local __P((void *, struct svc_req *, SVCXPRT *, -static void *rpcbproc_getaddr_4_local __P((void *, struct svc_req *, SVCXPRT *,
- rpcvers_t)); - rpcvers_t));
@@ -101,7 +101,7 @@ Index: rpcbind-0.2.2/src/rpcb_svc_4.c
/* /*
* Called by svc_getreqset. There is a separate server handle for * Called by svc_getreqset. There is a separate server handle for
@@ -77,7 +77,7 @@ rpcb_service_4(struct svc_req *rqstp, SV @@ -78,7 +78,7 @@ rpcb_service_4(struct svc_req *rqstp, SVCXPRT *transp)
} argument; } argument;
char *result; char *result;
xdrproc_t xdr_argument, xdr_result; xdrproc_t xdr_argument, xdr_result;
@@ -110,11 +110,11 @@ Index: rpcbind-0.2.2/src/rpcb_svc_4.c
rpcprog_t setprog = 0; rpcprog_t setprog = 0;
rpcbs_procinfo(RPCBVERS_4_STAT, rqstp->rq_proc); rpcbs_procinfo(RPCBVERS_4_STAT, rqstp->rq_proc);
Index: rpcbind-0.2.2/src/rpcb_svc_com.c diff --git a/src/rpcb_svc_com.c b/src/rpcb_svc_com.c
=================================================================== index ff9ce6b..8aef9e5 100644
--- rpcbind-0.2.2.orig/src/rpcb_svc_com.c --- a/src/rpcb_svc_com.c
+++ rpcbind-0.2.2/src/rpcb_svc_com.c +++ b/src/rpcb_svc_com.c
@@ -99,29 +99,29 @@ struct finfo { @@ -100,29 +100,29 @@ struct finfo {
static struct finfo FINFO[NFORWARD]; static struct finfo FINFO[NFORWARD];
@@ -167,11 +167,11 @@ Index: rpcbind-0.2.2/src/rpcb_svc_com.c
/* /*
* Set a mapping of program, version, netid * Set a mapping of program, version, netid
Index: rpcbind-0.2.2/src/rpcbind.c diff --git a/src/rpcbind.c b/src/rpcbind.c
=================================================================== index 045daa1..137011b 100644
--- rpcbind-0.2.2.orig/src/rpcbind.c --- a/src/rpcbind.c
+++ rpcbind-0.2.2/src/rpcbind.c +++ b/src/rpcbind.c
@@ -130,13 +130,13 @@ char *tcp_uaddr; /* Universal TCP addres @@ -135,13 +135,13 @@ char *tcp_uaddr; /* Universal TCP address */
static char servname[] = "rpcbind"; static char servname[] = "rpcbind";
static char superuser[] = "superuser"; static char superuser[] = "superuser";
@@ -191,26 +191,23 @@ Index: rpcbind-0.2.2/src/rpcbind.c
int int
main(int argc, char *argv[]) main(int argc, char *argv[])
Index: rpcbind-0.2.2/src/util.c diff --git a/src/util.c b/src/util.c
=================================================================== index a6c835b..33b9e4f 100644
--- rpcbind-0.2.2.orig/src/util.c --- a/src/util.c
+++ rpcbind-0.2.2/src/util.c +++ b/src/util.c
@@ -70,9 +70,9 @@ static struct sockaddr_in *local_in4; @@ -70,7 +70,7 @@ static struct sockaddr_in *local_in4;
static struct sockaddr_in6 *local_in6; static struct sockaddr_in6 *local_in6;
#endif #endif
-static int bitmaskcmp __P((void *, void *, void *, int)); -static int bitmaskcmp __P((void *, void *, void *, int));
+static int bitmaskcmp (void *, void *, void *, int); +static int bitmaskcmp (void *, void *, void *, int);
#ifdef INET6
-static void in6_fillscopeid __P((struct sockaddr_in6 *));
+static void in6_fillscopeid (struct sockaddr_in6 *);
#endif
/* /*
Index: rpcbind-0.2.2/src/warmstart.c * For all bits set in "mask", compare the corresponding bits in
=================================================================== diff --git a/src/warmstart.c b/src/warmstart.c
--- rpcbind-0.2.2.orig/src/warmstart.c index b6eb73e..42dd3af 100644
+++ rpcbind-0.2.2/src/warmstart.c --- a/src/warmstart.c
+++ b/src/warmstart.c
@@ -58,8 +58,8 @@ @@ -58,8 +58,8 @@
#define PMAPFILE RPCBIND_STATEDIR "/portmap.xdr" #define PMAPFILE RPCBIND_STATEDIR "/portmap.xdr"
#endif #endif
@@ -1,60 +0,0 @@
From 077add040c2e30d3ac507362f4afe350f47be027 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Tue, 2 Feb 2010 09:47:57 +0000
Subject: [PATCH 2/2] uclibc-rpcsvc-defines
Upstream-Status: Pending
---
src/security.c | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/src/security.c b/src/security.c
index 0edeac6..e9fed55 100644
--- a/src/security.c
+++ b/src/security.c
@@ -20,6 +20,32 @@
/*
* XXX for special case checks in check_callit.
*/
+#if defined(__UCLIBC__) || !defined(__GLIBC__)
+
+#define MOUNTPROC_MNT 1
+#define MOUNTPROC_UMNT 3
+
+#define NFS_PROGRAM 100003
+#define YPPROG 100004
+#define MOUNTPROG 100005
+#define YPBINDPROG 100007
+#define YPPASSWDPROG 100009
+#define RQUOTAPROG 100011
+
+#define YPPROC_NULL 0
+#define YPPROC_DOMAIN 1
+#define YPPROC_DOMAIN_NONACK 2
+#define YPPROC_MATCH 3
+#define YPPROC_FIRST 4
+#define YPPROC_NEXT 5
+#define YPPROC_XFR 6
+#define YPPROC_CLEAR 7
+#define YPPROC_ALL 8
+
+#define YPBINDPROC_SETDOM 2
+
+#else
+
#include <rpcsvc/mount.h>
#include <rpcsvc/rquota.h>
#include <rpcsvc/nfs_prot.h>
@@ -27,6 +53,8 @@
#include <rpcsvc/ypclnt.h>
#include <rpcsvc/yppasswd.h>
+#endif
+
#include "rpcbind.h"
#ifdef LIBWRAP
--
1.6.6.1
@@ -12,9 +12,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b46486e4c4a416602693a711bb5bfa39 \
SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \ SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \
file://init.d \ file://init.d \
file://0001-Avoid-use-of-glibc-sys-cdefs.h-header.patch \ file://0001-Avoid-use-of-glibc-sys-cdefs.h-header.patch \
file://0002-uclibc-rpcsvc-defines.patch \ file://remove-sys-queue.patch \
file://remove-sys-queue.patch \
${UCLIBCPATCHES} \ ${UCLIBCPATCHES} \
${MUSLPATCHES} \ ${MUSLPATCHES} \
file://rpcbind.conf \ file://rpcbind.conf \
@@ -24,13 +23,12 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \
MUSLPATCHES_libc-musl = "file://musl-sunrpc.patch" MUSLPATCHES_libc-musl = "file://musl-sunrpc.patch"
UCLIBCPATCHES_libc-uclibc = "file://0001-uclibc-nss.patch \ UCLIBCPATCHES_libc-uclibc = "file://0001-uclibc-nss.patch \
file://0002-uclibc-rpcsvc-defines.patch \
" "
UCLIBCPATCHES ?= "" UCLIBCPATCHES ?= ""
MUSLPATCHES ?= "" MUSLPATCHES ?= ""
SRC_URI[md5sum] = "8acf839bfef2364a05fbd6be5f8edf9a" SRC_URI[md5sum] = "c8875246b2688a1adfbd6ad43480278d"
SRC_URI[sha256sum] = "13dbc8c796dbe0ce8df873007bea0490c8460b56202d918c9eb6fa0358a08f29" SRC_URI[sha256sum] = "9897823a9d820ea011d9ea02054d5ab99469b9ca5346265fee380713c8fed27b"
inherit autotools update-rc.d systemd pkgconfig inherit autotools update-rc.d systemd pkgconfig