From: Miklos Szeredi Date: Sat, 28 Oct 2006 07:59:22 +0000 (+0000) Subject: build/install fixes + add bug reporting instructions to README X-Git-Tag: fuse_2_6_1~7 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=10d03ed9c381436d06252ab440bc2e910e7e755b;p=qemu-gpiodev%2Flibfuse.git build/install fixes + add bug reporting instructions to README --- diff --git a/ChangeLog b/ChangeLog index 82b5a3f..5e0b300 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2006-10-28 Miklos Szeredi + + * Fix automake problem. Patch from Nix + +2006-10-26 Miklos Szeredi + + * Fix mount.fuse to use /bin/sh instead of /bin/bash, which is not + always available on embedded systems. Patch from Paul Smith + + * Fix util/Makefile.am, so that failure to run update-rc.d or + device creation doesn't cause make to fail. Reported by Paul + Smith + 2006-10-21 Miklos Szeredi * Released 2.6.0 diff --git a/README b/README index b97d56b..da06a2a 100644 --- a/README +++ b/README @@ -126,6 +126,12 @@ user_allow_other Mount options ============= +Most of the generic mount options described in 'man mount' are +supported (ro, rw, suid, nosuid, dev, nodev, exec, noexec, atime, +noatime, sync async, dirsync). Filesystems are mounted with +'-onodev,nosuid' by default, which can only be overridden by a +privileged user. + These are FUSE specific mount options that can be specified for all filesystems: @@ -264,3 +270,12 @@ blkdev Mount a filesystem backed by a block device. This is a privileged option. The device must be specified with the 'fsname=NAME' option. + + +Reporting bugs +============== + +Please send bug reports to the +mailing list. + +The list is open, you need not be subscribed to post. diff --git a/configure.in b/configure.in index b9a8828..6e32d04 100644 --- a/configure.in +++ b/configure.in @@ -5,6 +5,7 @@ AM_CONFIG_HEADER(include/config.h) AC_PROG_LIBTOOL AC_PROG_CC +AM_PROG_CC_C_O # compatibility for automake < 1.8 if test -z "$mkdir_p"; then diff --git a/util/Makefile.am b/util/Makefile.am index 6572afe..dcd69f6 100644 --- a/util/Makefile.am +++ b/util/Makefile.am @@ -14,8 +14,8 @@ install-exec-hook: -chmod u+s $(DESTDIR)$(bindir)/fusermount @if test ! -e $(DESTDIR)/dev/fuse; then \ $(mkdir_p) $(DESTDIR)/dev; \ - echo "mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229"; \ - mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229; \ + echo "mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true"; \ + mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true; \ fi EXTRA_DIST = mount.fuse udev.rules init_script @@ -30,8 +30,8 @@ install-exec-local: $(mkdir_p) $(DESTDIR)$(INIT_D_PATH) $(INSTALL_PROGRAM) $(srcdir)/init_script $(DESTDIR)$(INIT_D_PATH)/fuse @if test -x /usr/sbin/update-rc.d; then \ - echo "/usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 ."; \ - /usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 .; \ + echo "/usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 . || true"; \ + /usr/sbin/update-rc.d fuse start 34 S . start 41 0 6 . || true; \ fi install-data-local: @@ -43,6 +43,6 @@ uninstall-local: rm -f $(DESTDIR)$(UDEV_RULES_PATH)/99-fuse.rules rm -f $(DESTDIR)$(INIT_D_PATH)/fuse @if test -x /usr/sbin/update-rc.d; then \ - echo "/usr/sbin/update-rc.d fuse remove"; \ - /usr/sbin/update-rc.d fuse remove; \ + echo "/usr/sbin/update-rc.d fuse remove || true"; \ + /usr/sbin/update-rc.d fuse remove || true; \ fi diff --git a/util/mount.fuse b/util/mount.fuse index 1e1a2b4..0b111db 100644 --- a/util/mount.fuse +++ b/util/mount.fuse @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # FUSE mount helper # Petr Klima @@ -28,15 +28,14 @@ function die { [ "$#" -ge 2 ] || die "${USAGE}" -FSTYPE=${1%%\#*} # for now i have to be same as FUSE mount binary - # should be configurable +# for now i have to be same as FUSE mount binary +# should be configurable +eval `echo "$1" | sed -n 's,\(^[^#][^#]*\)\(#\(.*\)\)*,FSTYPE="\1" MOUNTPATH="\3",p'` export PATH FSBIN=`which ${FSTYPE} 2>/dev/null` \ || die "Can not find FUSE mount binary for FS ${FSTYPE}" 1 -MOUNTPATH=${1#*#} - # was there an # in $1 [ "$1" = "$MOUNTPATH" ] && MOUNTPATH="" @@ -46,8 +45,8 @@ MOUNTPOINT="$2" shift shift -ignore_opts="(user|nouser|users|auto|noauto|_netdev)" +ignore_opts='\(user\|nouser\|users\|auto\|noauto\|_netdev\)' -OPTIONS=`echo $@ | sed -r "s/(,${ignore_opts}|${ignore_opts},)//g"` +OPTIONS=`echo $@ | sed "s/,${ignore_opts}\|${ignore_opts},//g"` ${FSTYPE} ${MOUNTPATH} ${MOUNTPOINT} ${OPTIONS}