Bug 130479 - net-misc/d4x version bump from 2.5.6 to 2.5.7.1
Bug#: 130479 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: desktop-misc@gentoo.org Reported By: bor@univ.kiev.ua
Component: Ebuilds
URL: 
Summary: net-misc/d4x version bump from 2.5.6 to 2.5.7.1
Keywords:  
Status Whiteboard: 
Opened: 2006-04-19 07:06 0000
Description:   Opened: 2006-04-19 07:06 0000
net-misc/d4x version bump from 2.5.6 to 2.5.7.1

also need
change SRC_URI to 
SRC_URI="http://d4x.krasu.ru/files/${P}.tar.bz2"
and add to DEPEND
dev-libs/boost

------- Comment #1 From Alon Bar-Lev (RETIRED) 2006-04-29 11:37:37 0000 -------
Created an attachment (id=85781) [details]
files/d4x-2.5.7.1-libintl_fix.patch

Required by ebuild.

------- Comment #2 From Alon Bar-Lev (RETIRED) 2006-04-29 11:38:06 0000 -------
Created an attachment (id=85782) [details]
d4x-2.5.7.1.diff

New ebuild.

------- Comment #3 From Krzysiek Pawlik 2006-05-06 10:20:04 0000 -------
Bumped, thanks.

------- Comment #4 From abhay 2006-05-13 10:28:43 0000 -------
Created an attachment (id=86709) [details]
Patch for capped speeds in D4X

D4X 2.5.7.1 suffers from a bug that caps the download speeds. Developer
comments about it in the following link
http://www.krasu.ru/soft/chuchelo/forum.php3?forumaction=showmessage&forummessage=2538
I am attaching a patch that solves the bug as explained by the developer.

------- Comment #5 From Krzysiek Pawlik 2006-05-13 11:27:06 0000 -------
Patch added in -r1. For future: please file a new bug for such issues.

------- Comment #6 From abhay 2006-05-13 15:09:05 0000 -------
(From update of attachment 86709 [details])
--- /var/tmp/portage/d4x-2.5.7.1-r1/work/d4x-2.5.7.1/main/socket.cc-orig       
2006-05-13 22:24:42.000000000 +0530
+++ /var/tmp/portage/d4x-2.5.7.1-r1/work/d4x-2.5.7.1/main/socket.cc    
2006-05-13 22:26:54.000000000 +0530
@@ -164,11 +164,11 @@
        if ((fd = socket(info.sin_family,SOCK_STREAM, 0)) < 0)
                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));

        size_t sl=2000; //set receive buffer to default+30% MTU size
-       setsockopt(fd,SOL_SOCKET,SO_RCVBUF,(char *)&sl,sizeof(sl));
+

        if (!connect_impl())
                return(SOCKET_CANT_CONNECT);