All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH] nfsidmap: auto disable when keyutils is not found
Date: Wed, 14 Sep 2011 14:27:30 -0400	[thread overview]
Message-ID: <4E70F212.3020504@RedHat.com> (raw)
In-Reply-To: <1314991015-21484-1-git-send-email-vapier@gentoo.org>



On 09/02/2011 03:16 PM, Mike Frysinger wrote:
> Since we already auto-disable based on libnfsidmap capabilities, don't
> make keyutils a hard failure.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Committed...

steved.

> ---
>  aclocal/keyutils.m4    |    4 ++--
>  aclocal/libnfsidmap.m4 |    3 +--
>  configure.ac           |    2 +-
>  3 files changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/aclocal/keyutils.m4 b/aclocal/keyutils.m4
> index 84bc112..a392c0e 100644
> --- a/aclocal/keyutils.m4
> +++ b/aclocal/keyutils.m4
> @@ -6,6 +6,6 @@ AC_DEFUN([AC_KEYUTILS], [
>    AC_CHECK_LIB([keyutils], [keyctl_instantiate], [LIBKEYUTILS=-lkeyutils], ,)
>    AC_SUBST(LIBKEYUTILS)
>  
> -  AC_CHECK_HEADERS([keyutils.h], ,
> -  		   [AC_MSG_ERROR([keyutils.h header not found.])])
> +  AC_CHECK_HEADERS([keyutils.h])
> +
>  ])dnl
> diff --git a/aclocal/libnfsidmap.m4 b/aclocal/libnfsidmap.m4
> index 4faa923..484b1ec 100644
> --- a/aclocal/libnfsidmap.m4
> +++ b/aclocal/libnfsidmap.m4
> @@ -15,7 +15,6 @@ AC_DEFUN([AC_LIBNFSIDMAP], [
>                            [Define to 1 if you have the `nfs4_set_debug' function.])])
>  
>    dnl only enable nfsidmap when libnfsidmap supports it
> -  AC_CHECK_LIB([nfsidmap], [nfs4_owner_to_uid], [enable_nfsidmap=yes],
> -               [enable_nfsidmap=no])
> +  AC_CHECK_LIB([nfsidmap], [nfs4_owner_to_uid])
>  
>  ])dnl
> diff --git a/configure.ac b/configure.ac
> index c9fb27b..1a28f8a 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -266,7 +266,7 @@ if test "$enable_nfsv4" = yes; then
>    fi
>  fi
>  dnl enable nfsidmap when its support by libnfsidmap
> -AM_CONDITIONAL(CONFIG_NFSIDMAP, [test "$enable_nfsidmap" = "yes"])
> +AM_CONDITIONAL(CONFIG_NFSIDMAP, [test "$ac_cv_header_keyutils_h$ac_cv_lib_nfsidmap_nfs4_owner_to_uid" = "yesyes"])
>  
>  
>  if test "$knfsd_cv_glibc2" = no; then

  reply	other threads:[~2011-09-14 18:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-02 19:16 [PATCH] nfsidmap: auto disable when keyutils is not found Mike Frysinger
2011-09-14 18:27 ` Steve Dickson [this message]
2011-12-22 14:38 ` Jeff Layton
2011-12-22 16:20   ` Mike Frysinger
2011-12-23 14:34     ` Jeff Layton
2011-12-23 17:04       ` Jeff Layton

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=4E70F212.3020504@RedHat.com \
    --to=steved@redhat.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=vapier@gentoo.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.