public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Khem Raj <raj.khem@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 04/11] rpcbind: Dont use nss with uclibc
Date: Fri, 25 Jan 2013 14:20:00 +0000	[thread overview]
Message-ID: <1359123600.13917.2.camel@ted> (raw)
In-Reply-To: <42bd84e2dd6a8f88e8e8433ccf0d0c4d4866cc6e.1359061155.git.raj.khem@gmail.com>

On Thu, 2013-01-24 at 13:07 -0800, Khem Raj wrote:
> Add defines which otherwise are missing in uclibc nss
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  .../rpcbind/rpcbind/0001-uclibc-nss.patch          |   30 ++++++++++
>  .../rpcbind/0002-uclibc-rpcsvc-defines.patch       |   60 ++++++++++++++++++++
>  meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb     |    8 +++
>  3 files changed, 98 insertions(+)
>  create mode 100644 meta/recipes-extended/rpcbind/rpcbind/0001-uclibc-nss.patch
>  create mode 100644 meta/recipes-extended/rpcbind/rpcbind/0002-uclibc-rpcsvc-defines.patch
> 
> 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 0000000..afa55f3
> --- /dev/null
> +++ b/meta/recipes-extended/rpcbind/rpcbind/0001-uclibc-nss.patch
> @@ -0,0 +1,30 @@
> +Upstream-Status: Pending
> +
> +From b8f0d7b7318ba344c25785d6f5cf3f8de98012d4 Mon Sep 17 00:00:00 2001
> +From: Natanael Copa <ncopa@alpinelinux.org>
> +Date: Tue, 2 Feb 2010 09:36:03 +0000
> +Subject: [PATCH 1/2] uclibc-nss
> +
> +---
> + src/rpcbind.c |    4 ++++
> + 1 files changed, 4 insertions(+), 0 deletions(-)
> +
> +diff --git a/src/rpcbind.c b/src/rpcbind.c
> +index 525ffba..1fe1a60 100644
> +--- a/src/rpcbind.c
> ++++ b/src/rpcbind.c
> +@@ -67,7 +67,11 @@
> + #include <pwd.h>
> + #include <string.h>
> + #include <errno.h>
> ++#if defined(__UCLIBC__)
> ++#define __nss_configure_lookup(x,y)
> ++#else
> + #include <nss.h>
> ++#endif
> + #include "config.h"
> + #include "rpcbind.h"
> + 
> +-- 
> +1.6.6.1
> +
> 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 0000000..c54fc96
> --- /dev/null
> +++ b/meta/recipes-extended/rpcbind/rpcbind/0002-uclibc-rpcsvc-defines.patch
> @@ -0,0 +1,60 @@
> +Upstream-Status: Pending
> +
> +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
> +
> +---
> + 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__)
> ++
> ++#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
> +
> diff --git a/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb b/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb
> index 9fb4f51..7b723df 100644
> --- a/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb
> +++ b/meta/recipes-extended/rpcbind/rpcbind_0.2.0.bb
> @@ -13,8 +13,16 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b46486e4c4a416602693a711bb5bfa39 \
>  SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \
>             file://init.d \
>             file://fix_host_path.patch \
> +           ${UCLIBCPATCHES} \
>            "
>  
> +UCLIBCPATCHES_libc-uclibc = "file://0001-uclibc-nss.patch \
> +                             file://0002-uclibc-rpcsvc-defines.patch \
> +                            "
> +UCLIBCPATCHES ?= ""
> +
> +LDFLAGS += "-lssl"

The LDFLAGS change should really be marked as ublibc too...

Cheers,

Richard





  reply	other threads:[~2013-01-25 14:36 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-24 21:07 [PATCH 00/11] recipes refreshed for uclibc and systemd update to 197 Khem Raj
2013-01-24 21:07 ` [PATCH 01/11] libpcap: Add missing libusb dependency Khem Raj
2013-01-24 21:50   ` Richard Purdie
2013-01-24 22:14     ` Khem Raj
2013-01-24 22:42       ` Chris Larson
2013-01-24 22:49         ` Richard Purdie
2013-01-25  1:00           ` Khem Raj
2013-01-25  4:30           ` Khem Raj
2013-01-24 21:07 ` [PATCH 02/11] gettext: Fix build with uclibc remove upstreamed patches Khem Raj
2013-01-24 21:07 ` [PATCH 03/11] libtirpc: Disable DES functions on uclibc Khem Raj
2013-01-24 21:07 ` [PATCH 04/11] rpcbind: Dont use nss with uclibc Khem Raj
2013-01-25 14:20   ` Richard Purdie [this message]
2013-01-25 17:22     ` Khem Raj
2013-01-24 21:07 ` [PATCH 05/11] quota: inherit gettext Khem Raj
2013-01-24 21:07 ` [PATCH 06/11] icu: Fix build on uclibc Khem Raj
2013-01-24 21:07 ` [PATCH 07/11] uclibc-git/uClibc.distro: Enable UCLIBC_HAS_REENTRANT_RPC Khem Raj
2013-01-24 21:07 ` [PATCH 08/11] tcmode-default.inc: Switch to git version of uclibc by default Khem Raj
2013-01-24 21:07 ` [PATCH 09/11] systemd: Fix build on ppc Khem Raj
2013-01-24 21:07 ` [PATCH 10/11] systemd: Upgrade to 197 Khem Raj
2013-01-25 16:04   ` Burton, Ross
2013-01-25 16:08     ` Martin Jansa
2013-01-25 16:10       ` Burton, Ross
2013-01-24 21:07 ` [PATCH 11/11] gawk: Add missing dependency on readline Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1359123600.13917.2.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox