Skip to contentSkip to conversation

Possible bug in src/Makefile.am

PATCH Mark Kirkwood 1 participant 2 messages Jul 7, 2013 – Jul 8, 2013

lore
Share & tools
lore
#0 lore raw

I noticed when building with prefix=/usr/local that the install step produced an usr/local/sbin hierarchy *under* /usr/local (i.e /usr/local/usr/local/sbin) with ceph_disk and friends (i.e ceph_sbin_SCRIPTS) therein. I am guessing that these should actually be installed in /usr/local/sbin (i.e prefix/sbin).

The attached patch does this.

Regards

Mark

src/Makefile.am +1 -1
index c1a7e80..21f30dd 100644
@@ -28,7 +28,7 @@ bin_PROGRAMS =
 bin_DEBUGPROGRAMS =
 sbin_PROGRAMS =
 # like sbin_SCRIPTS but can be used to install to e.g. /usr/sbin
-ceph_sbindir = $(prefix)$(sbindir)
+ceph_sbindir = $(sbindir)
 ceph_sbin_SCRIPTS = \
 	ceph-disk \
 	ceph-disk-prepare \
#1 lore raw

It seems this has been noted previously (just...):

http://tracker.ceph.com/issues/5492

Blast, I was just a bit slow :-) , should have posted when I first noticed this a week or so ago!

Regards

Mark

Quoted 11 lines · Mark Kirkwood

I noticed when building with prefix=/usr/local that the install step produced an usr/local/sbin hierarchy *under* /usr/local (i.e /usr/local/usr/local/sbin) with ceph_disk and friends (i.e ceph_sbin_SCRIPTS) therein. I am guessing that these should actually be installed in /usr/local/sbin (i.e prefix/sbin).

The attached patch does this.

Regards

Mark