Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134540 - new ebuild: net-misc/aria2
Summary: new ebuild: net-misc/aria2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Tiziano Müller (RETIRED)
URL: http://aria2.sourceforge.net/
Whiteboard: [sunrise-overlay]
Keywords: EBUILD, InOverlay
Depends on:
Blocks:
 
Reported: 2006-05-27 09:10 UTC by Timo Nentwig
Modified: 2006-09-30 15:14 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
net-misc/aria2/aria2-0.5.0_p2.ebuild (aria2-0.5.0_p2.ebuild,986 bytes, text/plain)
2006-06-10 05:06 UTC, Dominik Brugger
Details
aria2-0.6.0_p1.ebuild (aria2-0.6.0_p1.ebuild,1.17 KB, text/plain)
2006-07-08 11:33 UTC, Azamat H. Hackimov
Details
aria2-0.6.0_p1-r1.ebuild (aria2-0.6.0_p1-r1.ebuild,1.00 KB, text/plain)
2006-08-02 04:53 UTC, Bjoern Olausson
Details
header.patch (header.patch,2.52 KB, patch)
2006-08-02 04:55 UTC, Bjoern Olausson
Details | Diff
aria2-0.7.1.ebuild (aria2-0.7.1.ebuild,1.18 KB, text/plain)
2006-08-15 04:51 UTC, Bjoern Olausson
Details
aria2-0.7.3.ebuild (aria2-0.7.3.ebuild,1.13 KB, text/plain)
2006-08-29 11:16 UTC, Bjoern Olausson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Nentwig 2006-05-27 09:10:47 UTC
aria2 should find its way to portage. Besides aget there's no such tool available, yet.

http://aria2.sourceforge.net/
Comment 1 Dominik Brugger 2006-06-10 05:06:51 UTC
Created attachment 88835 [details]
net-misc/aria2/aria2-0.5.0_p2.ebuild

created ebuild for current version of aria2, but I am not sure about the version suffix as the original tarball is named aria2-0.5.0+2.tar.bz2.

Dominik
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2006-07-02 14:38:47 UTC
Version bump: aria2-0.5.2 is out. Thanks to Dominik Brugger for the ebuild, I corrected some stuff (DEPEND and USE-flags) and it is now in the gentoo-sunrise overlay, available here: http://gentoo-sunrise.org/svn/reviewed/net-misc/aria2
Comment 3 Azamat H. Hackimov 2006-07-08 11:33:49 UTC
Created attachment 91225 [details]
aria2-0.6.0_p1.ebuild

Hola!
This is new version of ebuild for aria2-0.6.0+1
added 'metalink' support

Thanks!
Comment 4 Tiziano Müller (RETIRED) gentoo-dev 2006-07-08 12:48:17 UTC
Thanks for the news and the ebuild. Added metalink USE-flag and new version in the gentoo-sunrise overlay.
Comment 5 Bjoern Olausson 2006-08-02 04:53:48 UTC
Created attachment 93255 [details]
aria2-0.6.0_p1-r1.ebuild
Comment 6 Bjoern Olausson 2006-08-02 04:55:11 UTC
Created attachment 93256 [details, diff]
header.patch
Comment 7 Bjoern Olausson 2006-08-02 04:56:03 UTC
Comment on attachment 93255 [details]
aria2-0.6.0_p1-r1.ebuild

aria2 ebuild that patches HttpHeader.cc with header.patch
Comment 8 Bjoern Olausson 2006-08-02 04:56:38 UTC
Comment on attachment 93256 [details, diff]
header.patch

patch for aria2-0.6.0_p1-r1.ebuild
Comment 9 Bjoern Olausson 2006-08-02 05:00:29 UTC
Sry for the 4 Posts above.... how can I delete the 4 comments above? 

aria2c was not able to get the correct file length properly from the HTTP header.

I mailed it to the upstream developer and got a patch from him.

Attached a new ebuild "aria2-0.6.0_p1-r1.ebuild" including the patch and the patchfile "header.patch" itself.

The base ebuild was taken from the sunrise overlay.
Maintainer unknown

Regards
Bjoern
Comment 10 Tiziano Müller (RETIRED) gentoo-dev 2006-08-03 07:13:46 UTC
You can't.
As you could read in comment #2 or in the changelog, I'm maintaining it right now. I'll add this patch to gentoo-sunrise this evening (in ~5h).
Comment 11 Bjoern Olausson 2006-08-06 05:58:22 UTC
(In reply to comment #10)
> You can't.
> As you could read in comment #2 or in the changelog, I'm maintaining it right
> now. I'll add this patch to gentoo-sunrise this evening (in ~5h).
> 

Nice, thats how bugzilla should work :-)

Is there a chance that aria2 will make it's way to the main stream of portage?

Regards
Bjoern
Comment 12 Tiziano Müller (RETIRED) gentoo-dev 2006-08-06 06:10:10 UTC
To be honest: I don't know. But since I'm on the way to become a dev, I hope I could maintain it even if it doesn't belong to the herd I'll work on.
Comment 13 Bjoern Olausson 2006-08-15 04:51:41 UTC
Created attachment 94305 [details]
aria2-0.7.1.ebuild

Latest version of aria2 0.7.1

Added support for ares (Useflag "ares")

[quote]
As of 0.7.1 release, aria2 supports asynchronous DNS using ares. This can improve segmented download performance, especially in Metalink download.
[/quote]

regards Bjoern
Comment 14 Tiziano Müller (RETIRED) gentoo-dev 2006-08-15 12:29:52 UTC
Thanks for the info :-)
You might want to use the ebuild from the overlay since I had to correct some configure options (use_with instead of use_enable).

The following line in your ebuild might be dangerous:
use ares && \
		myconf="${myconf} $(use_with ares libares)"

You're setting here "--with-libares" only if the ares USE-flag is specified, otherwise you don't set anything. This means you're leaving the decision to the package, which should never be done.

So, simply write:
econf \
     $(use_with ares libares) \
     ...
Comment 15 Bjoern Olausson 2006-08-15 12:44:01 UTC
(In reply to comment #14)
> Thanks for the info :-)
> You might want to use the ebuild from the overlay since I had to correct some
> configure options (use_with instead of use_enable).

Thanks for the correctios!

It was the first time I modified the uesflags in a ebuild.

Thanks for your explanation.

best regards
Bjoern
Comment 16 Bjoern Olausson 2006-08-17 13:03:02 UTC
Okay, seems ther is a problem with libares.

just check aria2 -v
and the output of ./configure....

In gentoo the ares libs are called

/usr/lib/libcares.so
/usr/lib/libcares.so.0.0.0
/usr/lib/libcares.so.0
/usr/lib/libcares.la
/usr/lib/libcares.a

but aria1 is searching for
/usr/lib/libares.so


Linking libcares to libares works for configure, but fails during compilation:

NameResolver.cc: In function `void callback(void*, int, hostent*)':
/usr/include/ares.h:174: error: too many arguments to function `const char* ares_strerror(int)'
NameResolver.cc:27: error: at this point in file
distcc[22355] ERROR: compile NameResolver.cc on 10.0.123.1 failed
make[2]: *** [NameResolver.o] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
make[2]: Leaving directory `/var/tmp/portage/aria2-0.7.1/work/aria2-0.7.1/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/aria2-0.7.1/work/aria2-0.7.1'
make: *** [all] Fehler 2

!!! ERROR: net-misc/aria2-0.7.1 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  aria2-0.7.1.ebuild, line 40:   Called die


Any ideas what to do?
I asked the same at
https://sourceforge.net/tracker/index.php?func=detail&aid=1541440&group_id=159897&atid=813673

regards
Bjoern
Comment 17 Tiziano Müller (RETIRED) gentoo-dev 2006-08-17 14:58:14 UTC
Well, I had an error about an undefined function before that line below.
The problem might be that we're eiher using c-ares instead of ares or a newer version of c-ares which isn't compatible to ares.
Anyway, the patch I've committed to gentoo-sunrise fixes it.
Comment 18 Timo Nentwig 2006-08-20 04:35:21 UTC
Doesn't build:

In file included from MetalinkProcessor.h:25,
                 from Xml2MetalinkProcessor.h:25,
                 from main.cc:37:
Metalinker.h:28:26: libxml/xpath.h: No such file or directory
In file included from main.cc:37:
Xml2MetalinkProcessor.h:26:27: libxml/parser.h: No such file or directory
In file included from main.cc:37:
Xml2MetalinkProcessor.h:31: error: `xmlDocPtr' does not name a type
Xml2MetalinkProcessor.h:32: error: `xmlXPathContextPtr' does not name a type
Xml2MetalinkProcessor.h:37: error: `xmlXPathObjectPtr' does not name a type
Xml2MetalinkProcessor.h:39: error: `xmlNodePtr' has not been declared
Xml2MetalinkProcessor.h:39: error: ISO C++ forbids declaration of `node' with no type
Xml2MetalinkProcessor.h:40: error: `xmlNodePtr' has not been declared
Xml2MetalinkProcessor.h:40: error: ISO C++ forbids declaration of `node' with no type
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/aria2-0.7.1/work/aria2-0.7.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/aria2-0.7.1/work/aria2-0.7.1'
make: *** [all] Error 2

!!! ERROR: net-misc/aria2-0.7.1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  aria2-0.7.1.ebuild, line 40:   Called die
Comment 19 Tiziano Müller (RETIRED) gentoo-dev 2006-08-20 04:50:50 UTC
Ok, I need the following information:
a) how did you build it: "emerge aria2" or did you use ebuild directly?
b) Which version of aria2 did you use?
c) What USE-flags did you set?
Comment 20 Timo Nentwig 2006-08-21 10:44:18 UTC
a) yes, emerge aria2
b) latest ~amd64 version, 0.7.1
c) local: ares
global:

USE="nptl nptlonly mmx sse sse2 3dnow acpi threads hal unicode samba \
     kerberos bluetooth xinerama dvb dvd dvdr cdr kdeenablefinal \
     kdexdeltas -gnome jpeg2k arts -oss ac vorbis ogg mad ffmpeg xvid \
     xine aac -xmms postgres java truetype sasl jikes gcj fam \
     apache2 directfb -v4l -eds -emboss -ldap pic bzip2 gtkhtml gdbm \
     mhash curl lcms glut mng real sqlite"
Comment 21 Tiziano Müller (RETIRED) gentoo-dev 2006-08-21 11:53:14 UTC
Ok, I already fixed it, upstream integrated my patches and a new version is out, available in a couple of minutes on gentoo-sunrise :-)
Comment 22 Bjoern Olausson 2006-08-22 06:25:36 UTC
mmmh, wouldn't aria2 be a great replacement for wget when downlading distfiles?
Aria could connect to all mirror spcified in the make.conf.

Maybe I should start a threaad about it in the forum

I know in former times there was a prozilla integration possible.

Is it somehow paossible NOW to integrate aria2 with multi download sources when downloading distfiles?

regards
Bjoern
Comment 23 Tiziano Müller (RETIRED) gentoo-dev 2006-08-22 06:32:45 UTC
I took a short look into the portage code and it doesn't seem to be possibe.
File: /usr/lib/portage/pym/portage.py, grep for fetchcommand
Comment 24 Bjoern Olausson 2006-08-29 11:16:17 UTC
Created attachment 95392 [details]
aria2-0.7.3.ebuild

Latest aria2 release 0.7.3. Now includes an otion to set seeding time for the torrent network.

Just a versionbump

( cp aria2-0.7.2.ebuild aria2-0.7.3.ebuild )

regards
Bjoern
Comment 25 Tiziano Müller (RETIRED) gentoo-dev 2006-08-29 13:52:41 UTC
You don't have to attach the new ebuild for a version bump only and I've committed the version bump to gentoo-sunrise already yesterday :-)
Comment 26 Bjoern Olausson 2006-08-29 14:16:40 UTC
(In reply to comment #25)
> You don't have to attach the new ebuild for a version bump only and I've
> committed the version bump to gentoo-sunrise already yesterday :-)
> 

mmh, synced the sunrise overlay bevore I added my comment here.
How long does it take untill changes in sunrise reaches use users?

hav a nice day/night ;-)
Bjoern
Comment 27 Steffen 2006-09-25 23:41:05 UTC
(In reply to comment #22)
> mmmh, wouldn't aria2 be a great replacement for wget when downlading distfiles?
> Aria could connect to all mirror spcified in the make.conf.
> 
> Maybe I should start a threaad about it in the forum
> 
> I know in former times there was a prozilla integration possible.
> 
> Is it somehow paossible NOW to integrate aria2 with multi download sources when
> downloading distfiles?
> 
> regards
> Bjoern
> 

anything new from here? have you postet it in the forum? I think it would be possible by changeing the "FETCHCOMMAND" in /etc/make.conf 
This way I'm currently using "axel" as downloadmanager.
Comment 28 Bjoern Olausson 2006-09-26 03:13:27 UTC
I just have filed a feature request an made a post in the forum.

Go and comment on it ;-)

Forum: http://forums.gentoo.org/viewtopic-p-3604581.html
Bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=149156

Adepting the FETCHCOMMAND should not be that hard I guess, but actually I have no clue :)

regards
Bjoern
Comment 29 Tiziano Müller (RETIRED) gentoo-dev 2006-09-30 15:14:04 UTC
In portage. ~amd64 and ~ppc had to be removed as requested by the arch-teams. Expect them (and others) to be added soon (bug is already open).
Have fun!