
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!
