packages: transmission/transmission-preallocate_syscall.patch, transmission...

marti marti at pld-linux.org
Mon Apr 11 17:29:55 CEST 2011


Author: marti                        Date: Mon Apr 11 15:29:55 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- now works with 2.30b2

---- Files affected:
packages/transmission:
   transmission-preallocate_syscall.patch (1.14 -> 1.15) , transmission.spec (1.90 -> 1.91) 

---- Diffs:

================================================================
Index: packages/transmission/transmission-preallocate_syscall.patch
diff -u packages/transmission/transmission-preallocate_syscall.patch:1.14 packages/transmission/transmission-preallocate_syscall.patch:1.15
--- packages/transmission/transmission-preallocate_syscall.patch:1.14	Thu Feb 24 23:22:57 2011
+++ packages/transmission/transmission-preallocate_syscall.patch	Mon Apr 11 17:29:50 2011
@@ -1,9 +1,10 @@
---- 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 @@
+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 @@
  AC_HEADER_STDC
  AC_HEADER_TIME
-
+ 
 +AC_MSG_CHECKING([for SYS_fallocate])
 +AC_TRY_LINK([#include <sys/syscall.h>
 +#include <sys/types.h>],
@@ -12,13 +13,13 @@
 +       AC_MSG_RESULT([yes])],
 +       [AC_MSG_RESULT([no])])
 +
- 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_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_PROG_INSTALL
- 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 @@
+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 @@
   #include <fcntl.h>
  #endif
  
@@ -29,17 +30,18 @@
  #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 );
-@@ -168,6 +172,12 @@
+@@ -150,6 +154,14 @@
              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

================================================================
Index: packages/transmission/transmission.spec
diff -u packages/transmission/transmission.spec:1.90 packages/transmission/transmission.spec:1.91
--- packages/transmission/transmission.spec:1.90	Sat Mar  5 19:29:46 2011
+++ packages/transmission/transmission.spec	Mon Apr 11 17:29:50 2011
@@ -3,12 +3,12 @@
 Summary(hu.UTF-8):	Egy sokoldalú és multiplatformos BitTorrent kliens
 Summary(pl.UTF-8):	Wszechstronny i wieloplatformowy klient BitTorrenta
 Name:		transmission
-Version:	2.22
+Version:	2.30b2
 Release:	1
 License:	MIT
 Group:		Applications/Communications
 Source0:	http://download.m0k.org/transmission/files/%{name}-%{version}.tar.bz2
-# Source0-md5:	6499986bf769276310b00bda1090090d
+# Source0-md5:	b93b7b498b68ce8c1be39795d36560cd
 Source1:	%{name}.sysconfig
 Source2:	%{name}.init
 Patch0:		%{name}-ckb_po.patch
@@ -235,6 +235,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.91  2011/04/11 15:29:50  marti
+- now works with 2.30b2
+
 Revision 1.90  2011/03/05 18:29:46  caleb
 - Up to 2.22
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/transmission/transmission-preallocate_syscall.patch?r1=1.14&r2=1.15&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/transmission/transmission.spec?r1=1.90&r2=1.91&f=u



More information about the pld-cvs-commit mailing list