Switching from glibc RPC to TI RPC
The main reasons for me to write this email were decissions made by Linaro Toolchain WG when they started building AArch64 cross toolchains.
One of them was disabling RPC support in glibc as it is marked obsolete. So I had two ways of handling it:
- add RPC back into glibc in Linaro's cross toolchain
- check how to switch OpenEmbedded to TI RPC
This patch series is my attempt for the latter. I disabled RPC in eglibc, expanded libtirpc with code taken from glibc (patchset taken from OpenMandriva distribution) and then went though build failures.
MOUNT_NFS in busybox is not needed on 2.6.23 Linux kernels and is the only part of code which requires RPC. I assumed that OE does not support such old kernels nowadays.
nfs-utils already had libtirpc support which just needed to be enabled.
quota needed to be told how to find out RPC headers and how to link with libtirpc.
rpcbind needed removal of yellow pages support (whatever it is). I took patch from Buildroot.
So far I did builds only for AArch64 but not checked 'on target'. Please take a look and tell me does this work will be useful at all before I go into other recipes.
PATCH 1/6 eglibc: disable RPC in favour of libtirpc
--- meta/recipes-core/eglibc/eglibc_2.17.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/eglibc/eglibc_2.17.bb +1 -1
@@ -85,7 +85,7 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \ --enable-add-ons \ --with-headers=${STAGING_INCDIR} \ --without-selinux \ - --enable-obsolete-rpc \ + --disable-obsolete-rpc \ --with-kconfig=${STAGING_BINDIR_NATIVE} \ ${GLIBC_EXTRA_OECONF}"
Signature · 1 line
1.8.1.2
Re: [PATCH 1/6] eglibc: disable RPC in favour of libtirpc
NACK. tirpc is not at a point where it can replace the glibc provided rpc. There is too much software that depends on it. We have tried it in past 2.14 time frame and reverted back.
Quoted 26 lines · Marcin Juszkiewicz
Signed-off-by Marcin Juszkiewicz <[email protected]>---
meta/recipes-core/eglibc/eglibc_2.17.bb | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-core/eglibc/eglibc_2.17.bb +1
-1@@ -85,7 +85,7 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \ --enable-add-ons \ --with-headers=${STAGING_INCDIR} \ --without-selinux \ - --enable-obsolete-rpc \ + --disable-obsolete-rpc \ --with-kconfig=${STAGING_BINDIR_NATIVE} \ ${GLIBC_EXTRA_OECONF}"Signature · 7 lines
1.8.1.2 _______________________________________________ Openembedded-core mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [PATCH 1/6] eglibc: disable RPC in favour of libtirpc
W dniu 20.03.2013 15:05, Khem Raj pisze:
Quoted 3 lines
NACK. tirpc is not at a point where it can replace the glibc provided rpc. There is too much software that depends on it. We have tried it in past 2.14 time frame and reverted back.
Thanks. We will go with other option and re-enable RPC in eglibc part of binary cross toolchain.
PATCH 2/6 libtirpc: add RPC parts from glibc - patches from OpenMandriva
In reply to Marcin Juszkiewicz--- .../libtirpc/libtirpc-0.2.3/key_prot.h | 343 ++ ...ibtirpc-0.2.3-add-missing-bits-from-glibc.patch | 1766 ++++++ .../libtirpc-0.2.3/libtirpc-0.2.3-types.h.patch | 14 + ...Add-rpcgen-program-from-nfs-utils-sources.patch | 6408 ++++++++++++++++++++ .../recipes-extended/libtirpc/libtirpc-0.2.3/nis.h | 616 ++ .../libtirpc/libtirpc-0.2.3/nis_tags.h | 129 + .../libtirpc/libtirpc-0.2.3/nislib.h | 288 + .../libtirpc/libtirpc-0.2.3/rpc_des.h | 71 + .../libtirpc/libtirpc-0.2.3/yp_prot.h | 366 ++ .../libtirpc/libtirpc-0.2.3/ypclnt.h | 89 + meta/recipes-extended/libtirpc/libtirpc_0.2.3.bb | 35 +- 11 files changed, 10121 insertions(+), 4 deletions(-) create mode 100644 meta/recipes-extended/libtirpc/libtirpc-0.2.3/key_prot.h create mode 100644 meta/recipes-extended/libtirpc/libtirpc-0.2.3/libtirpc-0.2.3-add-missing-bits-from-glibc.patch create mode 100644 meta/recipes-extended/libtirpc/libtirpc-0.2.3/libtirpc-0.2.3-types.h.patch create mode 100644 meta/recipes-extended/libtirpc/libtirpc-0.2.3/libtirpc-0008-Add-rpcgen-program-from-nfs-utils-sources.patch create mode 100644 meta/recipes-extended/libtirpc/libtirpc-0.2.3/nis.h create mode 100644 meta/recipes-extended/libtirpc/libtirpc-0.2.3/nis_tags.h create mode 100644 meta/recipes-extended/libtirpc/libtirpc-0.2.3/nislib.h create mode 100644 meta/recipes-extended/libtirpc/libtirpc-0.2.3/rpc_des.h create mode 100644 meta/recipes-extended/libtirpc/libtirpc-0.2.3/yp_prot.h create mode 100644 meta/recipes-extended/libtirpc/libtirpc-0.2.3/ypclnt.h
meta/recipes-extended/libtirpc/libtirpc-0.2.3/key_prot.h new file +343 -0
@@ -0,0 +1,343 @@ +/* +* Please do not edit this file. +* It was generated using rpcgen. +*/ + +#ifndef _KEY_PROT_H_RPCGEN +#define _KEY_PROT_H_RPCGEN + +#include <rpc/rpc.h> + +/* Copyright (c) 2010, Oracle America, Inc. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are +* met: +* +* * Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* * Redistributions in binary form must reproduce the above +* copyright notice, this list of conditions and the following +* disclaimer in the documentation and/or other materials +* provided with the distribution. +* * Neither the name of the "Oracle America, Inc." nor the names of its +* contributors may be used to endorse or promote products derived +* from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* +* Compiled from key_prot.x using rpcgen. +* DO NOT EDIT THIS FILE! +* This is NOT source code! +*/ +#define PROOT 3 +#define HEXMODULUS "d4a0ba0250b6fd2ec626e7efd637df76c716e22d0944b88b" +#define HEXKEYBYTES 48 +#define KEYSIZE 192 +#define KEYBYTES 24 +#define KEYCHECKSUMSIZE 16 + +enum keystatus { +KEY_SUCCESS =0 , +KEY_NOSECRET =1 , +KEY_UNKNOWN =2 , +KEY_SYSTEMERR =3 , +}; +typedef enum keystatus keystatus ; +#ifdef __cplusplus +extern "C" bool_t xdr_keystatus (XDR *,keystatus *); +#elif __STDC__ +extern bool_t xdr_keystatus (XDR *,keystatus *); +#else /* Old Style C */ +bool_t xdr_keystatus (); +#endif /* Old Style C */ + + +typedef char keybuf [HEXKEYBYTES ]; +#ifdef __cplusplus +extern "C" bool_t xdr_keybuf (XDR *,keybuf ); +#elif __STDC__ +extern bool_t xdr_keybuf (XDR *,keybuf ); +#else /* Old Style C */ +bool_t xdr_keybuf (); +#endif /* Old Style C */ + + +typedef char *netnamestr ; +#ifdef __cplusplus +extern "C" bool_t xdr_netnamestr (XDR *,netnamestr *); +#elif __STDC__ +extern bool_t xdr_netnamestr (XDR *,netnamestr *); +#else /* Old Style C */ +bool_t xdr_netnamestr (); +#endif /* Old Style C */ + + +struct cryptkeyarg { +netnamestr remotename; +des_block deskey; +}; +typedef struct cryptkeyarg cryptkeyarg ; +#ifdef __cplusplus +extern "C" bool_t xdr_cryptkeyarg (XDR *,cryptkeyarg *); +#elif __STDC__ +extern bool_t xdr_cryptkeyarg (XDR *,cryptkeyarg *); +#else /* Old Style C */ +bool_t xdr_cryptkeyarg (); +#endif /* Old Style C */ + + +struct cryptkeyarg2 { +netnamestr remotename; +netobj remotekey; +des_block deskey; +}; +typedef struct cryptkeyarg2 cryptkeyarg2 ; +#ifdef __cplusplus +extern "C" bool_t xdr_cryptkeyarg2 (XDR *,cryptkeyarg2 *); +#elif __STDC__ +extern bool_t xdr_cryptkeyarg2 (XDR *,cryptkeyarg2 *); +#else /* Old Style C */ +bool_t xdr_cryptkeyarg2 (); +#endif /* Old Style C */ + + +struct cryptkeyres { +keystatus status; +union { +des_block deskey; + } cryptkeyres_u; +}; +typedef struct cryptkeyres cryptkeyres ; +#ifdef __cplusplus +extern "C" bool_t xdr_cryptkeyres (XDR *,cryptkeyres *); +#elif __STDC__ +extern bool_t xdr_cryptkeyres (XDR *,cryptkeyres *); +#else /* Old Style C */ +bool_t xdr_cryptkeyres (); +#endif /* Old Style C */ + +#define MAXGIDS 16 + +struct unixcred { +u_int uid; +u_int gid; +struct { +u_int gids_len; +u_int *gids_val; + } gids; +}; +typedef struct unixcred unixcred ; +#ifdef __cplusplus +extern "C" bool_t xdr_unixcred (XDR *,unixcred *); +#elif __STDC__ +extern bool_t xdr_unixcred (XDR *,unixcred *); +#else /* Old Style C */ +bool_t xdr_unixcred (); +#endif /* Old Style C */ + + +struct getcredres { +keystatus status; +union { +unixcred cred; + } getcredres_u; +}; +typedef struct getcredres getcredres ; +#ifdef __cplusplus +extern "C" bool_t xdr_getcredres (XDR *,getcredres *); +#elif __STDC__ +extern bool_t xdr_getcredres (XDR *,getcredres *); +#else /* Old Style C */ +bool_t xdr_getcredres (); +#endif /* Old Style C */ + + +struct key_netstarg { +keybuf st_priv_key; +keybuf st_pub_key; +netnamestr st_netname; +}; +typedef struct key_netstarg key_netstarg ; +#ifdef __cplusplus +extern "C" bool_t xdr_key_netstarg (XDR *,key_netstarg *); +#elif __STDC__ +extern bool_t xdr_key_netstarg (XDR *,key_netstarg *); +#else /* Old Style C */ +bool_t xdr_key_netstarg (); +#endif /* Old Style C */ + + +struct key_netstres { +keystatus status; +union { +key_netstarg knet; + } key_netstres_u; +}; +typedef struct key_netstres key_netstres ; +#ifdef __cplusplus +extern "C" bool_t xdr_key_netstres (XDR *,key_netstres *); +#elif __STDC__ +extern bool_t xdr_key_netstres (XDR *,key_netstres *); +#else /* Old Style C */ +bool_t xdr_key_netstres (); +#endif /* Old Style C */ + + +#ifndef opaque +#define opaque char +#endif + + +#define KEY_PROG ((u_long)100029) +#define KEY_VERS ((u_long)1) + +#ifdef __cplusplus +#define KEY_SET ((u_long)1) +extern "C" keystatus *key_set_1 (opaque *,CLIENT *); +extern "C" keystatus *key_set_1_svc (opaque *,struct svc_req *); +#define KEY_ENCRYPT ((u_long)2) +extern "C" cryptkeyres *key_encrypt_1 (cryptkeyarg *,CLIENT *); +extern "C" cryptkeyres *key_encrypt_1_svc (cryptkeyarg *,struct svc_req *); +#define KEY_DECRYPT ((u_long)3) +extern "C" cryptkeyres *key_decrypt_1 (cryptkeyarg *,CLIENT *); +extern "C" cryptkeyres *key_decrypt_1_svc (cryptkeyarg *,struct svc_req *); +#define KEY_GEN ((u_long)4) +extern "C" des_block *key_gen_1 (void *,CLIENT *); +extern "C" des_block *key_gen_1_svc (void *,struct svc_req *); +#define KEY_GETCRED ((u_long)5) +extern "C" getcredres *key_getcred_1 (netnamestr *,CLIENT *); +extern "C" getcredres *key_getcred_1_svc (netnamestr *,struct svc_req *); + +#elif __STDC__ +#define KEY_SET ((u_long)1) +extern keystatus *key_set_1 (opaque *,CLIENT *); +extern keystatus *key_set_1_svc (opaque *,struct svc_req *); +#define KEY_ENCRYPT ((u_long)2) +extern cryptkeyres *key_encrypt_1 (cryptkeyarg *,CLIENT *); +extern cryptkeyres *key_encrypt_1_svc (cryptkeyarg *,struct svc_req *); +#define KEY_DECRYPT ((u_long)3) +extern cryptkeyres *key_decrypt_1 (cryptkeyarg *,CLIENT *); +extern cryptkeyres *key_decrypt_1_svc (cryptkeyarg *,struct svc_req *); +#define KEY_GEN ((u_long)4) +extern des_block *key_gen_1 (void *,CLIENT *); +extern des_block *key_gen_1_svc (void *,struct svc_req *); +#define KEY_GETCRED ((u_long)5) +extern getcredres *key_getcred_1 (netnamestr *,CLIENT *); +extern getcredres *key_getcred_1_svc (netnamestr *,struct svc_req *); + +#else /* Old Style C */ +#define KEY_SET ((u_long)1) +extern keystatus *key_set_1 (); +extern keystatus *key_set_1_svc (); +#define KEY_ENCRYPT ((u_long)2) +extern cryptkeyres *key_encrypt_1 (); +extern cryptkeyres *key_encrypt_1_svc (); +#define KEY_DECRYPT ((u_long)3) +extern cryptkeyres *key_decrypt_1 (); +extern cryptkeyres *key_decrypt_1_svc (); +#define KEY_GEN ((u_long)4) +extern des_block *key_gen_1 (); +extern des_block *key_gen_1_svc (); +#define KEY_GETCRED ((u_long)5) +extern getcredres *key_getcred_1 (); +extern getcredres *key_getcred_1_svc (); +#endif /* Old Style C */ +#define KEY_VERS2 ((u_long)2) + +#ifdef __cplusplus +extern "C" keystatus *key_set_2 (opaque *,CLIENT *); +extern "C" keystatus *key_set_2_svc (opaque *,struct svc_req *); +extern "C" cryptkeyres *key_encrypt_2 (cryptkeyarg *,CLIENT *); +extern "C" cryptkeyres *key_encrypt_2_svc (cryptkeyarg *,struct svc_req *); +extern "C" cryptkeyres *key_decrypt_2 (cryptkeyarg *,CLIENT *); +extern "C" cryptkeyres *key_decrypt_2_svc (cryptkeyarg *,struct svc_req *); +extern "C" des_block *key_gen_2 (void *,CLIENT *); +extern "C" des_block *key_gen_2_svc (void *,struct svc_req *); +extern "C" getcredres *key_getcred_2 (netnamestr *,CLIENT *); +extern "C" getcredres *key_getcred_2_svc (netnamestr *,struct svc_req *); +#define KEY_ENCRYPT_PK ((u_long)6) +extern "C" cryptkeyres *key_encrypt_pk_2 (cryptkeyarg2 *,CLIENT *); +extern "C" cryptkeyres *key_encrypt_pk_2_svc (cryptkeyarg2 *,struct svc_req *); +#define KEY_DECRYPT_PK ((u_long)7) +extern "C" cryptkeyres *key_decrypt_pk_2 (cryptkeyarg2 *,CLIENT *); +extern "C" cryptkeyres *key_decrypt_pk_2_svc (cryptkeyarg2 *,struct svc_req *); +#define KEY_NET_PUT ((u_long)8) +extern "C" keystatus *key_net_put_2 (key_netstarg *,CLIENT *); +extern "C" keystatus *key_net_put_2_svc (key_netstarg *,struct svc_req *); +#define KEY_NET_GET ((u_long)9) +extern "C" key_netstres *key_net_get_2 (void *,CLIENT *); +extern "C" key_netstres *key_net_get_2_svc (void *,struct svc_req *); +#define KEY_GET_CONV ((u_long)10) +extern "C" cryptkeyres *key_get_conv_2 (opaque *,CLIENT *); +extern "C" cryptkeyres *key_get_conv_2_svc (opaque *,struct svc_req *); + +#elif __STDC__ +extern keystatus *key_set_2 (opaque *,CLIENT *); +extern keystatus *key_set_2_svc (opaque *,struct svc_req *); +extern cryptkeyres *key_encrypt_2 (cryptkeyarg *,CLIENT *); +extern cryptkeyres *key_encrypt_2_svc (cryptkeyarg *,struct svc_req *); +extern cryptkeyres *key_decrypt_2 (cryptkeyarg *,CLIENT *); +extern cryptkeyres *key_decrypt_2_svc (cryptkeyarg *,struct svc_req *); +extern des_block *key_gen_2 (void *,CLIENT *); +extern des_block *key_gen_2_svc (void *,struct svc_req *); +extern getcredres *key_getcred_2 (netnamestr *,CLIENT *); +extern getcredres *key_getcred_2_svc (netnamestr *,struct svc_req *); +#define KEY_ENCRYPT_PK ((u_long)6) +extern cryptkeyres *key_encrypt_pk_2 (cryptkeyarg2 *,CLIENT *); +extern cryptkeyres *key_encrypt_pk_2_svc (cryptkeyarg2 *,struct svc_req *); +#define KEY_DECRYPT_PK ((u_long)7) +extern cryptkeyres *key_decrypt_pk_2 (cryptkeyarg2 *,CLIENT *); +extern cryptkeyres *key_decrypt_pk_2_svc (cryptkeyarg2 *,struct svc_req *); +#define KEY_NET_PUT ((u_long)8) +extern keystatus *key_net_put_2 (key_netstarg *,CLIENT *); +extern keystatus *key_net_put_2_svc (key_netstarg *,struct svc_req *); +#define KEY_NET_GET ((u_long)9) +extern key_netstres *key_net_get_2 (void *,CLIENT *); +extern key_netstres *key_net_get_2_svc (void *,struct svc_req *); +#define KEY_GET_CONV ((u_long)10) +extern cryptkeyres *key_get_conv_2 (opaque *,CLIENT *); +extern cryptkeyres *key_get_conv_2_svc (opaque *,struct svc_req *); + +#else /* Old Style C */ +extern keystatus *key_set_2 (); +extern keystatus *key_set_2_svc (); +extern cryptkeyres *key_encrypt_2 (); +extern cryptkeyres *key_encrypt_2_svc (); +extern cryptkeyres *key_decrypt_2 (); +extern cryptkeyres *key_decrypt_2_svc (); +extern des_block *key_gen_2 (); +extern des_block *key_gen_2_svc (); +extern getcredres *key_getcred_2 (); +extern getcredres *key_getcred_2_svc (); +#define KEY_ENCRYPT_PK ((u_long)6) +extern cryptkeyres *key_encrypt_pk_2 (); +extern cryptkeyres *key_encrypt_pk_2_svc (); +#define KEY_DECRYPT_PK ((u_long)7) +extern cryptkeyres *key_decrypt_pk_2 (); +extern cryptkeyres *key_decrypt_pk_2_svc (); +#define KEY_NET_PUT ((u_long)8) +extern keystatus *key_net_put_2 (); +extern keystatus *key_net_put_2_svc (); +#define KEY_NET_GET ((u_long)9) +extern key_netstres *key_net_get_2 (); +extern key_netstres *key_net_get_2_svc (); +#define KEY_GET_CONV ((u_long)10) +extern cryptkeyres *key_get_conv_2 (); +extern cryptkeyres *key_get_conv_2_svc (); +#endif /* Old Style C */ + +#endif /* !_KEY_PROT_H_RPCGEN */
meta/recipes-extended/libtirpc/libtirpc-0.2.3/libtirpc-0.2.3-add-missing-bits-from-glibc.patch new file +1766 -0
1,766 lines not on this page · raw message
meta/recipes-extended/libtirpc/libtirpc-0.2.3/libtirpc-0.2.3-types.h.patch new file +14 -0
@@ -0,0 +1,14 @@ +--- libtirpc-0.2.3/tirpc/rpc/types.h.bero 2013-01-28 23:59:14.383069929 +0100 ++++ libtirpc-0.2.3/tirpc/rpc/types.h 2013-01-28 23:59:39.123777626 +0100 +@@ -38,6 +38,11 @@ + #ifndef _TIRPC_TYPES_H + #define _TIRPC_TYPES_H + ++#ifndef _BSD_SOURCE ++/* For uint_t and friends */ ++#define _BSD_SOURCE 1 ++#endif ++ + #include <sys/types.h> + + typedef int32_t bool_t;
meta/recipes-extended/libtirpc/libtirpc-0.2.3/libtirpc-0008-Add-rpcgen-program-from-nfs-utils-sources.patch new file +6408 -0
877 lines not on this page · raw message
meta/recipes-extended/libtirpc/libtirpc-0.2.3/nis.h new file +616 -0
616 lines not on this page · raw message
meta/recipes-extended/libtirpc/libtirpc-0.2.3/nis_tags.h new file +129 -0
129 lines not on this page · raw message
meta/recipes-extended/libtirpc/libtirpc-0.2.3/nislib.h new file +288 -0
288 lines not on this page · raw message
meta/recipes-extended/libtirpc/libtirpc-0.2.3/rpc_des.h new file +71 -0
71 lines not on this page · raw message
meta/recipes-extended/libtirpc/libtirpc-0.2.3/yp_prot.h new file +366 -0
366 lines not on this page · raw message
meta/recipes-extended/libtirpc/libtirpc-0.2.3/ypclnt.h new file +89 -0
89 lines not on this page · raw message
meta/recipes-extended/libtirpc/libtirpc_0.2.3.bb +31 -4
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.8.1.2
Part of the diff is not shown here. View the raw message.
PATCH 3/6 busybox: disable MOUNT_NFS option - not needed on 2.6.23+ kernels
In reply to Marcin JuszkiewiczWithout this option we do not need RPC support from glibc.
--- meta/recipes-core/busybox/busybox-1.20.2/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/busybox/busybox-1.20.2/defconfig +1 -1
@@ -583,7 +583,7 @@ CONFIG_MOUNT=y # CONFIG_FEATURE_MOUNT_VERBOSE is not set # CONFIG_FEATURE_MOUNT_HELPERS is not set # CONFIG_FEATURE_MOUNT_LABEL is not set -CONFIG_FEATURE_MOUNT_NFS=y +# CONFIG_FEATURE_MOUNT_NFS is not set # CONFIG_FEATURE_MOUNT_CIFS is not set CONFIG_FEATURE_MOUNT_FLAGS=y CONFIG_FEATURE_MOUNT_FSTAB=y
Signature · 1 line
1.8.1.2
PATCH 4/6 quota: switch to libtirpc
In reply to Marcin Juszkiewicz--- meta/recipes-extended/quota/quota_4.01.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
meta/recipes-extended/quota/quota_4.01.bb +6 -1
@@ -15,12 +15,17 @@ SRC_URI[sha256sum] = "a36300bbc126b79b745bf937245092808b4585aa3309ef3335d4ab9d87 S = "${WORKDIR}/quota-tools" -DEPENDS = "gettext-native e2fsprogs" +DEPENDS = "gettext-native e2fsprogs libtirpc" inherit autotools gettext EXTRA_OEMAKE += 'STRIP=""' +do_configure_prepend() { + export CFLAGS="${CFLAGS} -I${STAGING_INCDIR}/tirpc" + export LDFLAGS="-ltirpc ${LDFLAGS} " +} + do_install() { oe_runmake prefix=${D}${prefix} install }
Signature · 1 line
1.8.1.2
PATCH 5/6 rpcbind: disable yellow pages support
In reply to Marcin Juszkiewicz--- .../rpcbind/rpcbind/rpcbind-01-no-yp-support.patch | 49 ++++++++++++++++++++++ meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb | 1 + 2 files changed, 50 insertions(+) create mode 100644 meta/recipes-extended/rpcbind/rpcbind/rpcbind-01-no-yp-support.patch
meta/recipes-extended/rpcbind/rpcbind/rpcbind-01-no-yp-support.patch new file +49 -0
@@ -0,0 +1,49 @@ +Remove yellow pages support + +This support requires yellow pages support in libtirpc, which isn't +available. As most Buildroot users are most likely never going to need +such feature, get rid of it. + +Signed-off-by: Thomas Petazzoni <[email protected]> + +Upstream-Status: inappropriate [embedded specific] + +Index: b/src/security.c +=================================================================== +--- a/src/security.c ++++ b/src/security.c +@@ -23,9 +23,6 @@ + #include <rpcsvc/mount.h> + #include <rpcsvc/rquota.h> + #include <rpcsvc/nfs_prot.h> +-#include <rpcsvc/yp.h> +-#include <rpcsvc/ypclnt.h> +-#include <rpcsvc/yppasswd.h> + + #include "rpcbind.h" + +@@ -322,24 +319,9 @@ + args->rmt_proc != MOUNTPROC_UMNT) + break; + goto deny; +- case YPBINDPROG: +- if (args->rmt_proc != YPBINDPROC_SETDOM) +- break; +- /* FALLTHROUGH */ +- case YPPASSWDPROG: + case NFS_PROGRAM: + case RQUOTAPROG: + goto deny; +- case YPPROG: +- switch (args->rmt_proc) { +- case YPPROC_ALL: +- case YPPROC_MATCH: +- case YPPROC_FIRST: +- case YPPROC_NEXT: +- goto deny; +- default: +- break; +- } + default: + break; + }
meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb +1 -0
@@ -14,6 +14,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \ file://init.d \ file://fix_host_path.patch \ file://obsolete_automake_macros.patch \ + file://rpcbind-01-no-yp-support.patch \ ${UCLIBCPATCHES} \ "
Signature · 1 line
1.8.1.2
PATCH 6/6 nfs-utils: switch to libtirpc
In reply to Marcin Juszkiewicz--- meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.7.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.7.bb +3 -2
@@ -8,7 +8,7 @@ LICENSE = "MIT & GPLv2+ & BSD" LIC_FILES_CHKSUM = "file://COPYING;md5=95f3a93a5c3c7888de623b46ea085a84" # util-linux for libblkid -DEPENDS = "libcap libnfsidmap libevent util-linux tcp-wrappers sqlite3" +DEPENDS = "libcap libnfsidmap libevent util-linux tcp-wrappers sqlite3 libtirpc" RDEPENDS_${PN} = "rpcbind" RRECOMMENDS_${PN} = "kernel-module-nfsd"
@@ -42,9 +42,10 @@ EXTRA_OECONF = "--with-statduser=nobody \ --disable-nfsv41 \ --enable-uuid \ --disable-gss \ - --disable-tirpc \ + --enable-tirpc \ --disable-nfsdcltrack \ --with-statdpath=/var/lib/nfs/statd \ + --with-tirpcinclude=${STAGING_INCDIR}/tirpc/ \ " INHIBIT_AUTO_STAGE = "1"
Signature · 1 line
1.8.1.2
Quoted 1 line · On Wednesday 20 March 2013 10:37:17 Marcin Juszkiewicz wrote:
rpcbind needed removal of yellow pages support (whatever it is).
Isn't that NIS? Will that affect the ypbind-mt / yp-tools recipes recently added back into meta-networking?
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
W dniu 20.03.2013 11:27, Paul Eggleton pisze:
Quoted 5 lines · On Wednesday 20 March 2013 10:37:17 Marcin Juszkiewicz wrote:
Quoted 1 line
rpcbind needed removal of yellow pages support (whatever it is).
Isn't that NIS? Will that affect the ypbind-mt / yp-tools recipes recently added back into meta-networking?
Good point. YP-tools are not buildable with my changeset due to lack of YP support in libtirpc.
Quoted 10 lines · Marcin Juszkiewicz
W dniu 20.03.2013 11:27, Paul Eggleton pisze:
Quoted 5 lines · On Wednesday 20 March 2013 10:37:17 Marcin Juszkiewicz wrote:
Quoted 1 line
rpcbind needed removal of yellow pages support (whatever it is).
Isn't that NIS? Will that affect the ypbind-mt / yp-tools recipes recently added back into meta-networking?
Good point. YP-tools are not buildable with my changeset due to lack of YP support in libtirpc.
There is definitely a class of user (networking devices) where nis/yp are still being used. I would love to see NIS support be a distro feature or similar configure time element.
-after- the upcoming release, I think we should pursue these patches, assuming we can get the NIS support enabled in some way.
BTW my only other question was the busybox side. I'm a bit confused by the comment. I thought the mount_nfs was still required because it enabled the proper binding argument for the mount syscall. While I don't believe we need to still support the older kernel(s), we definitely need NFS mounts to work in busybox.
--Mark
W dniu 20.03.2013 13:50, Mark Hatle pisze:
Quoted 8 lines · Marcin Juszkiewicz
Quoted 3 lines
Good point. YP-tools are not buildable with my changeset due to lack of YP support in libtirpc.
There is definitely a class of user (networking devices) where nis/yp are still being used. I would love to see NIS support be a distro feature or similar configure time element.
Good idea.
Quoted 2 lines
-after- the upcoming release, I think we should pursue these patches, assuming we can get the NIS support enabled in some way.
Looks like we have to wait for TI RPC to mature more.
Quoted 5 lines
BTW my only other question was the busybox side. I'm a bit confused by the comment. I thought the
mount_nfswas still required because it enabled the proper binding argument for the mount syscall. While I don't believe we need to still support the older kernel(s), we definitely need NFS mounts to work in busybox.
Since
http://git.busybox.net/busybox/commit/?id=a86e02492d7700ce8cb4108f53646dfb025c2dff
change (2011-11-10) this option is not needed to mount NFS with 2.6.23+ kernel:
config FEATURE_MOUNT_NFS
bool "Support mounting NFS file systems on Linux < 2.6.23" default n
depends on MOUNT
select FEATURE_HAVE_RPC
select FEATURE_SYSLOG
help
Enable mounting of NFS file systems on Linux kernels prior to version 2.6.23. Note that in this case mounting of NFS over IPv6 will not be possible.
Note that this option links in RPC support from libc, which is rather large (~10 kbytes on uclibc).
Quoted 11 lines · Marcin Juszkiewicz
W dniu 20.03.2013 13:50, Mark Hatle pisze:
Quoted 8 lines · Marcin Juszkiewicz
Quoted 3 lines
Good point. YP-tools are not buildable with my changeset due to lack of YP support in libtirpc.
There is definitely a class of user (networking devices) where nis/yp are still being used. I would love to see NIS support be a distro feature or similar configure time element.
Good idea.
It's not totally obvious to me that having NIS itself be a DISTRO_FEATURE would buy much. Are there any packages whose configuration actually changes as a result?
Having tirpc vs legacy rpc selectable through DISTRO_FEATURES sounds like a fine plan though.
p.