public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Steve Dickson <steved@redhat.com>
Cc: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH 1/2] rpc.svcgssd: Add a configure switch to disable building the daemon
Date: Wed, 5 Nov 2014 13:56:33 +1100	[thread overview]
Message-ID: <20141105135633.4ea63a2c@notabene.brown> (raw)
In-Reply-To: <1411489301-28991-2-git-send-email-steved@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 2920 bytes --]

On Tue, 23 Sep 2014 12:21:40 -0400 Steve Dickson <steved@redhat.com> wrote:

> Now that gssproxy is supported on modern kernels,
> the svcgssd is no longer needed. This switch
> disables the building of the daemon.
> 
> Signed-off-by: Steve Dickson <steved@redhat.com>
> ---
>  configure.ac           | 23 +++++++++++++++++++----
>  utils/gssd/Makefile.am | 11 +++++++++--
>  2 files changed, 28 insertions(+), 6 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index bc48373..b63d821 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -90,21 +90,36 @@ AC_ARG_ENABLE(nfsv41,
>  
>  AC_ARG_ENABLE(gss,
>  	[AC_HELP_STRING([--enable-gss],
> -                        [enable support for rpcsec_gss @<:@default=yes@:>@])],
> +              [enable client support for rpcsec_gss @<:@default=yes@:>@])],
>  	enable_gss=$enableval,
>  	enable_gss=yes)
>  	if test "$enable_gss" = yes; then
>  		GSSD=gssd
> -		SVCGSSD=svcgssd
>  	else
>  		enable_gss=
>  		GSSD=
> -		SVCGSSD=
>  	fi
>  	AC_SUBST(GSSD)
> -	AC_SUBST(SVCGSSD)
>  	AC_SUBST(enable_gss)
>  	AM_CONDITIONAL(CONFIG_GSS, [test "$enable_gss" = "yes"])
> +
> +AC_ARG_ENABLE(svcgss,
> +	[AC_HELP_STRING([--enable-svcgss],
> +    [dissable building svcgssd for rpcsec_gss server support @<:@default=yes@:>@])],
> +	enable_svcgss=$enableval,
> +	enable_svcgss=yes)
> +	if test "$enable_gss" = yes; then
> +		if "enable_svcgss" = yes; then
> +			SVCGSSD=svcgssd
> +		fi

Hi Steve,
 I just noticed that this causes an error when I try "./configure".
It tries to run a program called "enable_svcgss" with args "=" and "yes",
but this fails....

A simple fix would leave the code doing nothing if enable_gss = yes, but
enable_svcgss = no.  Is that what you want?

Should it be:

        if test "$enable_gss" = yes -a "$enable_svcgss" = yes; then
                SVCGSSD=svcgssd
> +	else
> +		enable_svcgss=
> +		SVCGSSD=
> +	fi

??

Would you like a patch, or will you just fix it up?

Thanks,
NeilBrown


> +	AC_SUBST(SVCGSSD)
> +	AC_SUBST(enable_svcgss)
> +	AM_CONDITIONAL(CONFIG_SVCGSS, [test "$enable_svcgss" = "yes"])
> +
>  AC_ARG_ENABLE(kprefix,
>  	[AC_HELP_STRING([--enable-kprefix], [install progs as rpc.knfsd etc])],
>  	test "$enableval" = "yes" && kprefix=k,
> diff --git a/utils/gssd/Makefile.am b/utils/gssd/Makefile.am
> index af59791..9835117 100644
> --- a/utils/gssd/Makefile.am
> +++ b/utils/gssd/Makefile.am
> @@ -1,10 +1,17 @@
>  ## Process this file with automake to produce Makefile.in
>  
> -man8_MANS	= gssd.man svcgssd.man
> +man8_MANS	= gssd.man
> +if CONFIG_SVCGSS
> +man8_MANS	+= svcgssd.man
> +endif
>  
>  RPCPREFIX	= rpc.
>  KPREFIX		= @kprefix@
> -sbin_PREFIXED	= gssd svcgssd
> +sbin_PREFIXED	= gssd
> +if CONFIG_SVCGSS
> +sbin_PREFIXED	+= svcgssd
> +endif
> +
>  sbin_PROGRAMS	= $(sbin_PREFIXED)
>  
>  EXTRA_DIST = \


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]

  reply	other threads:[~2014-11-05  2:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-23 16:21 [PATCH 0/2] Use the gssproxy damon for GSSAPI credentials (v4) Steve Dickson
2014-09-23 16:21 ` [PATCH 1/2] rpc.svcgssd: Add a configure switch to disable building the daemon Steve Dickson
2014-11-05  2:56   ` NeilBrown [this message]
2014-11-05 16:17     ` Steve Dickson
2014-11-05 19:45       ` NeilBrown
2014-09-23 16:21 ` [PATCH 2/2] nfs-service: Added gssproxy support Steve Dickson

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=20141105135633.4ea63a2c@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-nfs@vger.kernel.org \
    --cc=steved@redhat.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