* [gentoo-user] Trying to make portage use "puf" instead of "wget"
@ 2009-12-18 15:40 Ronan Mainbourg
2009-12-18 16:27 ` Paul Hartman
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Ronan Mainbourg @ 2009-12-18 15:40 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 551 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 812 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Trying to make portage use "puf" instead of "wget"
2009-12-18 15:40 [gentoo-user] Trying to make portage use "puf" instead of "wget" Ronan Mainbourg
@ 2009-12-18 16:27 ` Paul Hartman
2009-12-18 17:26 ` Marcus Wanner
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Paul Hartman @ 2009-12-18 16:27 UTC (permalink / raw
To: gentoo-user
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]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Trying to make portage use "puf" instead of "wget"
2009-12-18 15:40 [gentoo-user] Trying to make portage use "puf" instead of "wget" Ronan Mainbourg
2009-12-18 16:27 ` Paul Hartman
@ 2009-12-18 17:26 ` Marcus Wanner
2009-12-18 18:38 ` [gentoo-user] " Nikos Chantziaras
2009-12-18 19:10 ` [gentoo-user] " Paul Hartman
3 siblings, 0 replies; 10+ messages in thread
From: Marcus Wanner @ 2009-12-18 17:26 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-user] Re: Trying to make portage use "puf" instead of "wget"
2009-12-18 15:40 [gentoo-user] Trying to make portage use "puf" instead of "wget" Ronan Mainbourg
2009-12-18 16:27 ` Paul Hartman
2009-12-18 17:26 ` Marcus Wanner
@ 2009-12-18 18:38 ` Nikos Chantziaras
2009-12-18 21:35 ` Marcus Wanner
2009-12-18 19:10 ` [gentoo-user] " Paul Hartman
3 siblings, 1 reply; 10+ messages in thread
From: Nikos Chantziaras @ 2009-12-18 18:38 UTC (permalink / raw
To: gentoo-user
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: Trying to make portage use "puf" instead of "wget"
2009-12-18 18:38 ` [gentoo-user] " Nikos Chantziaras
@ 2009-12-18 21:35 ` Marcus Wanner
2009-12-19 14:08 ` Ronan Mainbourg
0 siblings, 1 reply; 10+ messages in thread
From: Marcus Wanner @ 2009-12-18 21:35 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: Trying to make portage use "puf" instead of "wget"
2009-12-18 21:35 ` Marcus Wanner
@ 2009-12-19 14:08 ` Ronan Mainbourg
2009-12-20 3:40 ` Xi Shen
2009-12-21 17:06 ` Paul Hartman
0 siblings, 2 replies; 10+ messages in thread
From: Ronan Mainbourg @ 2009-12-19 14:08 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2544 bytes --]
Sorry, I should have given more details on why I am trying to do that:
the Internet connection I use at work is handled by a router which do
automatic load-balancing between two different connections.
So when bandwidth usage of the first connection is saturated, all new
connections are routed to the second one.
Although bandwidth of those two connections (1024kb/s + 512 kb/s) are
limited and shared with other colleagues, in general I see some good dl
speed improvements using tools that can do parallel fetch, that's why I'm
trying to make portage act this way.
Paul:
I tried your modified FETCHCOMMAND, but without success :(
My configuration only allows me to run emerge as root (most of the time I
use sudo).
The only thing I get trying to emerge media-libs/libdvbpsi is this log
(maybe I can activate a more verbose one, but I don't know how?) :
>>> Emerging (1 of 1) media-libs/libdvbpsi-0.1.6
>>> Downloading '
http://mirror.ovh.net/gentoo-distfiles/distfiles/libdvbpsi5-0.1.6.tar.bz2'
>>> Downloading '
http://download.videolan.org/pub/libdvbpsi/0.1.6/libdvbpsi5-0.1.6.tar.bz2'
!!! Couldn't download 'libdvbpsi5-0.1.6.tar.bz2'. Aborting.
* Fetch failed for 'media-libs/libdvbpsi-0.1.6', Log file:
* '/var/tmp/portage/media-libs/libdvbpsi-0.1.6/temp/build.log'
>>> Failed to emerge media-libs/libdvbpsi-0.1.6, Log file:
>>> '/var/tmp/portage/media-libs/libdvbpsi-0.1.6/temp/build.log'
And in the build.log:
>>> Downloading '
http://mirror.ovh.net/gentoo-distfiles/distfiles/libdvbpsi5-0.1.6.tar.bz2'
>>> Downloading '
http://download.videolan.org/pub/libdvbpsi/0.1.6/libdvbpsi5-0.1.6.tar.bz2'
!!! Couldn't download 'libdvbpsi5-0.1.6.tar.bz2'. Aborting.
Download work great when I type directly:
puf
http://download.videolan.org/pub/libdvbpsi/0.1.6/libdvbpsi5-0.1.6.tar.bz2'
Any help please ?
2009/12/19 Marcus Wanner <marcusw@cox.net>
> 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
>
>
--
Ronan Mainbourg
ronan.mainbourg@gmail.com
[-- Attachment #2: Type: text/html, Size: 4233 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: Trying to make portage use "puf" instead of "wget"
2009-12-19 14:08 ` Ronan Mainbourg
@ 2009-12-20 3:40 ` Xi Shen
2009-12-21 17:06 ` Paul Hartman
1 sibling, 0 replies; 10+ messages in thread
From: Xi Shen @ 2009-12-20 3:40 UTC (permalink / raw
To: gentoo-user
according to puf's syntax, you should put the URI at the END of the command.
On Sat, Dec 19, 2009 at 10:08 PM, Ronan Mainbourg
<ronan.mainbourg@gmail.com> wrote:
> Sorry, I should have given more details on why I am trying to do that:
>
> the Internet connection I use at work is handled by a router which do
> automatic load-balancing between two different connections.
> So when bandwidth usage of the first connection is saturated, all new
> connections are routed to the second one.
> Although bandwidth of those two connections (1024kb/s + 512 kb/s) are
> limited and shared with other colleagues, in general I see some good dl
> speed improvements using tools that can do parallel fetch, that's why I'm
> trying to make portage act this way.
> Paul:
> I tried your modified FETCHCOMMAND, but without success :(
> My configuration only allows me to run emerge as root (most of the time I
> use sudo).
> The only thing I get trying to emerge media-libs/libdvbpsi is this log
> (maybe I can activate a more verbose one, but I don't know how?) :
>
>>>> Emerging (1 of 1) media-libs/libdvbpsi-0.1.6
>>>> Downloading
>>>> 'http://mirror.ovh.net/gentoo-distfiles/distfiles/libdvbpsi5-0.1.6.tar.bz2'
>>>> Downloading
>>>> 'http://download.videolan.org/pub/libdvbpsi/0.1.6/libdvbpsi5-0.1.6.tar.bz2'
> !!! Couldn't download 'libdvbpsi5-0.1.6.tar.bz2'. Aborting.
> * Fetch failed for 'media-libs/libdvbpsi-0.1.6', Log file:
> * '/var/tmp/portage/media-libs/libdvbpsi-0.1.6/temp/build.log'
>
>>>> Failed to emerge media-libs/libdvbpsi-0.1.6, Log file:
>
>>>> '/var/tmp/portage/media-libs/libdvbpsi-0.1.6/temp/build.log'
>
>
> And in the build.log:
>>>> Downloading
>>>> 'http://mirror.ovh.net/gentoo-distfiles/distfiles/libdvbpsi5-0.1.6.tar.bz2'
>>>> Downloading
>>>> 'http://download.videolan.org/pub/libdvbpsi/0.1.6/libdvbpsi5-0.1.6.tar.bz2'
> !!! Couldn't download 'libdvbpsi5-0.1.6.tar.bz2'. Aborting.
>
>
> Download work great when I type directly:
>
> puf http://download.videolan.org/pub/libdvbpsi/0.1.6/libdvbpsi5-0.1.6.tar.bz2'
>
> Any help please ?
> 2009/12/19 Marcus Wanner <marcusw@cox.net>
>>
>> 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
>>
>
>
>
> --
> Ronan Mainbourg
> ronan.mainbourg@gmail.com
>
>
--
Best Regards,
David Shen
http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: Trying to make portage use "puf" instead of "wget"
2009-12-19 14:08 ` Ronan Mainbourg
2009-12-20 3:40 ` Xi Shen
@ 2009-12-21 17:06 ` Paul Hartman
2009-12-22 5:51 ` Xi Shen
1 sibling, 1 reply; 10+ messages in thread
From: Paul Hartman @ 2009-12-21 17:06 UTC (permalink / raw
To: gentoo-user
On Sat, Dec 19, 2009 at 8:08 AM, Ronan Mainbourg
<ronan.mainbourg@gmail.com> wrote:
> Download work great when I type directly:
>
> puf http://download.videolan.org/pub/libdvbpsi/0.1.6/libdvbpsi5-0.1.6.tar.bz2'
>
> Any help please ?
Like I said for me it fails when run as root. What happens if you run
it as root/sudo?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Trying to make portage use "puf" instead of "wget"
2009-12-18 15:40 [gentoo-user] Trying to make portage use "puf" instead of "wget" Ronan Mainbourg
` (2 preceding siblings ...)
2009-12-18 18:38 ` [gentoo-user] " Nikos Chantziaras
@ 2009-12-18 19:10 ` Paul Hartman
3 siblings, 0 replies; 10+ messages in thread
From: Paul Hartman @ 2009-12-18 19:10 UTC (permalink / raw
To: gentoo-user
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-12-22 5:52 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-18 15:40 [gentoo-user] Trying to make portage use "puf" instead of "wget" Ronan Mainbourg
2009-12-18 16:27 ` Paul Hartman
2009-12-18 17:26 ` Marcus Wanner
2009-12-18 18:38 ` [gentoo-user] " Nikos Chantziaras
2009-12-18 21:35 ` Marcus Wanner
2009-12-19 14:08 ` Ronan Mainbourg
2009-12-20 3:40 ` Xi Shen
2009-12-21 17:06 ` Paul Hartman
2009-12-22 5:51 ` Xi Shen
2009-12-18 19:10 ` [gentoo-user] " Paul Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox