FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 12-18-2009, 02:40 PM
Ronan Mainbourg
 
Default Trying to make portage use "puf" instead of "wget"

Because my Internet connection is not very fast, I'd like to make portage fetch files using net-misc/puf (wich can dl several chunks of a file at the same time) instead of wget.
I tried to do this setting the parameter FETCHCOMMAND in my make.conf, but it doesn't work:




FETCHCOMMAND="/usr/bin/puf ${URI} -P ${DISTDIR}/${FILE}"

... Give me when I try emerging a package (here"media-libs/libdvbpsi" for instance):*



!!! Couldn't download 'libdvbpsi5-0.1.6.tar.bz2'. Aborting.


Any Ideas ?

--
Ronan Mainbourg

Sent from Tananarive, Madagascar
 
Old 12-18-2009, 03:27 PM
Paul Hartman
 
Default Trying to make portage use "puf" instead of "wget"

On Fri, Dec 18, 2009 at 9:40 AM, Ronan Mainbourg
<ronan.mainbourg@gmail.com> wrote:
> Because my Internet connection is not very fast, I'd like to make portage
> fetch files using net-misc/puf (wich can dl several chunks of a file at the
> same time) instead of wget.
> I tried to do this setting the parameter FETCHCOMMAND in my make.conf, but
> it doesn't work:

puf crashes every time for me with this, maybe you have the same problem?

*** glibc detected *** puf: double free or corruption (top):
0x000000000169d730 ***
======= Backtrace: =========
/lib/libc.so.6(+0x72406)[0x7f0a980bd406]
/lib/libc.so.6(cfree+0x6c)[0x7f0a980c21ac]
puf[0x40ec8b]
puf[0x40204b]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f0a98069bbd]
puf[0x401da9]
======= Memory map: ========
00400000-00415000 r-xp 00000000 08:05 5292661
/usr/bin/puf
00614000-00615000 r--p 00014000 08:05 5292661
/usr/bin/puf
00615000-00616000 rw-p 00015000 08:05 5292661
/usr/bin/puf
0169d000-016be000 rw-p 00000000 00:00 0 [heap]
7f0a93de9000-7f0a93dff000 r-xp 00000000 08:05 5145230
/lib64/libgcc_s.so.1
7f0a93dff000-7f0a93ffe000 ---p 00016000 08:05 5145230
/lib64/libgcc_s.so.1
7f0a93ffe000-7f0a93fff000 r--p 00015000 08:05 5145230
/lib64/libgcc_s.so.1
7f0a93fff000-7f0a94000000 rw-p 00016000 08:05 5145230
/lib64/libgcc_s.so.1
7f0a94000000-7f0a94021000 rw-p 00000000 00:00 0
7f0a94021000-7f0a98000000 ---p 00000000 00:00 0
7f0a9804b000-7f0a9819b000 r-xp 00000000 08:05 4260926
/lib64/libc-2.11.so
7f0a9819b000-7f0a9839a000 ---p 00150000 08:05 4260926
/lib64/libc-2.11.so
7f0a9839a000-7f0a9839e000 r--p 0014f000 08:05 4260926
/lib64/libc-2.11.so
7f0a9839e000-7f0a9839f000 rw-p 00153000 08:05 4260926
/lib64/libc-2.11.so
7f0a9839f000-7f0a983a4000 rw-p 00000000 00:00 0
7f0a983a4000-7f0a983c2000 r-xp 00000000 08:05 4260927
/lib64/ld-2.11.so
7f0a98585000-7f0a98588000 rw-p 00000000 00:00 0
7f0a985bf000-7f0a985c1000 rw-p 00000000 00:00 0
7f0a985c1000-7f0a985c2000 r--p 0001d000 08:05 4260927
/lib64/ld-2.11.so
7f0a985c2000-7f0a985c3000 rw-p 0001e000 08:05 4260927
/lib64/ld-2.11.so
7f0a985c3000-7f0a985c4000 rw-p 00000000 00:00 0
7ffff5929000-7ffff5941000 rw-p 00000000 00:00 0 [stack]
7ffff59ff000-7ffff5a00000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vsyscall]
 
Old 12-18-2009, 04:26 PM
Marcus Wanner
 
Default Trying to make portage use "puf" instead of "wget"

On 12/18/2009 10:40 AM, Ronan Mainbourg wrote:

Because my Internet connection is not very fast, I'd like to make portage
fetch files using net-misc/puf (wich can dl several chunks of a file at the
same time) instead of wget.

I tried to do this setting the parameter FETCHCOMMAND in my make.conf, but
it doesn't work:

FETCHCOMMAND="/usr/bin/puf ${URI} -P ${DISTDIR}/${FILE}"

... Give me when I try emerging a package (here"media-libs/libdvbpsi" for
instance):

!!! Couldn't download 'libdvbpsi5-0.1.6.tar.bz2'. Aborting.

Any Ideas ?

Does it actually download the file but put it in the wrong place? Can
you attach a complete log?


Marcus
 
Old 12-18-2009, 05:38 PM
Nikos Chantziaras
 
Default Trying to make portage use "puf" instead of "wget"

On 12/18/2009 05:40 PM, Ronan Mainbourg wrote:

Because my Internet connection is not very fast, I'd like to make
portage fetch files using net-misc/puf (wich can dl several chunks of a
file at the same time) instead of wget.


You got it backwards. Downloading more than one chunk at the same time
is only useful on *fast* connections, not *slow* ones.
 
Old 12-18-2009, 06:10 PM
Paul Hartman
 
Default Trying to make portage use "puf" instead of "wget"

On Fri, Dec 18, 2009 at 9:40 AM, Ronan Mainbourg
<ronan.mainbourg@gmail.com> wrote:
> Because my Internet connection is not very fast, I'd like to make portage
> fetch files using net-misc/puf (wich can dl several chunks of a file at the
> same time) instead of wget.
> I tried to do this setting the parameter FETCHCOMMAND in my make.conf, but
> it doesn't work:
>
> FETCHCOMMAND="/usr/bin/puf ${URI} -P ${DISTDIR}/${FILE}"
>
> ... Give me when I try emerging a package (here"media-libs/libdvbpsi" for
> instance):
> !!! Couldn't download 'libdvbpsi5-0.1.6.tar.bz2'. Aborting.
>
>
> Any Ideas ?

I think the syntax should be:

FETCHCOMMAND="/usr/bin/puf ${URI} -P ${DISTDIR} -O ${FILE}"

That works for me if I run emerge as normal user. If I run as root, it
crashes... weird.
 
Old 12-18-2009, 08:35 PM
Marcus Wanner
 
Default Trying to make portage use "puf" instead of "wget"

On 12/18/2009 1:38 PM, Nikos Chantziaras wrote:

On 12/18/2009 05:40 PM, Ronan Mainbourg wrote:

Because my Internet connection is not very fast, I'd like to make
portage fetch files using net-misc/puf (wich can dl several chunks of a
file at the same time) instead of wget.
You got it backwards. Downloading more than one chunk at the same
time is only useful on *fast* connections, not *slow* ones.
I hate to say it but he is correct...puf won't do you any good unless
the speed at which to file is being downloaded is less than the maximum
speed for your net connection


Marcus
 
Old 12-23-2009, 11:18 PM
Nguyen Bao Ngoc
 
Default Trying to make portage use "puf" instead of "wget"

Hi, why don't you try aria2? I replaced wget with it and it works well.
Here is my fetch command in case you want to try.
FETCHCOMMAND="/usr/bin/aria2c -d "${DISTDIR}" -o "${FILE}"
"${URI}""
RESUMECOMMAND="/usr/bin/aria2c -c -d "${DISTDIR}" -o "${FILE}"
"${URI}""
 
Old 12-24-2009, 02:53 AM
Ronan Mainbourg
 
Default Trying to make portage use "puf" instead of "wget"

Thanks! It works well on my box and since I did not succeed in using puf with emerge, it perfectly fits my needs.

2009/12/24 Nguyen Bao Ngoc <baongoc124@gmail.com>


Hi, why don't you try aria2? I replaced wget with it and it works well.

Here is my fetch command in case you want to try.

FETCHCOMMAND="/usr/bin/aria2c -d "${DISTDIR}" -o "${FILE}"

"${URI}""

RESUMECOMMAND="/usr/bin/aria2c -c -d "${DISTDIR}" -o "${FILE}"

"${URI}""





--
Ronan Mainbourg
ronan.mainbourg@gmail.com
 
Old 12-24-2009, 02:59 AM
Xi Shen
 
Default Trying to make portage use "puf" instead of "wget"

On Thu, Dec 24, 2009 at 8:18 AM, Nguyen Bao Ngoc <baongoc124@gmail.com> wrote:
> Hi, why don't you try aria2? I replaced wget with it and it works well.
> Here is my fetch command in case you want to try.
> FETCHCOMMAND="/usr/bin/aria2c -d "${DISTDIR}" -o "${FILE}"
> "${URI}""
> RESUMECOMMAND="/usr/bin/aria2c -c -d "${DISTDIR}" -o "${FILE}"
> "${URI}""
>
>

looks like this tools is even better will give a try.


--
Best Regards,
David Shen

http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/
 

Thread Tools




All times are GMT. The time now is 07:23 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org