Bug 1065656 - "make install" doesn't honour --prefix for mount.glusterfs
Summary: "make install" doesn't honour --prefix for mount.glusterfs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: build
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Karsten Wade
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-15 12:45 UTC by Justin Clift
Modified: 2018-09-18 09:30 UTC (History)
3 users (show)

Fixed In Version: glusterfs-3.12.0
Clone Of:
Environment:
Last Closed: 2018-09-18 09:30:55 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Justin Clift 2014-02-15 12:45:00 UTC
Description of problem:

  When installing Gluster to a custom location using --prefix, installation
  fails because make install tries placing mount.glusterfs in /sbin/ (without
  the prefix).

  Making install in crypt
  Making install in src
   /bin/sh ../../../../libtool --quiet  --mode=install /usr/bin/install -c   crypt.la '/home/jc/git_repos/glusterfs/../out/lib/glusterfs/3git/xlator/encryption'
  libtool: install: warning: relinking `crypt.la'
  Making install in mount
  Making install in fuse
  Making install in src
   /bin/sh ../../../../libtool --quiet  --mode=install /usr/bin/install -c   fuse.la '/home/jc/git_repos/glusterfs/../out/lib/glusterfs/3git/xlator/mount'
  Making install in utils
   /usr/bin/install -c mount.glusterfs '/sbin'
  /usr/bin/install: cannot create regular file `/sbin/mount.glusterfs': Permission denied
  make[5]: *** [install-utilSCRIPTS] Error 1
  make[4]: *** [install-am] Error 2
  make[3]: *** [install-recursive] Error 1
  make[2]: *** [install-recursive] Error 1
  make[1]: *** [install-recursive] Error 1
  make: *** [install-recursive] Error 1


Version-Release number of selected component (if applicable):

  Upstream git master as of Sat 15 Feb 2014.


How reproducible:

  Every time unfortunately.


Steps to Reproduce:

  1. $ mkdir ../out
  2. $ ./autogen.sh && ./configure --enable-debug --prefix=$PWD/../out
  3. $ make all
  4. $ make install


Additional info:

  This happens on CentOS 6.5.  Haven't tried on Fedora yet.

Comment 1 Anand Avati 2014-02-15 17:03:13 UTC
REVIEW: http://review.gluster.org/7011 (Update configure.ac dir names to things keep in build root) posted (#1) for review on master by Justin Clift (jclift)

Comment 2 Anand Avati 2015-04-02 14:42:59 UTC
REVIEW: http://review.gluster.org/7011 (Update configure.ac dir names to things keep in build root) posted (#2) for review on master by Kaleb KEITHLEY (kkeithle)

Comment 3 Anand Avati 2015-04-09 13:28:22 UTC
REVIEW: http://review.gluster.org/7011 (Update configure.ac dir names to things keep in build root) posted (#3) for review on master by Justin Clift (justin)

Comment 6 Mike McCune 2016-03-28 22:53:35 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 7 Amar Tumballi 2018-09-18 09:30:55 UTC
/sbin/mount.glusterfs has to be installed in /sbin for being effective. We also have an option to install it outside for this to succeed:   

`--with-mountutildir=DIR mount helper utility in DIR [/sbin]`


Note You need to log in before you can comment on or make changes to this bug.