+++ /dev/null
---- a/configure.ac
-+++ b/configure.ac
-@@ -55,6 +55,7 @@ fi
-
- AC_CHECK_FUNCS([fork setxattr fdatasync splice vmsplice utimensat])
- AC_CHECK_FUNCS([posix_fallocate])
-+AC_CHECK_FUNCS([closefrom])
- AC_CHECK_MEMBERS([struct stat.st_atim])
- AC_CHECK_MEMBERS([struct stat.st_atimespec])
-
-diff --git a/util/ulockmgr_server.c b/util/ulockmgr_server.c
-index 273c7d923..a04dac5c6 100644
---- a/util/ulockmgr_server.c
-+++ b/util/ulockmgr_server.c
-@@ -22,6 +22,10 @@
- #include <sys/socket.h>
- #include <sys/wait.h>
-
-+#ifdef HAVE_CONFIG_H
-+ #include "config.h"
-+#endif
-+
- struct message {
- unsigned intr : 1;
- unsigned nofd : 1;
-@@ -124,6 +128,7 @@ static int receive_message(int sock, void *buf, size_t buflen, int *fdp,
- return res;
- }
-
-+#if !defined(HAVE_CLOSEFROM)
- static int closefrom(int minfd)
- {
- DIR *dir = opendir("/proc/self/fd");
-@@ -141,6 +146,7 @@ static int closefrom(int minfd)
- }
- return 0;
- }
-+#endif
-
- static void send_reply(int cfd, struct message *msg)
- {
DJMOUNT_PATCH += djmount-fix-newer-gcc.patch
DJMOUNT_PATCH += djmount-support-fstab-mounting.patch
DJMOUNT_PATCH += djmount-support-seeking-in-large-2gb-files.patch
+DJMOUNT_PATCH += djmount-pthread-fix.patch
DJMOUNT_PATCH += 0011-fix-build-with-gettext-0.20.x.patch
-$(D)/djmount: $(D)/libfuse $(ARCHIVE)/djmount-0.71.tar.gz | $(TARGETPREFIX)
+# works with libupnp 1.6.25, laters maybe!
+$(D)/djmount: $(D)/libfuse $(ARCHIVE)/djmount-0.71.tar.gz | $(TARGETPREFIX)
$(START_BUILD)
- $(UNTAR)/djmount-0.71.tar.gz
+ $(REMOVE)/djmount-0.71
+ cp -fr $(ARCHIVE)/djmount-0.71 $(BUILD_TMP)
pushd $(BUILD_TMP)/djmount-0.71 && \
$(call apply_patches, $(addprefix djmount/, $(DJMOUNT_PATCH))); \
- CFLAGS="-I$(TARGETPREFIX)/include -fPIC" \
- LDFLAGS="-L$(TARGETPREFIX)/lib -lz -fPIC" \
- LIBS="-Wl,--rpath-link -Wl,$(TARGETPREFIX)/lib" \
touch libupnp/config.aux/config.rpath; \
autoreconf -fi; \
$(CONFIGURE) -C \
- --prefix= --build=$(BUILD) --host=$(TARGET) \
- --disable-debug \
- --with-lib-prefix=$(TARGETPREFIX) && \
- make && \
- make install DESTDIR=$(TARGETPREFIX);
+ --prefix= \
+ --disable-debug && \
+ make CFLAGS=" -fcommon"; \
+ make CFLAGS=" -fcommon" install DESTDIR=$(TARGETPREFIX);
install -m 755 $(PATCHES)/djmount/djmount.init $(TARGETPREFIX)/etc/init.d/djmount
+ $(TARGET)-strip $(BUILD_TMP)/djmount-0.71/djmount/djmount
pushd $(TARGETPREFIX)/etc/init.d
ln -sf djmount $(TARGETPREFIX)/etc/init.d/S75djmount
ln -sf djmount $(TARGETPREFIX)/etc/init.d/K75djmount
$(PATCH)/libupnpd-use_pthread_mutexattr_settype.patch; \
$(CONFIGURE) \
--prefix= \
- --libdir=$(TARGETPREFIX)/lib \
+ --libdir=$(TARGETLIB) \
--includedir=$(TARGETPREFIX)/include; \
$(MAKE) all; \
$(MAKE) install
$(REMOVE)/zlib-$(ZLIB_VER)
$(TOUCH)
+FUSE_PATCH = fuse2-0001-More-parentheses.patch
+FUSE_PATCH += fuse2-0002-add-fix-for-namespace-conflict-in-fuse_kernel.h.patch
+FUSE_PATCH += fuse2-0003-make-buffer-size-match-kernel-max-transfer-size.patch
+FUSE_PATCH += fuse2-0004-Whitelist-SMB2-found-on-some-NAS-devices.patch
+FUSE_PATCH += fuse2-0005-Whitelist-UFSD-backport-to-2.9-branch-452.patch
+FUSE_PATCH += fuse2-0006-Correct-errno-comparison-571.patch
+FUSE_PATCH += fuse2-0007-util-ulockmgr_server.c-conditionally-define-closefro.patch
+
$(D)/libfuse: $(ARCHIVE)/fuse-$(FUSE_VER).tar.gz | $(TARGETPREFIX)
$(START_BUILD)
$(REMOVE)/fuse-$(FUSE_VER)
$(UNTAR)/fuse-$(FUSE_VER).tar.gz
pushd $(BUILD_TMP)/fuse-$(FUSE_VER) && \
- $(PATCH)/libfuse-2.9.9-fix-build-with-glibc-2.34.patch && \
- autoreconf -fi && \
+ $(call apply_patches, $(addprefix fuse/, $(FUSE_PATCH))); \
+ autoreconf -fi; \
$(CONFIGURE) \
--prefix= \
--datarootdir=/.remove \
--with-gnu-ld \
--enable-util \
--enable-lib \
- --enable-silent-rules && \
+ --enable-silent-rules; \
$(MAKE) all && \
$(MAKE) install DESTDIR=$(TARGETPREFIX)
$(REWRITE_LIBTOOL)/libfuse.la