summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2008-07-26 15:30:57 +0000
committerTiziano Müller <dev-zero@gentoo.org>2008-07-26 15:30:57 +0000
commitfa50c757457f703fe860e81f9e34545c3103e6e1 (patch)
treeeb0989776d2cd5a00d643d6024e31e3704e923b6 /net-misc/aria2
parentVersion bump. (diff)
downloadhistorical-fa50c757457f703fe860e81f9e34545c3103e6e1.tar.gz
historical-fa50c757457f703fe860e81f9e34545c3103e6e1.tar.bz2
historical-fa50c757457f703fe860e81f9e34545c3103e6e1.zip
Version bump (bug #229849)
Package-Manager: portage-2.2_rc3/cvs/Linux 2.6.26-gentoo x86_64
Diffstat (limited to 'net-misc/aria2')
-rw-r--r--net-misc/aria2/ChangeLog8
-rw-r--r--net-misc/aria2/Manifest5
-rw-r--r--net-misc/aria2/aria2-0.15.0.ebuild72
-rw-r--r--net-misc/aria2/files/0.15.0-tests.patch305
4 files changed, 388 insertions, 2 deletions
diff --git a/net-misc/aria2/ChangeLog b/net-misc/aria2/ChangeLog
index 8911dfdef03e..bcfec6ccacc7 100644
--- a/net-misc/aria2/ChangeLog
+++ b/net-misc/aria2/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/aria2
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/aria2/ChangeLog,v 1.25 2008/05/31 08:31:54 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/aria2/ChangeLog,v 1.26 2008/07/26 15:30:56 dev-zero Exp $
+
+*aria2-0.15.0 (26 Jul 2008)
+
+ 26 Jul 2008; Tiziano Müller <dev-zero@gentoo.org>
+ +files/0.15.0-tests.patch, +aria2-0.15.0.ebuild:
+ Version bump (bug #229849)
*aria2-0.13.2_p1 (31 May 2008)
diff --git a/net-misc/aria2/Manifest b/net-misc/aria2/Manifest
index c80399beaa92..e41f478e790f 100644
--- a/net-misc/aria2/Manifest
+++ b/net-misc/aria2/Manifest
@@ -1,8 +1,11 @@
AUX 0.13.1-broken_tests.patch 694 RMD160 5e361e70f0f48297692193cc060b112c9b520a6c SHA1 bb2e44622bef34289d580b0f10b012aacf690bcb SHA256 2df247f512d786b0edcb7b63e8b1361f8a57884ba99749833cb336df1d3e0fb1
AUX 0.13.1_p2-missing_includes.patch 858 RMD160 c6cc0473583e5a7d841a2467442ca4b75ba91480 SHA1 e23dad2f23ec5d9150401ea9334eed9de3e04a2b SHA256 c45999624221dd72b341a9112975666a3017d887580e8d39726fa503675dc38e
+AUX 0.15.0-tests.patch 12577 RMD160 9c095ad00cc64cca4fe3de4f234c46e9bbacb727 SHA1 eca90fc0bc212c4eb5a279b87eb7e8729d119fa8 SHA256 c00df6ce2c6c512d33466f24ec4611bedc96824fb2fe5feb537893efdeed3dcc
DIST aria2c-0.13.1+2.tar.bz2 841811 RMD160 5dbfba62f2b226574002839f545375efa6df65b7 SHA1 b3fc62b842a54fb3e0d8d7e923fc069d55c1fec0 SHA256 5f5cc74e006e1ead5413d2c9e464700f375fe0b2c7b1c39411979e073f363c10
DIST aria2c-0.13.2+1.tar.bz2 876561 RMD160 0e807f36ffcf9ee9f88060c044babb06a1210ef3 SHA1 58bf19d6c9948e143bf4916d69c78f9086b6b934 SHA256 62c97c47e1e65b6ee38f2e403f562315905acb1beec5d432d604c2455055db4c
+DIST aria2c-0.15.0.tar.bz2 986994 RMD160 8338ce8ab9dbbf8626b7c7a0605815a0394d8cf6 SHA1 3774de73d98d8e4a0dac4e345bfa27ecc0794b1d SHA256 a9619792dd1e37fb2d4cb6fc8e2eb7abae7d382f417db3933d69dab1f06531f1
EBUILD aria2-0.13.1_p2.ebuild 1811 RMD160 3df11e33b5902c559f1e73b274ed3aa9417a584a SHA1 3830aa48638140b918672a7c028dd5b4810625f7 SHA256 5ba4c5f109d66c91b23e04df06dc66b100a04eddda4172141445a528cd27d80c
EBUILD aria2-0.13.2_p1.ebuild 1695 RMD160 8e6be9b4b4ab09b822bf63b3142211af87cae51a SHA1 ab155e3c3391e0c5eebe895b725f57e710aff89b SHA256 56c03af55bf70e47add7a8a2d13baac3c7b8e86d848f048a40d21b4f74636e43
-MISC ChangeLog 6455 RMD160 6172f73ddd8ee0bab0fc403fa24136bd16559bdc SHA1 676460afb456781b9251353ede65f009dbd4f941 SHA256 74d6c18f02f41fd587d5b0140db136bd930533a891f9a1d527662f4791816d65
+EBUILD aria2-0.15.0.ebuild 2010 RMD160 197030d1a0581b7ffd64806f4c6aeb8611b5162f SHA1 b7cc6312e96436084d3355a58444516f6deda002 SHA256 6c9b2cbc54e379ae381374fe4415f43efe8793e428165744b20a4b449e3876d0
+MISC ChangeLog 6618 RMD160 4ebb89b39a0c8c8fdfd7804ad72f65b2d9a9b287 SHA1 59c65d2fb0898d49b1d579b536723b13323cc431 SHA256 4c0605e33f028a6c6a457488b15df2afc9d9818571ca7b2ff8827e20cca132c4
MISC metadata.xml 265 RMD160 c85123965668b23f1811316632fbfb72fd63a999 SHA1 8ad7e73978d73e5186d894119c85a29968801ebb SHA256 cd689fe179b5312728a09b08357517439bcfb056b7ca2a8056ad12fbd2a8ec39
diff --git a/net-misc/aria2/aria2-0.15.0.ebuild b/net-misc/aria2/aria2-0.15.0.ebuild
new file mode 100644
index 000000000000..22cf784d6e10
--- /dev/null
+++ b/net-misc/aria2/aria2-0.15.0.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/aria2/aria2-0.15.0.ebuild,v 1.1 2008/07/26 15:30:56 dev-zero Exp $
+
+inherit eutils
+
+MY_P="aria2c-${PV/_p/+}"
+
+DESCRIPTION="A download utility with resuming and segmented downloading with HTTP/HTTPS/FTP/BitTorrent support."
+HOMEPAGE="http://aria2.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+SLOT="0"
+IUSE="ares bittorrent expat gnutls metalink nls ssl test"
+
+CDEPEND="sys-libs/zlib
+ ssl? (
+ gnutls? ( >=net-libs/gnutls-1.2.9 )
+ !gnutls? ( dev-libs/openssl ) )
+ ares? ( >=net-dns/c-ares-1.3.1 )
+ bittorrent? ( gnutls? ( >=dev-libs/libgcrypt-1.2.0 ) )
+ metalink? (
+ !expat? ( >=dev-libs/libxml2-2.6.26 )
+ expat? ( dev-libs/expat )
+ )"
+DEPEND="${CDEPEND}
+ nls? ( sys-devel/gettext )
+ test? ( >=dev-util/cppunit-1.12.0 )"
+RDEPEND="${CDEPEND}
+ nls? ( virtual/libiconv virtual/libintl )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${PV}-tests.patch"
+
+ sed -i -e "s|/tmp|${T}|" test/*.cc || die "sed failed"
+}
+
+src_compile() {
+ use ssl && \
+ myconf="${myconf} $(use_with gnutls) $(use_with !gnutls openssl)"
+
+ # Note:
+ # - we don't have ares, only libcares
+ # - depends on libgcrypt only when using openssl
+ # - links only against libxml2 and libexpat when metalink is enabled
+ # - always enable gzip/http compression since zlib should always be anyway
+ # - always enable epoll since we can assume kernel 2.6.x
+ econf \
+ --enable-epoll \
+ --with-libz \
+ $(use_enable nls) \
+ $(use_enable metalink) \
+ $(use_with expat libexpat) \
+ $(use_with !expat libxml2) \
+ $(use_enable bittorrent) \
+ --without-ares \
+ $(use_with ares libcares) \
+ ${myconf} \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc ChangeLog README AUTHORS TODO NEWS
+}
diff --git a/net-misc/aria2/files/0.15.0-tests.patch b/net-misc/aria2/files/0.15.0-tests.patch
new file mode 100644
index 000000000000..f18dbe1d581f
--- /dev/null
+++ b/net-misc/aria2/files/0.15.0-tests.patch
@@ -0,0 +1,305 @@
+--- test/UtilTest.cc.orig 2008-07-26 14:24:56.000000000 +0200
++++ test/UtilTest.cc 2008-07-26 14:27:58.000000000 +0200
+@@ -565,8 +565,8 @@
+
+ void UtilTest::testParseLLInt()
+ {
+- CPPUNIT_ASSERT_EQUAL(-1LL, Util::parseLLInt(" -1 "));
+- CPPUNIT_ASSERT_EQUAL(9223372036854775807LL,
++ CPPUNIT_ASSERT_EQUAL((int64_t)-1LL, Util::parseLLInt(" -1 "));
++ CPPUNIT_ASSERT_EQUAL((int64_t)9223372036854775807LL,
+ Util::parseLLInt("9223372036854775807"));
+ try {
+ Util::parseLLInt("9223372036854775808");
+@@ -596,7 +596,7 @@
+
+ void UtilTest::testParseULLInt()
+ {
+- CPPUNIT_ASSERT_EQUAL(18446744073709551615ULL,
++ CPPUNIT_ASSERT_EQUAL((uint64_t)18446744073709551615ULL,
+ Util::parseULLInt("18446744073709551615"));
+ try {
+ Util::parseUInt("-1");
+--- test/HttpHeaderProcessorTest.cc.orig 2008-07-26 14:29:03.000000000 +0200
++++ test/HttpHeaderProcessorTest.cc 2008-07-26 14:29:35.000000000 +0200
+@@ -112,7 +112,7 @@
+ header->getFirst("Date"));
+ CPPUNIT_ASSERT_EQUAL(std::string("Apache/2.2.3 (Debian)"),
+ header->getFirst("Server"));
+- CPPUNIT_ASSERT_EQUAL(9187ULL, header->getFirstAsULLInt("Content-Length"));
++ CPPUNIT_ASSERT_EQUAL((uint64_t)9187ULL, header->getFirstAsULLInt("Content-Length"));
+ CPPUNIT_ASSERT_EQUAL(std::string("text/html; charset=UTF-8"),
+ header->getFirst("Content-Type"));
+ }
+--- test/BitfieldManTest.cc.orig 2008-07-26 15:37:07.000000000 +0200
++++ test/BitfieldManTest.cc 2008-07-26 15:35:57.000000000 +0200
+@@ -342,7 +342,7 @@
+ btman.setUseBit(index);
+ CPPUNIT_ASSERT_EQUAL((size_t)7, index);
+ CPPUNIT_ASSERT(!btman.getMissingUnusedIndex(index, peerBt, sizeof(peerBt)));
+- CPPUNIT_ASSERT_EQUAL(12ULL, btman.getFilteredTotalLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)12ULL, btman.getFilteredTotalLength());
+
+ // test offset=5, length=2
+ btman.clearAllBit();
+@@ -359,13 +359,13 @@
+ btman.setBit(index);
+ CPPUNIT_ASSERT_EQUAL((size_t)3, index);
+ CPPUNIT_ASSERT(!btman.getMissingUnusedIndex(index, peerBt, sizeof(peerBt)));
+- CPPUNIT_ASSERT_EQUAL(4ULL, btman.getFilteredTotalLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)4ULL, btman.getFilteredTotalLength());
+ CPPUNIT_ASSERT(btman.isFilteredAllBitSet());
+
+ BitfieldMan btman2(2, 31);
+ btman2.addFilter(0, 31);
+ btman2.enableFilter();
+- CPPUNIT_ASSERT_EQUAL(31ULL, btman2.getFilteredTotalLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)31ULL, btman2.getFilteredTotalLength());
+
+ }
+
+@@ -551,27 +551,27 @@
+ CPPUNIT_ASSERT_EQUAL(totalLength, bf.getMissingUnusedLength(0));
+
+ // from index 10 and all blocks are unused and not acquired.
+- CPPUNIT_ASSERT_EQUAL(10ULL, bf.getMissingUnusedLength(10));
++ CPPUNIT_ASSERT_EQUAL((uint64_t)10ULL, bf.getMissingUnusedLength(10));
+
+ // from index -1
+- CPPUNIT_ASSERT_EQUAL(0ULL, bf.getMissingUnusedLength(-1));
++ CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, bf.getMissingUnusedLength(-1));
+
+ // from index 11
+- CPPUNIT_ASSERT_EQUAL(0ULL, bf.getMissingUnusedLength(11));
++ CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, bf.getMissingUnusedLength(11));
+
+ // from index 12
+- CPPUNIT_ASSERT_EQUAL(0ULL, bf.getMissingUnusedLength(12));
++ CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, bf.getMissingUnusedLength(12));
+
+ // from index 0 and 5th block is used.
+ bf.setUseBit(5);
+- CPPUNIT_ASSERT_EQUAL(5ULL*blockLength, bf.getMissingUnusedLength(0));
++ CPPUNIT_ASSERT_EQUAL((uint64_t)5ULL*blockLength, bf.getMissingUnusedLength(0));
+
+ // from index 0 and 4th block is acquired.
+ bf.setBit(4);
+- CPPUNIT_ASSERT_EQUAL(4ULL*blockLength, bf.getMissingUnusedLength(0));
++ CPPUNIT_ASSERT_EQUAL((uint64_t)4ULL*blockLength, bf.getMissingUnusedLength(0));
+
+ // from index 1
+- CPPUNIT_ASSERT_EQUAL(3ULL*blockLength, bf.getMissingUnusedLength(1));
++ CPPUNIT_ASSERT_EQUAL((uint64_t)3ULL*blockLength, bf.getMissingUnusedLength(1));
+ }
+
+ void BitfieldManTest::testSetBitRange()
+@@ -589,7 +589,7 @@
+ for(size_t i = 5; i < 10; ++i) {
+ CPPUNIT_ASSERT(!bf.isBitSet(i));
+ }
+- CPPUNIT_ASSERT_EQUAL(5ULL*blockLength, bf.getCompletedLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)5ULL*blockLength, bf.getCompletedLength());
+ }
+
+ void BitfieldManTest::testGetAllMissingIndexes_noarg()
+--- test/HttpResponseTest.cc.orig 2008-07-26 15:37:36.000000000 +0200
++++ test/HttpResponseTest.cc 2008-07-26 15:39:05.000000000 +0200
+@@ -78,7 +78,7 @@
+ {
+ HttpResponse httpResponse;
+
+- CPPUNIT_ASSERT_EQUAL(0ULL, httpResponse.getContentLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, httpResponse.getContentLength());
+ }
+
+ void HttpResponseTest::testGetContentLength_contentLength()
+@@ -90,7 +90,7 @@
+
+ httpResponse.setHttpHeader(httpHeader);
+
+- CPPUNIT_ASSERT_EQUAL(4294967296ULL, httpResponse.getContentLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)4294967296ULL, httpResponse.getContentLength());
+ }
+
+ void HttpResponseTest::testGetEntityLength()
+@@ -102,11 +102,11 @@
+
+ httpResponse.setHttpHeader(httpHeader);
+
+- CPPUNIT_ASSERT_EQUAL(4294967296ULL, httpResponse.getEntityLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)4294967296ULL, httpResponse.getEntityLength());
+
+ httpHeader->put("Content-Range", "bytes 1-4294967296/4294967297");
+
+- CPPUNIT_ASSERT_EQUAL(4294967297ULL, httpResponse.getEntityLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)4294967297ULL, httpResponse.getEntityLength());
+
+ }
+
+--- test/DefaultDiskWriterTest.cc.orig 2008-07-26 15:39:33.000000000 +0200
++++ test/DefaultDiskWriterTest.cc 2008-07-26 15:39:54.000000000 +0200
+@@ -24,7 +24,7 @@
+ {
+ DefaultDiskWriter dw;
+ dw.openExistingFile("4096chunk.txt");
+- CPPUNIT_ASSERT_EQUAL(4096ULL, dw.size());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)4096ULL, dw.size());
+ }
+
+ } // namespace aria2
+--- test/BtRequestMessageTest.cc.orig 2008-07-26 15:40:57.000000000 +0200
++++ test/BtRequestMessageTest.cc 2008-07-26 15:41:32.000000000 +0200
+@@ -145,7 +145,7 @@
+ CPPUNIT_ASSERT_EQUAL((uint8_t)6, pm->getId());
+ CPPUNIT_ASSERT_EQUAL((size_t)12345, pm->getIndex());
+ CPPUNIT_ASSERT_EQUAL((uint32_t)256, pm->getBegin());
+- CPPUNIT_ASSERT_EQUAL((size_t)1024, pm->getLength());
++ CPPUNIT_ASSERT_EQUAL((uint32_t)1024, pm->getLength());
+
+ // case: payload size is wrong
+ try {
+--- test/DefaultPieceStorageTest.cc.orig 2008-07-26 15:42:13.000000000 +0200
++++ test/DefaultPieceStorageTest.cc 2008-07-26 15:43:06.000000000 +0200
+@@ -72,7 +72,7 @@
+ void DefaultPieceStorageTest::testGetTotalLength() {
+ DefaultPieceStorage pss(btContext, option);
+
+- CPPUNIT_ASSERT_EQUAL(384ULL, pss.getTotalLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)384ULL, pss.getTotalLength());
+ }
+
+ void DefaultPieceStorageTest::testGetMissingPiece() {
+@@ -132,15 +132,15 @@
+ piece->toString());
+ #endif // !__MINGW32__
+
+- CPPUNIT_ASSERT_EQUAL(0ULL, pss.getCompletedLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, pss.getCompletedLength());
+
+ pss.completePiece(piece);
+
+- CPPUNIT_ASSERT_EQUAL(128ULL, pss.getCompletedLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)128ULL, pss.getCompletedLength());
+
+ SharedHandle<Piece> incompletePiece = pss.getMissingPiece(peer);
+ incompletePiece->completeBlock(0);
+- CPPUNIT_ASSERT_EQUAL(256ULL, pss.getCompletedLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)256ULL, pss.getCompletedLength());
+ }
+
+ void DefaultPieceStorageTest::testGetPiece() {
+--- test/DefaultBtContextTest.cc.orig 2008-07-26 15:43:36.000000000 +0200
++++ test/DefaultBtContextTest.cc 2008-07-26 15:44:01.000000000 +0200
+@@ -129,14 +129,14 @@
+ DefaultBtContext btContext;
+ btContext.load("test.torrent");
+
+- CPPUNIT_ASSERT_EQUAL(384ULL, btContext.getTotalLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)384ULL, btContext.getTotalLength());
+ }
+
+ void DefaultBtContextTest::testGetTotalLengthSingle() {
+ DefaultBtContext btContext;
+ btContext.load("single.torrent");
+
+- CPPUNIT_ASSERT_EQUAL(384ULL, btContext.getTotalLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)384ULL, btContext.getTotalLength());
+ }
+
+ void DefaultBtContextTest::testGetFileModeMulti() {
+--- test/PeerSessionResourceTest.cc.orig 2008-07-26 15:44:44.000000000 +0200
++++ test/PeerSessionResourceTest.cc 2008-07-26 15:45:26.000000000 +0200
+@@ -103,20 +103,20 @@
+ {
+ PeerSessionResource res(1024, 1024*1024);
+
+- CPPUNIT_ASSERT_EQUAL(0ULL, res.uploadLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, res.uploadLength());
+ res.updateUploadLength(100);
+ res.updateUploadLength(200);
+- CPPUNIT_ASSERT_EQUAL(300ULL, res.uploadLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)300ULL, res.uploadLength());
+ }
+
+ void PeerSessionResourceTest::testUpdateDownloadLength()
+ {
+ PeerSessionResource res(1024, 1024*1024);
+
+- CPPUNIT_ASSERT_EQUAL(0ULL, res.downloadLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, res.downloadLength());
+ res.updateDownloadLength(100);
+ res.updateDownloadLength(200);
+- CPPUNIT_ASSERT_EQUAL(300ULL, res.downloadLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)300ULL, res.downloadLength());
+ }
+
+ void PeerSessionResourceTest::testUpdateLatency()
+--- test/Metalink2RequestGroupTest.cc.orig 2008-07-26 15:47:04.000000000 +0200
++++ test/Metalink2RequestGroupTest.cc 2008-07-26 15:47:22.000000000 +0200
+@@ -46,7 +46,7 @@
+ SharedHandle<SingleFileDownloadContext> dctx
+ (dynamic_pointer_cast<SingleFileDownloadContext>(rg->getDownloadContext()));
+ CPPUNIT_ASSERT(!dctx.isNull());
+- CPPUNIT_ASSERT_EQUAL(0ULL, dctx->getTotalLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, dctx->getTotalLength());
+ #ifdef ENABLE_MESSAGE_DIGEST
+ CPPUNIT_ASSERT_EQUAL(std::string("sha1"), dctx->getChecksumHashAlgo());
+ CPPUNIT_ASSERT_EQUAL(std::string("a96cf3f0266b91d87d5124cf94326422800b627d"),
+--- test/MetalinkParserControllerTest.cc.orig 2008-07-26 15:47:44.000000000 +0200
++++ test/MetalinkParserControllerTest.cc 2008-07-26 15:48:02.000000000 +0200
+@@ -59,7 +59,7 @@
+ CPPUNIT_ASSERT_EQUAL((size_t)1, m->entries.size());
+ SharedHandle<MetalinkEntry> e = m->entries.front();
+ CPPUNIT_ASSERT_EQUAL(std::string("aria2.tar.bz2"), e->file->getPath());
+- CPPUNIT_ASSERT_EQUAL(1024*1024ULL, e->file->getLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)(1024*1024ULL), e->file->getLength());
+ CPPUNIT_ASSERT_EQUAL((off_t)0, e->file->getOffset());
+ CPPUNIT_ASSERT_EQUAL(std::string("1.0"), e->version);
+ CPPUNIT_ASSERT_EQUAL(std::string("ja_JP"), e->language);
+--- test/MetalinkProcessorTest.cc.orig 2008-07-26 15:49:34.000000000 +0200
++++ test/MetalinkProcessorTest.cc 2008-07-26 15:50:13.000000000 +0200
+@@ -73,7 +73,7 @@
+
+ SharedHandle<MetalinkEntry> entry1 = *entryItr;
+ CPPUNIT_ASSERT_EQUAL(std::string("aria2-0.5.2.tar.bz2"), entry1->getPath());
+- CPPUNIT_ASSERT_EQUAL(0ULL, entry1->getLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, entry1->getLength());
+ CPPUNIT_ASSERT_EQUAL(std::string("0.5.2"), entry1->version);
+ CPPUNIT_ASSERT_EQUAL(std::string("en-US"), entry1->language);
+ CPPUNIT_ASSERT_EQUAL(std::string("Linux-x86"), entry1->os);
+@@ -121,7 +121,7 @@
+
+ SharedHandle<MetalinkEntry> entry2 = *entryItr;
+ CPPUNIT_ASSERT_EQUAL(std::string("aria2-0.5.1.tar.bz2"), entry2->getPath());
+- CPPUNIT_ASSERT_EQUAL(345689ULL, entry2->getLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)345689ULL, entry2->getLength());
+ CPPUNIT_ASSERT_EQUAL(std::string("0.5.1"), entry2->version);
+ CPPUNIT_ASSERT_EQUAL(std::string("ja-JP"), entry2->language);
+ CPPUNIT_ASSERT_EQUAL(std::string("Linux-m68k"), entry2->os);
+@@ -236,7 +236,7 @@
+ std::deque<SharedHandle<MetalinkEntry> >::iterator entryItr = m->entries.begin();
+ SharedHandle<MetalinkEntry> e = *entryItr;
+ CPPUNIT_ASSERT_EQUAL(std::string("aria2-0.5.2.tar.bz2"), e->getPath());
+- CPPUNIT_ASSERT_EQUAL(0ULL, e->getLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, e->getLength());
+ CPPUNIT_ASSERT_EQUAL(std::string("0.5.2"), e->version);
+ CPPUNIT_ASSERT_EQUAL(std::string("en-US"), e->language);
+ CPPUNIT_ASSERT_EQUAL(std::string("Linux-x86"), e->os);
+@@ -267,7 +267,7 @@
+
+ std::deque<SharedHandle<MetalinkEntry> >::iterator entryItr = m->entries.begin();
+ SharedHandle<MetalinkEntry> e = *entryItr;
+- CPPUNIT_ASSERT_EQUAL(43743838ULL, e->getLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)43743838ULL, e->getLength());
+ } catch(Exception& e) {
+ CPPUNIT_FAIL(e.stackTrace());
+ }
+@@ -545,7 +545,7 @@
+ try {
+ SharedHandle<Metalinker> m = proc->parseFromBinaryStream(dw);
+ SharedHandle<MetalinkEntry> e = m->entries[0];
+- CPPUNIT_ASSERT_EQUAL(9223372036854775807ULL, e->getLength());
++ CPPUNIT_ASSERT_EQUAL((uint64_t)9223372036854775807ULL, e->getLength());
+ } catch(Exception& e) {
+ CPPUNIT_FAIL(e.stackTrace());
+ }