Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=fade063426e7034fc89d6da1d5446b4e59e836b2

commit fade063426e7034fc89d6da1d5446b4e59e836b2
Author: crazy <[EMAIL PROTECTED]>
Date:   Fri Oct 10 02:53:08 2008 +0200

aria2-0.16.0-1-x86_64
* Version bump
* added patch to fix the build

diff --git a/source/network-extra/aria2/FrugalBuild 
b/source/network-extra/aria2/FrugalBuild
index 53f3e9e..7be39ce 100644
--- a/source/network-extra/aria2/FrugalBuild
+++ b/source/network-extra/aria2/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=aria2
_F_archive_name="${pkgname}c"
-pkgver=0.15.3
+pkgver=0.16.0
pkgrel=1
pkgdesc="aria2 is an utility for downloading files."
depends=('openssl' 'libstdc++' 'cppunit' 'c-ares>=1.5.1')
@@ -16,7 +16,9 @@ _F_sourceforge_dirname="$pkgname"
_F_sourceforge_realname="$pkgname"
_F_sourceforge_ext=".tar.bz2"
Finclude sourceforge
-sha1sums=('4548d9ae2e571d9bc8fc9de0e42f7d028a3dbdac')
+source=($source compile-fix.patch)
+sha1sums=('c2b2c3154b992cc1f3a8ebf56e48fc11ff3c47e0' \
+          '8cabfbe8028b3d32d244ac05a0470edc1295b777')

build()
{
diff --git a/source/network-extra/aria2/compile-fix.patch 
b/source/network-extra/aria2/compile-fix.patch
new file mode 100644
index 0000000..5457690
--- /dev/null
+++ b/source/network-extra/aria2/compile-fix.patch
@@ -0,0 +1,32 @@
+Index: src/ActivePeerConnectionCommand.h
+===================================================================
+--- src/ActivePeerConnectionCommand.h  (revision 770)
++++ src/ActivePeerConnectionCommand.h  (revision 772)
+@@ -55,7 +55,7 @@
+   Time checkPoint;
+   unsigned int _thresholdSpeed; // UNIT: byte/sec
+   unsigned int _maxUploadSpeedLimit;
+-  size_t _numNewConnection; // the number of the connection to establish.
++  unsigned int _numNewConnection; // the number of the connection to 
establish.
+ public:
+   ActivePeerConnectionCommand(int cuid,
+                             RequestGroup* requestGroup,
+Index: src/ActivePeerConnectionCommand.cc
+===================================================================
+--- src/ActivePeerConnectionCommand.cc (revision 770)
++++ src/ActivePeerConnectionCommand.cc (revision 772)
+@@ -89,11 +89,11 @@
+        (!pieceStorage->downloadFinished() &&
+       (tstat.getDownloadSpeed() < _thresholdSpeed ||
+        btRuntime->lessThanMinPeers()))) {
+-      size_t numConnection = pieceStorage->downloadFinished() ?
++      unsigned int numConnection = pieceStorage->downloadFinished() ?
+       std::min(_numNewConnection,
+                BtRuntime::MAX_PEERS-btRuntime->getConnections()) :
+       _numNewConnection;
+-      for(size_t numAdd = numConnection;
++      for(unsigned int numAdd = numConnection;
+         numAdd > 0 && peerStorage->isPeerAvailable(); --numAdd) {
+       PeerHandle peer = peerStorage->getUnusedPeer();
+       connectToPeer(peer);
+
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to