All of lore.kernel.org
 help / color / mirror / Atom feed
* [Cluster-devel] gfs2-utils "make install" failure and fix
@ 2009-06-29  9:24 Jim Meyering
  2009-06-29  9:38 ` Fabio M. Di Nitto
  0 siblings, 1 reply; 7+ messages in thread
From: Jim Meyering @ 2009-06-29  9:24 UTC (permalink / raw)
  To: cluster-devel.redhat.com

With an explicit --prefix, "make install" would install into /sbin regardless:

  $ ./configure --prefix=/p/p/coro
  ...
  $ make install
  make[1]: Entering directory `/h/meyering/w/co/gfs2-utils/gfs2/mkfs'
  /p/bin/install -c -d /sbin
  make[1]: Nothing to be done for `install-data-am'.
  /p/bin/install -c -m 755 mkfs.gfs2 /sbin
  /p/bin/install: cannot create regular file `/sbin/mkfs.gfs2': Permission denied
  make[1]: *** [install-exec-local] Error 1
  make[1]: Leaving directory `/h/meyering/w/co/gfs2-utils/gfs2/mkfs'
  make: *** [install-am] Error 2

Along the way I noticed the Makefile.am files
were using noinst_PROGRAMS and adding their own install rules.
It's easier/cleaner/etc. to use sbin_PROGRAMS.
Here's the patch:

From d794b4e7948741f5d6767970a2fde2c5fce15947 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Mon, 29 Jun 2009 11:23:09 +0200
Subject: [PATCH gfs2-utils] Use automake's sbin_PROGRAMS, rather than writing our own rules.

This also fixes a "make install" failure to honor --prefix.
* gfs2/mount/Makefile.am (sbin_PROGRAMS): Use sbin_PROGRAMS,
not noinst_PROGRAMS.
(install-exec-local, uninstall-local): Remove rules.
Automake automates this when you define sbin_PROGRAMS.
* gfs2/fsck/Makefile.am (sbin_PROGRAMS): Likewise.
(install-exec-local, uninstall-local): Remove rules.
* gfs2/mkfs/Makefile.am (sbin_PROGRAMS): Likewise.
(install-exec-local, uninstall-local): Remove rules.
(install-exec-hook, uninstall-hook): Remove unnecessary sub-shells.
---
 gfs2/fsck/Makefile.am  |   10 +---------
 gfs2/mkfs/Makefile.am  |   16 ++++------------
 gfs2/mount/Makefile.am |   10 +---------
 3 files changed, 6 insertions(+), 30 deletions(-)

diff --git a/gfs2/fsck/Makefile.am b/gfs2/fsck/Makefile.am
index 15a5b1d..1667df3 100644
--- a/gfs2/fsck/Makefile.am
+++ b/gfs2/fsck/Makefile.am
@@ -1,6 +1,6 @@
 MAINTAINERCLEANFILES	= Makefile.in

-noinst_PROGRAMS		= fsck.gfs2
+sbin_PROGRAMS		= fsck.gfs2

 noinst_HEADERS		= eattr.h fs_bits.h fsck.h fs_recovery.h hash.h \
 			  inode_hash.h link.h lost_n_found.h metawalk.h util.h
@@ -15,11 +15,3 @@ fsck_gfs2_CPPFLAGS	= -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM \
 			  -I$(top_srcdir)/gfs2/libgfs2

 fsck_gfs2_LDADD		= $(top_builddir)/gfs2/libgfs2/libgfs2.la
-
-install-exec-local:
-	$(INSTALL) -d $(DESTDIR)/sbin
-	$(INSTALL) -m 755 fsck.gfs2 $(DESTDIR)/sbin
-
-uninstall-local:
-	cd $(DESTDIR)/sbin && \
-		rm -f fsck.gfs2
diff --git a/gfs2/mkfs/Makefile.am b/gfs2/mkfs/Makefile.am
index 9f156ba..ba4f851 100644
--- a/gfs2/mkfs/Makefile.am
+++ b/gfs2/mkfs/Makefile.am
@@ -1,6 +1,6 @@
 MAINTAINERCLEANFILES	= Makefile.in

-noinst_PROGRAMS		= mkfs.gfs2
+sbin_PROGRAMS		= mkfs.gfs2

 noinst_HEADERS		= gfs2_mkfs.h

@@ -15,20 +15,12 @@ mkfs_gfs2_LDADD		= $(top_builddir)/gfs2/libgfs2/libgfs2.la

 relative_sbin		= $(shell perl -MFile::Spec -le 'print File::Spec->abs2rel("/sbin", "$(sbindir)")')

-install-exec-local:
-	$(INSTALL) -d $(DESTDIR)/sbin
-	$(INSTALL) -m 755 mkfs.gfs2 $(DESTDIR)/sbin
-
-uninstall-local:
-	cd $(DESTDIR)/sbin && \
-		rm -f mkfs.gfs2
-
 install-exec-hook:
 	$(INSTALL) -d $(DESTDIR)/$(sbindir)
-	(cd $(DESTDIR)/$(sbindir) && \
+	cd $(DESTDIR)/$(sbindir) && \
 		rm -f gfs2_grow gfs2_jadd && \
 		$(LN_S) $(relative_sbin)/mkfs.gfs2 gfs2_grow && \
-		$(LN_S) $(relative_sbin)/mkfs.gfs2 gfs2_jadd)
+		$(LN_S) $(relative_sbin)/mkfs.gfs2 gfs2_jadd

 uninstall-hook:
-	(cd $(DESTDIR)/$(sbindir) && rm -f gfs2_jadd gfs2_grow)
+	cd $(DESTDIR)/$(sbindir) && rm -f gfs2_jadd gfs2_grow
diff --git a/gfs2/mount/Makefile.am b/gfs2/mount/Makefile.am
index fd927b6..a82970e 100644
--- a/gfs2/mount/Makefile.am
+++ b/gfs2/mount/Makefile.am
@@ -1,6 +1,6 @@
 MAINTAINERCLEANFILES	= Makefile.in

-noinst_PROGRAMS		= mount.gfs2
+sbin_PROGRAMS		= mount.gfs2

 noinst_HEADERS		= gfs_ondisk.h util.h

@@ -12,11 +12,3 @@ mount_gfs2_CPPFLAGS	= -D_FILE_OFFSET_BITS=64 -DHELPER_PROGRAM \
 			  -I$(top_srcdir)/group/libgfscontrol

 mount_gfs2_LDADD	= $(top_builddir)/group/libgfscontrol/libgfscontrol.la
-
-install-exec-local:
-	$(INSTALL) -d $(DESTDIR)/sbin
-	$(INSTALL) -m 755 mount.gfs2 $(DESTDIR)/sbin
-
-uninstall-local:
-	cd $(DESTDIR)/sbin && \
-		rm -f mount.gfs2
--
1.6.3.3.420.gd4b46



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Cluster-devel] gfs2-utils "make install" failure and fix
  2009-06-29  9:24 [Cluster-devel] gfs2-utils "make install" failure and fix Jim Meyering
@ 2009-06-29  9:38 ` Fabio M. Di Nitto
  2009-06-29 13:26   ` Jim Meyering
  0 siblings, 1 reply; 7+ messages in thread
From: Fabio M. Di Nitto @ 2009-06-29  9:38 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hi Jim,

On Mon, 2009-06-29 at 11:24 +0200, Jim Meyering wrote:
> With an explicit --prefix, "make install" would install into /sbin regardless:
> 
>   $ ./configure --prefix=/p/p/coro
>   ...
>   $ make install
>   make[1]: Entering directory `/h/meyering/w/co/gfs2-utils/gfs2/mkfs'
>   /p/bin/install -c -d /sbin
>   make[1]: Nothing to be done for `install-data-am'.
>   /p/bin/install -c -m 755 mkfs.gfs2 /sbin
>   /p/bin/install: cannot create regular file `/sbin/mkfs.gfs2': Permission denied
>   make[1]: *** [install-exec-local] Error 1
>   make[1]: Leaving directory `/h/meyering/w/co/gfs2-utils/gfs2/mkfs'
>   make: *** [install-am] Error 2
> 
> Along the way I noticed the Makefile.am files
> were using noinst_PROGRAMS and adding their own install rules.
> It's easier/cleaner/etc. to use sbin_PROGRAMS.
> Here's the patch:
> 
> >From d794b4e7948741f5d6767970a2fde2c5fce15947 Mon Sep 17 00:00:00 2001
> From: Jim Meyering <meyering@redhat.com>
> Date: Mon, 29 Jun 2009 11:23:09 +0200
> Subject: [PATCH gfs2-utils] Use automake's sbin_PROGRAMS, rather than writing our own rules.
> 
> This also fixes a "make install" failure to honor --prefix.
> * gfs2/mount/Makefile.am (sbin_PROGRAMS): Use sbin_PROGRAMS,
> not noinst_PROGRAMS.
> (install-exec-local, uninstall-local): Remove rules.
> Automake automates this when you define sbin_PROGRAMS.
> * gfs2/fsck/Makefile.am (sbin_PROGRAMS): Likewise.
> (install-exec-local, uninstall-local): Remove rules.
> * gfs2/mkfs/Makefile.am (sbin_PROGRAMS): Likewise.
> (install-exec-local, uninstall-local): Remove rules.
> (install-exec-hook, uninstall-hook): Remove unnecessary sub-shells.
> ---
>  gfs2/fsck/Makefile.am  |   10 +---------
>  gfs2/mkfs/Makefile.am  |   16 ++++------------
>  gfs2/mount/Makefile.am |   10 +---------
>  3 files changed, 6 insertions(+), 30 deletions(-)

This is the same problem we discussed in another occasion (can't
remember which one).

Those 3 binaries need to go in /sbin. mount(8) looks for mount helpers
only in /sbin. Without the helper we fail to mount gfs2 or /usr could be
on a gfs2 filesystem.. chicken egg?

sbin_PROGRAM will install them in /usr/sbin that is not correct (in the
default case of course). All distro ship fsck* and mkfs* also in /sbin
in order to check the filesystem (without /usr mounted) or reformat
(same reason).

Handling of prefix can be better I agree, but turning them into
sbin_PROGRAM doesn't work either.

Clearly I am open to any better solution than the one I have in place...

Fabio



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Cluster-devel] gfs2-utils "make install" failure and fix
  2009-06-29  9:38 ` Fabio M. Di Nitto
@ 2009-06-29 13:26   ` Jim Meyering
  2009-06-29 13:30     ` Fabio M. Di Nitto
  2009-08-05 11:55     ` [Cluster-devel] [patch] remove description for non existed option in man page Masatake YAMATO
  0 siblings, 2 replies; 7+ messages in thread
From: Jim Meyering @ 2009-06-29 13:26 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Fabio M. Di Nitto wrote:
> On Mon, 2009-06-29 at 11:24 +0200, Jim Meyering wrote:
>> With an explicit --prefix, "make install" would install into /sbin regardless:
>>
>>   $ ./configure --prefix=/p/p/coro
>>   ...
>>   $ make install
>>   make[1]: Entering directory `/h/meyering/w/co/gfs2-utils/gfs2/mkfs'
>>   /p/bin/install -c -d /sbin
>>   make[1]: Nothing to be done for `install-data-am'.
>>   /p/bin/install -c -m 755 mkfs.gfs2 /sbin
>>   /p/bin/install: cannot create regular file `/sbin/mkfs.gfs2': Permission denied
>>   make[1]: *** [install-exec-local] Error 1
>>   make[1]: Leaving directory `/h/meyering/w/co/gfs2-utils/gfs2/mkfs'
>>   make: *** [install-am] Error 2
>>
>> Along the way I noticed the Makefile.am files
>> were using noinst_PROGRAMS and adding their own install rules.
>> It's easier/cleaner/etc. to use sbin_PROGRAMS.
>> Here's the patch:
>>
>> >From d794b4e7948741f5d6767970a2fde2c5fce15947 Mon Sep 17 00:00:00 2001
>> From: Jim Meyering <meyering@redhat.com>
>> Date: Mon, 29 Jun 2009 11:23:09 +0200
>> Subject: [PATCH gfs2-utils] Use automake's sbin_PROGRAMS, rather than writing our own rules.
>>
>> This also fixes a "make install" failure to honor --prefix.
>> * gfs2/mount/Makefile.am (sbin_PROGRAMS): Use sbin_PROGRAMS,
>> not noinst_PROGRAMS.
>> (install-exec-local, uninstall-local): Remove rules.
>> Automake automates this when you define sbin_PROGRAMS.
>> * gfs2/fsck/Makefile.am (sbin_PROGRAMS): Likewise.
>> (install-exec-local, uninstall-local): Remove rules.
>> * gfs2/mkfs/Makefile.am (sbin_PROGRAMS): Likewise.
>> (install-exec-local, uninstall-local): Remove rules.
>> (install-exec-hook, uninstall-hook): Remove unnecessary sub-shells.
>> ---
>>  gfs2/fsck/Makefile.am  |   10 +---------
>>  gfs2/mkfs/Makefile.am  |   16 ++++------------
>>  gfs2/mount/Makefile.am |   10 +---------
>>  3 files changed, 6 insertions(+), 30 deletions(-)
>
> This is the same problem we discussed in another occasion (can't
> remember which one).
>
> Those 3 binaries need to go in /sbin. mount(8) looks for mount helpers
> only in /sbin. Without the helper we fail to mount gfs2 or /usr could be
> on a gfs2 filesystem.. chicken egg?
>
> sbin_PROGRAM will install them in /usr/sbin that is not correct (in the
> default case of course). All distro ship fsck* and mkfs* also in /sbin
> in order to check the filesystem (without /usr mounted) or reformat
> (same reason).
>
> Handling of prefix can be better I agree, but turning them into
> sbin_PROGRAM doesn't work either.
>
> Clearly I am open to any better solution than the one I have in place...

Sure.
There's already so much default-munging going on in configure.ac,
why not add a tiny bit more.

This incremental patch does what you seem to want:

    In case we're using the default (/usr) prefix
    and the default exec_prefix, and set sbindir to /sbin:

diff --git a/configure.ac b/configure.ac
index a568463..ca0301e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,6 +38,7 @@ fi

 case $exec_prefix in
   NONE)   exec_prefix=$prefix;;
+          test "$prefix:$sbindir" = '/usr:${exec_prefix}/sbin' && sbindir=/sbin
   prefix) exec_prefix=$prefix;;
 esac



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Cluster-devel] gfs2-utils "make install" failure and fix
  2009-06-29 13:26   ` Jim Meyering
@ 2009-06-29 13:30     ` Fabio M. Di Nitto
  2009-06-29 15:17       ` Jim Meyering
  2009-08-05 11:55     ` [Cluster-devel] [patch] remove description for non existed option in man page Masatake YAMATO
  1 sibling, 1 reply; 7+ messages in thread
From: Fabio M. Di Nitto @ 2009-06-29 13:30 UTC (permalink / raw)
  To: cluster-devel.redhat.com

On Mon, 2009-06-29 at 15:26 +0200, Jim Meyering wrote:
> Fabio M. Di Nitto wrote:
> > On Mon, 2009-06-29 at 11:24 +0200, Jim Meyering wrote:
> >> With an explicit --prefix, "make install" would install into /sbin regardless:
> >>
> >>   $ ./configure --prefix=/p/p/coro
> >>   ...
> >>   $ make install
> >>   make[1]: Entering directory `/h/meyering/w/co/gfs2-utils/gfs2/mkfs'
> >>   /p/bin/install -c -d /sbin
> >>   make[1]: Nothing to be done for `install-data-am'.
> >>   /p/bin/install -c -m 755 mkfs.gfs2 /sbin
> >>   /p/bin/install: cannot create regular file `/sbin/mkfs.gfs2': Permission denied
> >>   make[1]: *** [install-exec-local] Error 1
> >>   make[1]: Leaving directory `/h/meyering/w/co/gfs2-utils/gfs2/mkfs'
> >>   make: *** [install-am] Error 2
> >>
> >> Along the way I noticed the Makefile.am files
> >> were using noinst_PROGRAMS and adding their own install rules.
> >> It's easier/cleaner/etc. to use sbin_PROGRAMS.
> >> Here's the patch:
> >>
> >> >From d794b4e7948741f5d6767970a2fde2c5fce15947 Mon Sep 17 00:00:00 2001
> >> From: Jim Meyering <meyering@redhat.com>
> >> Date: Mon, 29 Jun 2009 11:23:09 +0200
> >> Subject: [PATCH gfs2-utils] Use automake's sbin_PROGRAMS, rather than writing our own rules.
> >>
> >> This also fixes a "make install" failure to honor --prefix.
> >> * gfs2/mount/Makefile.am (sbin_PROGRAMS): Use sbin_PROGRAMS,
> >> not noinst_PROGRAMS.
> >> (install-exec-local, uninstall-local): Remove rules.
> >> Automake automates this when you define sbin_PROGRAMS.
> >> * gfs2/fsck/Makefile.am (sbin_PROGRAMS): Likewise.
> >> (install-exec-local, uninstall-local): Remove rules.
> >> * gfs2/mkfs/Makefile.am (sbin_PROGRAMS): Likewise.
> >> (install-exec-local, uninstall-local): Remove rules.
> >> (install-exec-hook, uninstall-hook): Remove unnecessary sub-shells.
> >> ---
> >>  gfs2/fsck/Makefile.am  |   10 +---------
> >>  gfs2/mkfs/Makefile.am  |   16 ++++------------
> >>  gfs2/mount/Makefile.am |   10 +---------
> >>  3 files changed, 6 insertions(+), 30 deletions(-)
> >
> > This is the same problem we discussed in another occasion (can't
> > remember which one).
> >
> > Those 3 binaries need to go in /sbin. mount(8) looks for mount helpers
> > only in /sbin. Without the helper we fail to mount gfs2 or /usr could be
> > on a gfs2 filesystem.. chicken egg?
> >
> > sbin_PROGRAM will install them in /usr/sbin that is not correct (in the
> > default case of course). All distro ship fsck* and mkfs* also in /sbin
> > in order to check the filesystem (without /usr mounted) or reformat
> > (same reason).
> >
> > Handling of prefix can be better I agree, but turning them into
> > sbin_PROGRAM doesn't work either.
> >
> > Clearly I am open to any better solution than the one I have in place...
> 
> Sure.
> There's already so much default-munging going on in configure.ac,
> why not add a tiny bit more.
> 
> This incremental patch does what you seem to want:
> 
>     In case we're using the default (/usr) prefix
>     and the default exec_prefix, and set sbindir to /sbin:
> 
> diff --git a/configure.ac b/configure.ac
> index a568463..ca0301e 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -38,6 +38,7 @@ fi
> 
>  case $exec_prefix in
>    NONE)   exec_prefix=$prefix;;
> +          test "$prefix:$sbindir" = '/usr:${exec_prefix}/sbin' && sbindir=/sbin
>    prefix) exec_prefix=$prefix;;
>  esac

hmmmm... wouldn't that move all sbin_PROGRAMS to /sbin (assuming we are
doing default build)? If so that's still not ideal because except those
3 binaries, all the others can go (and should go) in /usr/sbin as they
are not vital for the FS operations.

I am sorry to play the devil advocate here....

Fabio



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Cluster-devel] gfs2-utils "make install" failure and fix
  2009-06-29 13:30     ` Fabio M. Di Nitto
@ 2009-06-29 15:17       ` Jim Meyering
  2009-06-29 16:27         ` Fabio M. Di Nitto
  0 siblings, 1 reply; 7+ messages in thread
From: Jim Meyering @ 2009-06-29 15:17 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Fabio M. Di Nitto wrote:
...
>> > Handling of prefix can be better I agree, but turning them into
>> > sbin_PROGRAM doesn't work either.
>> >
>> > Clearly I am open to any better solution than the one I have in place...
>>
>> Sure.
>> There's already so much default-munging going on in configure.ac,
>> why not add a tiny bit more.
>>
>> This incremental patch does what you seem to want:
>>
>>     In case we're using the default (/usr) prefix
>>     and the default exec_prefix, and set sbindir to /sbin:
>>
>> diff --git a/configure.ac b/configure.ac
>> index a568463..ca0301e 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -38,6 +38,7 @@ fi
>>
>>  case $exec_prefix in
>>    NONE)   exec_prefix=$prefix;;
>> +          test "$prefix:$sbindir" = '/usr:${exec_prefix}/sbin' && sbindir=/sbin
>>    prefix) exec_prefix=$prefix;;
>>  esac
>
> hmmmm... wouldn't that move all sbin_PROGRAMS to /sbin (assuming we are
> doing default build)? If so that's still not ideal because except those
> 3 binaries, all the others can go (and should go) in /usr/sbin as they
> are not vital for the FS operations.

Good catch.  I see, now.

The following incremental patch finally seems to do the right thing:

  - with --prefix=P where P!=/usr: no change
  - with no --prefix option, or with --prefix=/usr, install those three
      subdirs' tools into /sbin rather than into /usr/sbin.

diff --git a/gfs2/fsck/Makefile.am b/gfs2/fsck/Makefile.am
index 1667df3..ac89524 100644
--- a/gfs2/fsck/Makefile.am
+++ b/gfs2/fsck/Makefile.am
@@ -1,5 +1,10 @@
 MAINTAINERCLEANFILES	= Makefile.in

+# install into /sbin, not /usr/sbin
+sbindir := $(shell test '$(exec_prefix):$(sbindir)' = /usr:/usr/sbin \
+	     && echo /sbin \
+	     || echo '$(exec_prefix)/sbin')
+
 sbin_PROGRAMS		= fsck.gfs2

 noinst_HEADERS		= eattr.h fs_bits.h fsck.h fs_recovery.h hash.h \
diff --git a/gfs2/mkfs/Makefile.am b/gfs2/mkfs/Makefile.am
index ba4f851..75466fa 100644
--- a/gfs2/mkfs/Makefile.am
+++ b/gfs2/mkfs/Makefile.am
@@ -1,5 +1,10 @@
 MAINTAINERCLEANFILES	= Makefile.in

+# install into /sbin, not /usr/sbin
+sbindir := $(shell test '$(exec_prefix):$(sbindir)' = /usr:/usr/sbin \
+	     && echo /sbin \
+	     || echo '$(exec_prefix)/sbin')
+
 sbin_PROGRAMS		= mkfs.gfs2

 noinst_HEADERS		= gfs2_mkfs.h
diff --git a/gfs2/mount/Makefile.am b/gfs2/mount/Makefile.am
index a82970e..0303b24 100644
--- a/gfs2/mount/Makefile.am
+++ b/gfs2/mount/Makefile.am
@@ -1,5 +1,10 @@
 MAINTAINERCLEANFILES	= Makefile.in

+# install into /sbin, not /usr/sbin
+sbindir := $(shell test '$(exec_prefix):$(sbindir)' = /usr:/usr/sbin \
+	     && echo /sbin \
+	     || echo '$(exec_prefix)/sbin')
+
 sbin_PROGRAMS		= mount.gfs2

 noinst_HEADERS		= gfs_ondisk.h util.h



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Cluster-devel] gfs2-utils "make install" failure and fix
  2009-06-29 15:17       ` Jim Meyering
@ 2009-06-29 16:27         ` Fabio M. Di Nitto
  0 siblings, 0 replies; 7+ messages in thread
From: Fabio M. Di Nitto @ 2009-06-29 16:27 UTC (permalink / raw)
  To: cluster-devel.redhat.com

On Mon, 2009-06-29 at 17:17 +0200, Jim Meyering wrote:
> Fabio M. Di Nitto wrote:
> ...
> >> > Handling of prefix can be better I agree, but turning them into
> >> > sbin_PROGRAM doesn't work either.
> >> >
> >> > Clearly I am open to any better solution than the one I have in place...
> >>
> >> Sure.
> >> There's already so much default-munging going on in configure.ac,
> >> why not add a tiny bit more.
> >>
> >> This incremental patch does what you seem to want:
> >>
> >>     In case we're using the default (/usr) prefix
> >>     and the default exec_prefix, and set sbindir to /sbin:
> >>
> >> diff --git a/configure.ac b/configure.ac
> >> index a568463..ca0301e 100644
> >> --- a/configure.ac
> >> +++ b/configure.ac
> >> @@ -38,6 +38,7 @@ fi
> >>
> >>  case $exec_prefix in
> >>    NONE)   exec_prefix=$prefix;;
> >> +          test "$prefix:$sbindir" = '/usr:${exec_prefix}/sbin' && sbindir=/sbin
> >>    prefix) exec_prefix=$prefix;;
> >>  esac
> >
> > hmmmm... wouldn't that move all sbin_PROGRAMS to /sbin (assuming we are
> > doing default build)? If so that's still not ideal because except those
> > 3 binaries, all the others can go (and should go) in /usr/sbin as they
> > are not vital for the FS operations.
> 
> Good catch.  I see, now.
> 
> The following incremental patch finally seems to do the right thing:
> 
>   - with --prefix=P where P!=/usr: no change
>   - with no --prefix option, or with --prefix=/usr, install those three
>       subdirs' tools into /sbin rather than into /usr/sbin.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

push at will ;)

Thanks!
Fabio



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Cluster-devel] [patch] remove description for non existed option in man page
  2009-06-29 13:26   ` Jim Meyering
  2009-06-29 13:30     ` Fabio M. Di Nitto
@ 2009-08-05 11:55     ` Masatake YAMATO
  1 sibling, 0 replies; 7+ messages in thread
From: Masatake YAMATO @ 2009-08-05 11:55 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hi,

During learning Cluster through man page, I found a 
description for non existed option in man page, group_tool.8.

group_tool is not a daemon therefore -D is not meaningful.

The man page doesn't tell about -n option but I don't provide
a patch for -n because I have not understood it. 


Masatake YAMATO


git diff |cat
diff --git a/group/man/group_tool.8 b/group/man/group_tool.8
index 6cf5e7f..b03b76e 100644
--- a/group/man/group_tool.8
+++ b/group/man/group_tool.8
@@ -43,9 +43,6 @@ prints the posix locks on the named gfs fs from gfs_controld.
 \fB-v\fP
 Verbose output, used with the 'ls' subcommand.
 .TP
-\fB-D\fP
-Run the daemon in the foreground and print debug statements to stdout.
-.TP
 \fB-V\fP
 Print the version information and exit.
 .TP



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-08-05 11:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-29  9:24 [Cluster-devel] gfs2-utils "make install" failure and fix Jim Meyering
2009-06-29  9:38 ` Fabio M. Di Nitto
2009-06-29 13:26   ` Jim Meyering
2009-06-29 13:30     ` Fabio M. Di Nitto
2009-06-29 15:17       ` Jim Meyering
2009-06-29 16:27         ` Fabio M. Di Nitto
2009-08-05 11:55     ` [Cluster-devel] [patch] remove description for non existed option in man page Masatake YAMATO

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.