diff options
author | Khem Raj <raj.khem@gmail.com> | 2013-01-23 21:54:08 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-01 15:54:02 +0000 |
commit | 385854d1b95161c7be952ce31e74d499a5079dfc (patch) | |
tree | adefd1dfae58f65d319041b2e89927e86248f790 | |
parent | a3525ea617c0897d7ca51770e664987f7a528939 (diff) | |
download | poky-385854d1b95161c7be952ce31e74d499a5079dfc.tar.gz |
rpcbind: Dont use nss with uclibc
Add defines which otherwise are missing in uclibc nss
(From OE-Core rev: 649c72a9aba96a609f699970933f4fa60e3cb5bc)
(From OE-Core rev: a8514d619830c976ae66cb582b8050908a85a7b5)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 files changed, 96 insertions, 0 deletions
diff --git a/meta/recipes-extended/rpcbind/rpcbind/0001-uclibc-nss.patch b/meta/recipes-extended/rpcbind/rpcbind/0001-uclibc-nss.patch new file mode 100644 index 0000000000..afa55f3b76 --- /dev/null +++ b/meta/recipes-extended/rpcbind/rpcbind/0001-uclibc-nss.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | From b8f0d7b7318ba344c25785d6f5cf3f8de98012d4 Mon Sep 17 00:00:00 2001 | ||
4 | From: Natanael Copa <ncopa@alpinelinux.org> | ||
5 | Date: Tue, 2 Feb 2010 09:36:03 +0000 | ||
6 | Subject: [PATCH 1/2] uclibc-nss | ||
7 | |||
8 | --- | ||
9 | src/rpcbind.c | 4 ++++ | ||
10 | 1 files changed, 4 insertions(+), 0 deletions(-) | ||
11 | |||
12 | diff --git a/src/rpcbind.c b/src/rpcbind.c | ||
13 | index 525ffba..1fe1a60 100644 | ||
14 | --- a/src/rpcbind.c | ||
15 | +++ b/src/rpcbind.c | ||
16 | @@ -67,7 +67,11 @@ | ||
17 | #include <pwd.h> | ||
18 | #include <string.h> | ||
19 | #include <errno.h> | ||
20 | +#if defined(__UCLIBC__) | ||
21 | +#define __nss_configure_lookup(x,y) | ||
22 | +#else | ||
23 | #include <nss.h> | ||
24 | +#endif | ||
25 | #include "config.h" | ||
26 | #include "rpcbind.h" | ||
27 | |||
28 | -- | ||
29 | 1.6.6.1 | ||
30 | |||
diff --git a/meta/recipes-extended/rpcbind/rpcbind/0002-uclibc-rpcsvc-defines.patch b/meta/recipes-extended/rpcbind/rpcbind/0002-uclibc-rpcsvc-defines.patch new file mode 100644 index 0000000000..c54fc96fc0 --- /dev/null +++ b/meta/recipes-extended/rpcbind/rpcbind/0002-uclibc-rpcsvc-defines.patch | |||
@@ -0,0 +1,60 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | From 077add040c2e30d3ac507362f4afe350f47be027 Mon Sep 17 00:00:00 2001 | ||
4 | From: Natanael Copa <ncopa@alpinelinux.org> | ||
5 | Date: Tue, 2 Feb 2010 09:47:57 +0000 | ||
6 | Subject: [PATCH 2/2] uclibc-rpcsvc-defines | ||
7 | |||
8 | --- | ||
9 | src/security.c | 28 ++++++++++++++++++++++++++++ | ||
10 | 1 files changed, 28 insertions(+), 0 deletions(-) | ||
11 | |||
12 | diff --git a/src/security.c b/src/security.c | ||
13 | index 0edeac6..e9fed55 100644 | ||
14 | --- a/src/security.c | ||
15 | +++ b/src/security.c | ||
16 | @@ -20,6 +20,32 @@ | ||
17 | /* | ||
18 | * XXX for special case checks in check_callit. | ||
19 | */ | ||
20 | +#if defined(__UCLIBC__) | ||
21 | + | ||
22 | +#define MOUNTPROC_MNT 1 | ||
23 | +#define MOUNTPROC_UMNT 3 | ||
24 | + | ||
25 | +#define NFS_PROGRAM 100003 | ||
26 | +#define YPPROG 100004 | ||
27 | +#define MOUNTPROG 100005 | ||
28 | +#define YPBINDPROG 100007 | ||
29 | +#define YPPASSWDPROG 100009 | ||
30 | +#define RQUOTAPROG 100011 | ||
31 | + | ||
32 | +#define YPPROC_NULL 0 | ||
33 | +#define YPPROC_DOMAIN 1 | ||
34 | +#define YPPROC_DOMAIN_NONACK 2 | ||
35 | +#define YPPROC_MATCH 3 | ||
36 | +#define YPPROC_FIRST 4 | ||
37 | +#define YPPROC_NEXT 5 | ||
38 | +#define YPPROC_XFR 6 | ||
39 | +#define YPPROC_CLEAR 7 | ||
40 | +#define YPPROC_ALL 8 | ||
41 | + | ||
42 | +#define YPBINDPROC_SETDOM 2 | ||
43 | + | ||
44 | +#else | ||
45 | + | ||
46 | #include <rpcsvc/mount.h> | ||
47 | #include <rpcsvc/rquota.h> | ||
48 | #include <rpcsvc/nfs_prot.h> | ||
49 | @@ -27,6 +53,8 @@ | ||
50 | #include <rpcsvc/ypclnt.h> | ||
51 | #include <rpcsvc/yppasswd.h> | ||
52 | |||
53 | +#endif | ||
54 | + | ||
55 | #include "rpcbind.h" | ||
56 | |||
57 | #ifdef LIBWRAP | ||
58 | -- | ||
59 | 1.6.6.1 | ||
60 | |||
diff --git a/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb b/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb index 9fb4f5186f..a4380637ca 100644 --- a/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb +++ b/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb | |||
@@ -13,8 +13,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b46486e4c4a416602693a711bb5bfa39 \ | |||
13 | SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \ | 13 | SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \ |
14 | file://init.d \ | 14 | file://init.d \ |
15 | file://fix_host_path.patch \ | 15 | file://fix_host_path.patch \ |
16 | ${UCLIBCPATCHES} \ | ||
16 | " | 17 | " |
17 | 18 | ||
19 | UCLIBCPATCHES_libc-uclibc = "file://0001-uclibc-nss.patch \ | ||
20 | file://0002-uclibc-rpcsvc-defines.patch \ | ||
21 | " | ||
22 | UCLIBCPATCHES ?= "" | ||
23 | |||
18 | SRC_URI[md5sum] = "1a77ddb1aaea8099ab19c351eeb26316" | 24 | SRC_URI[md5sum] = "1a77ddb1aaea8099ab19c351eeb26316" |
19 | SRC_URI[sha256sum] = "c92f263e0353887f16379d7708ef1fb4c7eedcf20448bc1e4838f59497a00de3" | 25 | SRC_URI[sha256sum] = "c92f263e0353887f16379d7708ef1fb4c7eedcf20448bc1e4838f59497a00de3" |
20 | 26 | ||