gfs2-utils: RHEL7 - gfs2-utils: Honour --sbindir

Andrew Price andyp at fedoraproject.org
Tue Apr 7 21:23:14 UTC 2015


Gitweb:        http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=9dd8355b08582f4ee2028a093663d868a6a29c4a
Commit:        9dd8355b08582f4ee2028a093663d868a6a29c4a
Parent:        1129c5a52b7fbed02d17d5eecaae3544d2282231
Author:        Andrew Price <anprice at redhat.com>
AuthorDate:    Sat Nov 1 13:48:53 2014 +0000
Committer:     Andrew Price <anprice at redhat.com>
CommitterDate: Wed Apr 1 16:51:35 2015 +0100

gfs2-utils: Honour --sbindir

If the user specifies --sbindir=foo then we should honour it.
fsck/Makefile.am and scripts/Makefile.am were the only remaining
directories with this shell snippet.

Signed-off-by: Andrew Price <anprice at redhat.com>
---
 gfs2/fsck/Makefile.am    |    8 --------
 gfs2/scripts/Makefile.am |    9 ---------
 2 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/gfs2/fsck/Makefile.am b/gfs2/fsck/Makefile.am
index 92d56f3..b34833b 100644
--- a/gfs2/fsck/Makefile.am
+++ b/gfs2/fsck/Makefile.am
@@ -1,13 +1,5 @@
 MAINTAINERCLEANFILES	= Makefile.in
 
-# When an exec_prefix setting would have us install into /usr/sbin,
-# use /sbin instead.
-# Accept an existing sbindir value of /usr/sbin (probably for older automake),
-# or an empty value, for automake-1.11 and newer.
-sbindir := $(shell rpl=0; test '$(exec_prefix):$(sbindir)' = /usr:/usr/sbin \
-		       || test '$(exec_prefix):$(sbindir)' = /usr: && rpl=1; \
-	     test $$rpl = 1 && echo /sbin || echo '$(exec_prefix)/sbin')
-
 sbin_PROGRAMS		= fsck.gfs2
 
 noinst_HEADERS		= fsck.h fs_recovery.h \
diff --git a/gfs2/scripts/Makefile.am b/gfs2/scripts/Makefile.am
index 2c51222..1c98f95 100644
--- a/gfs2/scripts/Makefile.am
+++ b/gfs2/scripts/Makefile.am
@@ -1,12 +1,3 @@
 MAINTAINERCLEANFILES    = Makefile.in
 
-# When an exec_prefix setting would have us install into /usr/sbin,
-# use /sbin instead.
-# Accept an existing sbindir value of /usr/sbin (probably for older automake),
-# or an empty value, for automake-1.11 and newer.
-sbindir := $(shell rpl=0; test '$(exec_prefix):$(sbindir)' = /usr:/usr/sbin \
-                        || test '$(exec_prefix):$(sbindir)' = /usr: && rpl=1; \
-                                     test $$rpl = 1 && echo /sbin || echo '$(exec_prefix)/sbin')
-
-
 dist_sbin_SCRIPTS           = gfs2_lockcapture gfs2_trace


More information about the cluster-commits mailing list