linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: Calvin Walton <calvin.walton@kepstin.ca>, linux-nfs@vger.kernel.org
Subject: Re: [PATCH] nfs-utils: Substitute sbindir in systemd unit files.
Date: Mon, 2 Nov 2015 07:53:40 -0500	[thread overview]
Message-ID: <56375CD4.3010806@RedHat.com> (raw)
In-Reply-To: <1429638223-13852-1-git-send-email-calvin.walton@kepstin.ca>

Hello, 

I'm finally getting around to looking at this and
I'm seen a couple issues...

On 04/21/2015 01:43 PM, Calvin Walton wrote:
> The systemd unit files now include the correct full paths to the
> executables when nfs-utils is configured with an alternate value
> for e.g. --prefix or --sbindir
> 
> Signed-off-by: Calvin Walton <calvin.walton@kepstin.ca>
> ---
> 
> Resend of the same patch, but this time generated with -M so the diff
> includes file moves; this should make it a bit easier to review.
> 
>  .gitignore                                         |  8 ++++++
>  systemd/Makefile.am                                | 31 ++++++++++++----------
>  .../{nfs-blkmap.service => nfs-blkmap.service.in}  |  2 +-
>  .../{nfs-idmapd.service => nfs-idmapd.service.in}  |  2 +-
>  .../{nfs-mountd.service => nfs-mountd.service.in}  |  2 +-
>  .../{nfs-server.service => nfs-server.service.in}  | 12 ++++-----
>  systemd/{rpc-gssd.service => rpc-gssd.service.in}  |  2 +-
>  ...-notify.service => rpc-statd-notify.service.in} |  2 +-
>  .../{rpc-statd.service => rpc-statd.service.in}    |  2 +-
>  ...{rpc-svcgssd.service => rpc-svcgssd.service.in} |  2 +-
>  10 files changed, 38 insertions(+), 27 deletions(-)
>  rename systemd/{nfs-blkmap.service => nfs-blkmap.service.in} (88%)
>  rename systemd/{nfs-idmapd.service => nfs-idmapd.service.in} (86%)
>  rename systemd/{nfs-mountd.service => nfs-mountd.service.in} (86%)
>  rename systemd/{nfs-server.service => nfs-server.service.in} (78%)
>  rename systemd/{rpc-gssd.service => rpc-gssd.service.in} (90%)
>  rename systemd/{rpc-statd-notify.service => rpc-statd-notify.service.in} (90%)
>  rename systemd/{rpc-statd.service => rpc-statd.service.in} (87%)
>  rename systemd/{rpc-svcgssd.service => rpc-svcgssd.service.in} (91%)
> 
> diff --git a/.gitignore b/.gitignore
> index 5164637..4776b04 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -69,6 +69,14 @@ tests/nsm_client/nlm_sm_inter_clnt.c
>  tests/nsm_client/nlm_sm_inter_svc.c
>  tests/nsm_client/nlm_sm_inter_xdr.c
>  utils/nfsidmap/nfsidmap
> +systemd/nfs-blkmap.service
> +systemd/nfs-idmapd.service
> +systemd/nfs-mountd.service
> +systemd/nfs-server.service
> +systemd/rpc-gssd.service
> +systemd/rpc-statd-notify.service
> +systemd/rpc-statd.service
> +systemd/rpc-svcgssd.service
>  # cscope database files
>  cscope.*
>  # generic editor backup et al
> diff --git a/systemd/Makefile.am b/systemd/Makefile.am
> index fbcabb1..ec7e09b 100644
> --- a/systemd/Makefile.am
> +++ b/systemd/Makefile.am
> @@ -2,30 +2,33 @@
>  
>  MAINTAINERCLEANFILES = Makefile.in
>  
> -unit_files =  \
> +if INSTALL_SYSTEMD
> +dist_unit_DATA = \
>      nfs-client.target \
>      \
>      auth-rpcgss-module.service \
> -    nfs-blkmap.service \
>      nfs-config.service \
> +    nfs-utils.service \
> +    \
> +    proc-fs-nfsd.mount \
> +    var-lib-nfs-rpc_pipefs.mount
> +
> +unit_DATA = \
> +    nfs-blkmap.service \
>      nfs-idmapd.service \
>      nfs-mountd.service \
>      nfs-server.service \
> -    nfs-utils.service \
>      rpc-gssd.service \
>      rpc-statd-notify.service \
>      rpc-statd.service \
> -    rpc-svcgssd.service \
> -    \
> -    proc-fs-nfsd.mount \
> -    var-lib-nfs-rpc_pipefs.mount
> +    rpc-svcgssd.service
>  
> -EXTRA_DIST = $(unit_files)
> +CLEANFILES = $(unit_DATA)
This beginning part of the patch no longer applies
which is my fault... :-( 
>  
> -unit_dir = /usr/lib/systemd/system
> -
> -if INSTALL_SYSTEMD
> -install-data-hook: $(unit_files)
But after making the patch apply cleanly the scripts
no longer get installed and I believe its 
because you took out the above rule. 

> -	mkdir -p $(DESTDIR)/$(unitdir)
> -	cp $(unit_files) $(DESTDIR)/$(unitdir)
> +EXTRA_DIST = $(unit_DATA:service=.service.in)
>  endif
> +
> +SUFFIXES = .service.in .service
> +.service.in.service:
> +	$(SED) -e 's,[@]sbindir[@],$(sbindir),g' \
> +		< $< > $@

The rest of the patches all applied cleanly

steved.

  parent reply	other threads:[~2015-11-02 12:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-21 17:40 [PATCH] nfs-utils: Substitute sbindir in systemd unit files Calvin Walton
2015-04-21 17:43 ` Calvin Walton
2015-07-14 14:32   ` Steve Dickson
2015-07-14 15:22     ` Calvin Walton
2015-07-14 15:36       ` Steve Dickson
2015-11-02 12:53   ` Steve Dickson [this message]
2015-11-02 13:23     ` Calvin Walton
2015-05-06 20:28 ` Steve Dickson
2015-05-06 20:39   ` Calvin Walton
2015-05-07 13:36     ` 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=56375CD4.3010806@RedHat.com \
    --to=steved@redhat.com \
    --cc=calvin.walton@kepstin.ca \
    --cc=linux-nfs@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).