[qbittorrent/f13/master] update to 2.6.7 add upstream build patch

leigh123linux leigh123linux at fedoraproject.org
Thu Mar 3 18:47:54 UTC 2011


commit 7b9f55d7953b1adb2a4c98b6830a042b87e343dd
Author: Leigh Scott <leigh123linux at googlemail.com>
Date:   Thu Mar 3 18:47:46 2011 +0000

    update to 2.6.7
    add upstream build patch

 diskio_fix.patch |   15 +++++++++++++++
 qbittorrent.spec |    8 +++++++-
 2 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/diskio_fix.patch b/diskio_fix.patch
new file mode 100644
index 0000000..2e0f477
--- /dev/null
+++ b/diskio_fix.patch
@@ -0,0 +1,15 @@
+Index: src/qtlibtorrent/qbtsession.cpp
+===================================================================
+--- src/qtlibtorrent/qbtsession.cpp	(revision 5255)
++++ src/qtlibtorrent/qbtsession.cpp	(working copy)
+@@ -389,8 +389,10 @@
+   sessionSettings.cache_size = pref.diskCacheSize()*64;
+   qDebug() << "Using a disk cache size of" << pref.diskCacheSize() << "MiB";
+   // Disable OS cache to avoid memory problems (uTorrent behavior)
++#if LIBTORRENT_VERSION_MINOR > 14
+   sessionSettings.disk_io_write_mode = session_settings::disable_os_cache_for_aligned_files;
+   sessionSettings.disk_io_read_mode = session_settings::disable_os_cache_for_aligned_files;
++#endif
+   // Queueing System
+   if(pref.isQueueingSystemEnabled()) {
+     sessionSettings.active_downloads = pref.getMaxActiveDownloads();
diff --git a/qbittorrent.spec b/qbittorrent.spec
index 6ed1d74..96f9991 100644
--- a/qbittorrent.spec
+++ b/qbittorrent.spec
@@ -2,7 +2,7 @@
 
 Name:    qbittorrent
 Summary: A Bittorrent Client 
-Version: 2.6.6
+Version: 2.6.7
 Release: 1%{?dist}
 Epoch:   1
 # The source for this package was pulled from upstream's vcs.  Use the
@@ -17,6 +17,7 @@ Source1: qbittorrent-nox.README
 Patch0:  disable_extra_debug.patch
 
 # Upstream patches
+Patch1:  diskio_fix.patch
 
 URL: http://sourceforge.net/projects/qbittorrent
 Group: Applications/Internet
@@ -53,6 +54,7 @@ It aims to be as fast as possible and to provide multi-OS, unicode support.
 rm -rf src/qtsingleapp
 #%patch0 -p1 -b .disable_extra_debug
 # Upstream patches
+%patch1 -p0 -b .diskio_fix
 
 
 cp -p %{SOURCE1} .
@@ -127,6 +129,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Thu Mar 03 2011 Leigh Scott <leigh123linux at googlemail.com> - 1:2.6.7-1
+- update to 2.6.7
+- add upstream build patch 
+
 * Wed Feb 09 2011 Leigh Scott <leigh123linux at googlemail.com> - 1:2.6.6-1
 -  update to 2.6.6
 


More information about the scm-commits mailing list