rpms/d4x/F-8 d4x-2.5.7.1-speed.patch, NONE, 1.1 d4x-2.5.7.1.makebuild.patch, NONE, 1.1 d4x.spec, 1.17, 1.18

Matthias Saou (thias) fedora-extras-commits at redhat.com
Sun Feb 3 18:26:43 UTC 2008


Author: thias

Update of /cvs/extras/rpms/d4x/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14428/F-8

Modified Files:
	d4x.spec 
Added Files:
	d4x-2.5.7.1-speed.patch d4x-2.5.7.1.makebuild.patch 
Log Message:
Include patch to fix slow download speed (#302121).


d4x-2.5.7.1-speed.patch:

--- NEW FILE d4x-2.5.7.1-speed.patch ---
--- d4x-2.5.7.1.orig/main/signal.cc
+++ d4x-2.5.7.1/main/signal.cc
@@ -89,7 +89,7 @@
 
 
 void my_pthreads_mutex_init(pthread_mutex_t *lock){
-#if defined(__linux__)
+#if defined(__linux__) || defined(__GLIBC__)
 /* manual page for mutexes said that mutexes in linux is fast by
    default...
  */
--- d4x-2.5.7.1.orig/main/socket.cc
+++ d4x-2.5.7.1/main/socket.cc
@@ -165,10 +165,10 @@
 		return(SOCKET_CANT_ALLOCATE);
 	int a=1;
 	setsockopt(fd,SOL_SOCKET,SO_KEEPALIVE,(char *)&a,sizeof(a));
-	setsockopt(fd,SOL_SOCKET,SO_KEEPALIVE,(char *)&a,sizeof(a));
+	//setsockopt(fd,SOL_SOCKET,SO_KEEPALIVE,(char *)&a,sizeof(a));
 	
 	size_t sl=2000; //set receive buffer to default+30% MTU size
-	setsockopt(fd,SOL_SOCKET,SO_RCVBUF,(char *)&sl,sizeof(sl));
+	//setsockopt(fd,SOL_SOCKET,SO_RCVBUF,(char *)&sl,sizeof(sl));
 
 	if (!connect_impl())
 		return(SOCKET_CANT_CONNECT);

d4x-2.5.7.1.makebuild.patch:

--- NEW FILE d4x-2.5.7.1.makebuild.patch ---
diff -Naupr d4x-2.5.7.1.orig/configure d4x-2.5.7.1/configure
--- d4x-2.5.7.1.orig/configure	2006-04-12 18:48:29.000000000 +0200
+++ d4x-2.5.7.1/configure	2008-02-03 19:06:53.000000000 +0100
@@ -18398,11 +18398,6 @@ _ACEOF
 
 
 cat >>confdefs.h <<\_ACEOF
-#define GTK_DISABLE_DEPRECATED
-_ACEOF
-
-
-cat >>confdefs.h <<\_ACEOF
 #define _FILE_OFFSET_BITS 64
 _ACEOF
 
diff -Naupr d4x-2.5.7.1.orig/configure.ac d4x-2.5.7.1/configure.ac
--- d4x-2.5.7.1.orig/configure.ac	2005-11-05 00:35:38.000000000 +0100
+++ d4x-2.5.7.1/configure.ac	2008-02-03 19:06:44.000000000 +0100
@@ -298,7 +298,6 @@ AC_DEFINE_UNQUOTED(D4X_SHARE_PATH,
 
 # Other needed defines
 AC_DEFINE(_REENTRANT, , [Enable reenrant code of glibc])
-AC_DEFINE(GTK_DISABLE_DEPRECATED, , [Enable warnings about deprecated functions usage])
 AC_DEFINE(_FILE_OFFSET_BITS, 64, [To support files over 2GB])
 
 # Prepare all requiered flags
diff -Naupr d4x-2.5.7.1.orig/main/face/list.cc d4x-2.5.7.1/main/face/list.cc
--- d4x-2.5.7.1.orig/main/face/list.cc	2006-03-20 01:29:41.000000000 +0100
+++ d4x-2.5.7.1/main/face/list.cc	2008-02-03 19:06:44.000000000 +0100
@@ -8,8 +8,6 @@
  *	but WITHOUT ANY WARRANTY; without even the implied warranty of
  *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  */
-#define GTK_DISABLE_DEPRECATED
-
 #include <stdio.h>
 #include <gtk/gtk.h>
 #include <gdk/gdkkeysyms.h>


Index: d4x.spec
===================================================================
RCS file: /cvs/extras/rpms/d4x/F-8/d4x.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- d4x.spec	31 Aug 2007 14:37:59 -0000	1.17
+++ d4x.spec	3 Feb 2008 18:26:09 -0000	1.18
@@ -1,13 +1,15 @@
 Summary: Downloader for X that supports resuming and many other features
 Name: d4x
 Version: 2.5.7.1
-Release: 5%{?dist}
+Release: 8%{?dist}
 Group: Applications/Internet
 License: Artistic
 URL: http://www.krasu.ru/soft/chuchelo/
 Source: http://d4x.krasu.ru/files/d4x-%{version}.tar.bz2
 Patch0: d4x-2.5.7.1-man.patch
 Patch1: d4x-2.5.7.1-desktop.patch
+Patch2: d4x-2.5.7.1.makebuild.patch
+Patch3: d4x-2.5.7.1-speed.patch
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: gtk2-devel, libao-devel, openssl-devel
 BuildRequires: desktop-file-utils, boost-devel
@@ -26,8 +28,17 @@
 %setup -q
 %patch0 -p1 -b .man
 %patch1 -p1 -b .desktop
+%patch2 -p1 -b .makebuild
+%patch3 -p1 -b .speed
 # Move the desktop file we just patched to the proper name
 %{__mv} share/nt.desktop share/d4x.desktop
+# Convert some docs to UTF-8, keeping their original timestamps
+for file in DOC/FAQ.* NEWS; do
+    cp -a ${file} tmp
+    iconv -f iso8859-1 -t utf-8 tmp > ${file}
+    touch -r tmp ${file}
+    rm -f tmp
+done
 
 
 %build
@@ -84,6 +95,20 @@
 
 
 %changelog
+* Sun Feb  3 2008 Matthias Saou <http://freshrpms.net/> 2.5.7.1-8
+- Rebuild with the changes from Mon Sep 24 2007 merged back in.
+- Replace autoconf run with a few more lines to the makebuild patch.
+
+* Sat Jan  5 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 2.5.7.1-7
+- Add patch by Caolan McNamara (#427620) to build against new openssl
+
+* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 2.5.7.1-6
+ - Rebuild for deps
+
+* Mon Sep 24 2007 Matthias Saou <http://freshrpms.net/> 2.5.7.1-6
+- Include patch to fix slow download speeds (#302121).
+- Convert doc files to UTF-8.
+
 * Fri Aug 31 2007 Matthias Saou <http://freshrpms.net/> 2.5.7.1-5
 - Rebuild for new BuildID feature.
 - License is still original Artistic, but this should be fixed shortly.




More information about the fedora-extras-commits mailing list