Bug 1065656

Summary: "make install" doesn't honour --prefix for mount.glusterfs
Product: [Community] GlusterFS Reporter: Justin Clift <jclift>
Component: buildAssignee: Karsten Wade <kwade>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: mainlineCC: atumball, bugs, kwade
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.12.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-18 09:30:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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]`