]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
fuse: Add patches from old buildsystem.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 26 Feb 2010 15:45:30 +0000 (16:45 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 26 Feb 2010 15:45:30 +0000 (16:45 +0100)
pkgs/core/fuse/fuse.nm
pkgs/core/fuse/patches/fuse-2.7.4-openfix.patch [new file with mode: 0644]
pkgs/core/fuse/patches/fuse-2.7.4-udev_rules.patch [new file with mode: 0644]

index 4f7fdac5c51dcdb33498b56c212e1b0cc6ae6990..22f5b7f49cfc48cf4238309236ef3e289e684308 100644 (file)
@@ -43,7 +43,7 @@ endef
 PKG_TARBALL    = $(THISAPP).tar.gz
 
 CONFIGURE_OPTIONS += \
-       --disable-kernel-module \
+       --disable-kernel-module
 
 define STAGE_INSTALL_CMDS
        rm -vrf $(BUILDROOT)/etc/init.d
diff --git a/pkgs/core/fuse/patches/fuse-2.7.4-openfix.patch b/pkgs/core/fuse/patches/fuse-2.7.4-openfix.patch
new file mode 100644 (file)
index 0000000..e5b9eae
--- /dev/null
@@ -0,0 +1,36 @@
+diff -up fuse-2.7.2/lib/fuse.c.BAD fuse-2.7.2/lib/fuse.c
+--- a/lib/fuse.c       2008-01-21 09:55:42.000000000 -0500
++++ b/lib/fuse.c       2008-01-21 09:57:20.000000000 -0500
+@@ -633,17 +633,15 @@ static int fuse_compat_open(struct fuse_
+ {
+       int err;
+       if (!fs->compat || fs->compat >= 25)
+-              err = fs->op.open(path, fi);
++              err = (fs->op.open)(path, fi);
+       else if (fs->compat == 22) {
+               struct fuse_file_info_compat tmp;
+               memcpy(&tmp, fi, sizeof(tmp));
+-              err = ((struct fuse_operations_compat22 *) &fs->op)->open(path,
+-                                                                        &tmp);
++              err = (((struct fuse_operations_compat22 *) &fs->op)->open)(path, &tmp);
+               memcpy(fi, &tmp, sizeof(tmp));
+               fi->fh = tmp.fh;
+       } else
+-              err = ((struct fuse_operations_compat2 *) &fs->op)
+-                      ->open(path, fi->flags);
++              err = (((struct fuse_operations_compat2 *) &fs->op)->open)(path, fi->flags);
+       return err;
+ }
+diff -up fuse-2.7.2/lib/fuse_lowlevel.c.BAD fuse-2.7.2/lib/fuse_lowlevel.c
+--- a/lib/fuse_lowlevel.c      2008-01-21 09:57:52.000000000 -0500
++++ b/lib/fuse_lowlevel.c      2008-01-21 09:58:15.000000000 -0500
+@@ -605,7 +605,7 @@ static void do_open(fuse_req_t req, fuse
+       fi.flags = arg->flags;
+       if (req->f->op.open)
+-              req->f->op.open(req, nodeid, &fi);
++              (req->f->op.open)(req, nodeid, &fi);
+       else
+               fuse_reply_open(req, &fi);
+ }
diff --git a/pkgs/core/fuse/patches/fuse-2.7.4-udev_rules.patch b/pkgs/core/fuse/patches/fuse-2.7.4-udev_rules.patch
new file mode 100644 (file)
index 0000000..d52fc32
--- /dev/null
@@ -0,0 +1,5 @@
+--- a/util/udev.rules  2005-11-03 19:38:05.000000000 +0100
++++ b/util/udev.rules  2005-11-03 19:38:13.000000000 +0100
+@@ -1 +1 @@
+-KERNEL=="fuse", MODE="0666"
++KERNEL=="fuse", NAME="%k", MODE="0666",OWNER="root",GROUP="root"