All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH gfs2-utils] install mkfs.gfs2 into /sbin, not /usr/sbin
@ 2009-09-28 15:33 Jim Meyering
  0 siblings, 0 replies; only message in thread
From: Jim Meyering @ 2009-09-28 15:33 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Fabio mentioned that "make install" was putting mkfs.gfs2 in /usr/sbin,
rather than in /sbin as it used to.  Here's the fix:

From 457549978cfc2ad00c56df2cca0dccfcf6f49cb6 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Mon, 28 Sep 2009 17:32:04 +0200
Subject: [PATCH gfs2-utils] install mkfs.gfs2 into /sbin, not /usr/sbin

* gfs2/fsck/Makefile.am (sbindir): Adapt sbindir override to work.
This may be required solely for automake-1.11 and newer, but I
haven't confirmed.
---
 gfs2/fsck/Makefile.am |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/gfs2/fsck/Makefile.am b/gfs2/fsck/Makefile.am
index ac89524..e6a621f 100644
--- a/gfs2/fsck/Makefile.am
+++ b/gfs2/fsck/Makefile.am
@@ -1,9 +1,12 @@
 MAINTAINERCLEANFILES	= Makefile.in

-# install into /sbin, not /usr/sbin
-sbindir := $(shell test '$(exec_prefix):$(sbindir)' = /usr:/usr/sbin \
-	     && echo /sbin \
-	     || echo '$(exec_prefix)/sbin')
+# 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

--
1.6.5.rc2.177.ga9dd6



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-28 15:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-28 15:33 [Cluster-devel] [PATCH gfs2-utils] install mkfs.gfs2 into /sbin, not /usr/sbin Jim Meyering

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.