Register FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Thu May 23, 2013 18:39



Post new topic Reply to topic  [ 4 posts ] 
install bug: NTFS-3g installation to --exec-prefix fails 
Author Message

Joined: Fri Jun 05, 2009 00:52
Posts: 15
Post install bug: NTFS-3g installation to --exec-prefix fails
I wanted to test a problem with a removable filesystem, so I'm trying to build my own ntfs-3g binary. I didn't want to disturb my distribution's ntfs-3g, so I ran `./configure --enable-debug --prefix=/home/skierpage/programs/ntfs-3g-dev --exec-prefix=/home/skierpage/programs/ntfs-3g-dev`to make it install elsewhere.

That fails in `make install`:
Code:
...
/usr/bin/install -c .libs/lowntfs-3g /home/skierpage/programs/ntfs-3g-dev/bin/lowntfs-3g
/bin/mkdir -p "/sbin"
ln -s -f "/home/skierpage/programs/ntfs-3g-dev/bin/ntfs-3g" "/sbin/mount.ntfs-3g"
ln: cannot remove `/sbin/mount.ntfs-3g': Permission denied
make[2]: *** [install-exec-local] Error 1
make[2]: Leaving directory `/home/skierpage/programs/ntfs-3g-2010.8.8/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/skierpage/programs/ntfs-3g-2010.8.8/src'
make: *** [install-recursive] Error 1

I believe this is in error `./configure --help` says if I've set --exec-prefix then sbindir should be [EPREFIX/sbin].

I'm far from a Makefile expert, but the mistake might be in Makefile.am:
Code:
if ENABLE_MOUNT_HELPER
install-exec-local:     install-rootbinPROGRAMS
        $(MKDIR_P) "$(DESTDIR)/sbin"
        $(LN_S) -f "$(rootbindir)/ntfs-3g" "$(DESTDIR)/sbin/mount.ntfs-3g"
        $(LN_S) -f "$(rootbindir)/lowntfs-3g" "$(DESTDIR)/sbin/mount.lowntfs-3g"
endif

I think on all three lines $(DESTDIR)/sbin should be $(sbindir). If I change the generated Makefile to this, the symlinks get installed in a local sbin.

I realize that if key ntfs-3g files aren't in the root directory, then boot and recovery may be messed up. But please mention reasons to require files in the root and workarounds to place them elsewhere in the INSTALL file (with a pointer in the README) instead of leaving the file as the generic boilerplate documentation.

Thanks for this essential piece of software! :P


Tue Sep 28, 2010 02:16
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1008
Post Re: install bug: NTFS-3g installation to --exec-prefix fails
Hi,
Quote:
I wanted to test a problem with a removable filesystem, so I'm trying to build my own ntfs-3g binary. I didn't want to disturb my distribution's ntfs-3g, so I ran `./configure --enable-debug --prefix=/home/skierpage/programs/ntfs-3g-dev --exec-prefix=/home/skierpage/programs/ntfs-3g-dev`to make it install elsewhere.

To test some version of ntfs-3g without disturbing what is installed, you need not install the test version. After doing ./configure and make, just start the shell script which has been created in the src directory :
Code:
src/ntfs-3g [-o options] device mountpoint

Defining specific directories to hold the driver and library is bound by constraints to interface with mount(8).

Regards

Jean-Pierre


Tue Sep 28, 2010 15:00
Profile

Joined: Fri Jun 05, 2009 00:52
Posts: 15
Post Re: install bug: NTFS-3g installation to --exec-prefix fails
jpa wrote:
To test some version of ntfs-3g without disturbing what is installed, you need not install the test version. After doing ./configure and make, just start the shell script which has been created in the src directory :
Code:
src/ntfs-3g [-o options] device mountpoint


That worked great for ntfs-3g-2010.10.2AR.1, thanks. It would be nice if this was mentioned in the README (part of "QUICK INSTALLATION" section) and INSTALL (new step 4) files before the boilerplate `make install`.

IMO the FSF boilerplate is inappropriate for most source packages; most people compiling a package are doing it to try something out, they don't want to replace what their distro gave them.


Sun Oct 31, 2010 05:12
Profile
NTFS-3G Lead Developer

Joined: Tue Sep 04, 2007 17:22
Posts: 1008
Post Re: install bug: NTFS-3g installation to --exec-prefix fails
Hi,

Quote:
It would be nice if this was mentioned in the README (part of "QUICK INSTALLATION" section) and INSTALL (new step 4) files before the boilerplate `make install`.

Ok, I will do so for next release.

Regards

Jean-Pierre


Tue Nov 02, 2010 17:59
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.