diff --git a/srcpkgs/fuse/patches/fuse-headers.patch b/srcpkgs/fuse/patches/fuse-headers.patch new file mode 100644 index 00000000000..53c791d557f --- /dev/null +++ b/srcpkgs/fuse/patches/fuse-headers.patch @@ -0,0 +1,13 @@ +--- include/fuse_common.h ++++ include/fuse_common.h +@@ -28,8 +28,8 @@ + #define FUSE_MAKE_VERSION(maj, min) ((maj) * 10 + (min)) + #define FUSE_VERSION FUSE_MAKE_VERSION(FUSE_MAJOR_VERSION, FUSE_MINOR_VERSION) + +-/* This interface uses 64 bit off_t */ +-#if _FILE_OFFSET_BITS != 64 ++/* This interface uses 64 bit off_t, and only glibc has an implementation with 2 different sizes */ ++#if defined(__GLIBC__) && _FILE_OFFSET_BITS != 64 + #error Please add -D_FILE_OFFSET_BITS=64 to your compile flags! + #endif + diff --git a/srcpkgs/fuse/patches/fuse-lock.patch b/srcpkgs/fuse/patches/fuse-lock.patch new file mode 100644 index 00000000000..d2d229c1435 --- /dev/null +++ b/srcpkgs/fuse/patches/fuse-lock.patch @@ -0,0 +1,20 @@ +--- lib/fuse_lowlevel.c ++++ lib/fuse_lowlevel.c +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + + #ifndef F_LINUX_SPECIFIC_BASE + #define F_LINUX_SPECIFIC_BASE 1024 +--- lib/fuse.c ++++ lib/fuse.c +@@ -37,6 +37,7 @@ + #include + #include + #include ++#include + + #define FUSE_NODE_SLAB 1 + diff --git a/srcpkgs/fuse/patches/fuse-paths.patch b/srcpkgs/fuse/patches/fuse-paths.patch new file mode 100644 index 00000000000..d24f233f18a --- /dev/null +++ b/srcpkgs/fuse/patches/fuse-paths.patch @@ -0,0 +1,20 @@ +--- lib/mount_util.c ++++ lib/mount_util.c +@@ -16,6 +16,7 @@ + #include + #include + #include ++#include + #ifndef __NetBSD__ + #include + #endif +--- util/fusermount.c ++++ util/fusermount.c +@@ -20,6 +20,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/srcpkgs/fuse/template b/srcpkgs/fuse/template index 24445d21896..89a798aa5a5 100644 --- a/srcpkgs/fuse/template +++ b/srcpkgs/fuse/template @@ -1,26 +1,15 @@ # Template file for 'fuse' pkgname=fuse version=2.9.3 -revision=1 +revision=2 build_style=gnu-configure -configure_args="--disable-static --enable-lib --enable-util" +configure_args="--enable-lib --enable-util" short_desc="Filesystem in Userspace" maintainer="Juan RP " license="GPL-2" homepage="http://fuse.sourceforge.net" distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz" checksum=0beb83eaf2c5e50730fc553406ef124d77bc02c64854631bdfc86bfd6437391c -long_desc=" - With FUSE it is possible to implement a fully functional filesystem in - a userspace program. Features include: - - * Simple library API - * Simple installation (no need to patch or recompile the kernel) - * Secure implementation - * Userspace - kernel interface is very efficient - * Usable by non privileged users - * Runs on Linux kernels 2.4.X and 2.6.X - * Has proven very stable over time" post_install() { # remove obsolete rules file provided by udev. @@ -31,11 +20,12 @@ post_install() { } fuse-devel_package() { - depends="fuse-${version}_${revision}" + depends="fuse>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig + vmove "usr/lib/*.a" vmove "usr/lib/*.so" } }