packages: transmission/transmission-preallocate_syscall.patch - revert to 1...
marti
marti at pld-linux.org
Mon Apr 11 17:38:33 CEST 2011
Author: marti Date: Mon Apr 11 15:38:33 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- revert to 1.14, wrong branch added
---- Files affected:
packages/transmission:
transmission-preallocate_syscall.patch (1.15 -> 1.16)
---- Diffs:
================================================================
Index: packages/transmission/transmission-preallocate_syscall.patch
diff -u packages/transmission/transmission-preallocate_syscall.patch:1.15 packages/transmission/transmission-preallocate_syscall.patch:1.16
--- packages/transmission/transmission-preallocate_syscall.patch:1.15 Mon Apr 11 17:29:50 2011
+++ packages/transmission/transmission-preallocate_syscall.patch Mon Apr 11 17:38:27 2011
@@ -1,10 +1,9 @@
-diff -ur transmission-2.30b1.orig/configure.ac transmission-2.30b1/configure.ac
---- transmission-2.30b1.orig/configure.ac 2011-04-01 03:28:41.000000000 +0200
-+++ transmission-2.30b1/configure.ac 2011-04-08 14:31:31.233502737 +0200
-@@ -108,6 +108,14 @@
+--- transmission-2.21/configure.ac~ 2011-02-24 23:12:10.304798067 +0100
++++ transmission-2.21/configure.ac 2011-02-24 23:14:30.981464735 +0100
+@@ -99,6 +99,14 @@
AC_HEADER_STDC
AC_HEADER_TIME
-
+
+AC_MSG_CHECKING([for SYS_fallocate])
+AC_TRY_LINK([#include <sys/syscall.h>
+#include <sys/types.h>],
@@ -13,13 +12,13 @@
+ AC_MSG_RESULT([yes])],
+ [AC_MSG_RESULT([no])])
+
- AC_CHECK_HEADERS([stdbool.h])
- AC_CHECK_FUNCS([iconv_open pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strsep strtold syslog valloc getpagesize posix_memalign statvfs htonll ntohll])
+ AC_CHECK_FUNCS([iconv_open pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strsep strtold syslog valloc getpagesize posix_memalign statvfs])
AC_PROG_INSTALL
-diff -ur transmission-2.30b1.orig/libtransmission/fdlimit.c transmission-2.30b1/libtransmission/fdlimit.c
---- transmission-2.30b1.orig/libtransmission/fdlimit.c 2011-04-01 03:28:34.000000000 +0200
-+++ transmission-2.30b1/libtransmission/fdlimit.c 2011-04-08 14:34:14.120502738 +0200
-@@ -29,6 +29,10 @@
+ AC_PROG_MAKE_SET
+diff -ur transmission-2.00-orig//libtransmission/fdlimit.c transmission-2.00/libtransmission/fdlimit.c
+--- transmission-2.00-orig//libtransmission/fdlimit.c 2010-06-17 09:10:46.000000000 -0600
++++ transmission-2.00/libtransmission/fdlimit.c 2010-06-18 17:06:22.000000000 -0600
+@@ -31,6 +31,10 @@
#include <fcntl.h>
#endif
@@ -30,18 +29,17 @@
#ifdef HAVE_FALLOCATE64
/* FIXME can't find the right #include voodoo to pick up the declaration.. */
extern int fallocate64( int fd, int mode, uint64_t offset, uint64_t len );
-@@ -150,6 +154,14 @@
+@@ -168,6 +172,12 @@
success = !fcntl( fd, F_PREALLOCATE, &fst );
}
# endif
-+
+# ifdef HAVE_SYS_FALLOCATE
-+ if( !success )
-+ {
-+ success = !syscall( SYS_fallocate, fd, 0, (loff_t) 0, (loff_t) length );
-+ }
++ if( !success )
++ {
++ success = !syscall( SYS_fallocate, fd, 0, (loff_t) 0, (loff_t) length );
++ }
+# endif
-+
# ifdef HAVE_POSIX_FALLOCATE
if( !success )
{
+Only in transmission-2.00/libtransmission: fdlimit.c.orig
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/transmission/transmission-preallocate_syscall.patch?r1=1.15&r2=1.16&f=u
More information about the pld-cvs-commit
mailing list