Re: [gentoo-user] Re: Trying to make portage use "puf" instead of "wget"

2009-12-21 Thread Xi Shen
i always run in root when doing emerge. every thing is ok.


On Tue, Dec 22, 2009 at 1:06 AM, Paul Hartman
 wrote:
> On Sat, Dec 19, 2009 at 8:08 AM, Ronan Mainbourg
>  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?
>
>



-- 
Best Regards,
David Shen

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



Re: [gentoo-user] Re: Trying to make portage use "puf" instead of "wget"

2009-12-21 Thread Paul Hartman
On Sat, Dec 19, 2009 at 8:08 AM, Ronan Mainbourg
 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?



Re: [gentoo-user] Re: Trying to make portage use "puf" instead of "wget"

2009-12-19 Thread Xi Shen
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
 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 
>>
>> 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.mainbo...@gmail.com
>
>



-- 
Best Regards,
David Shen

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



Re: [gentoo-user] Re: Trying to make portage use "puf" instead of "wget"

2009-12-19 Thread Ronan Mainbourg
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 

> 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.mainbo...@gmail.com


Re: [gentoo-user] Re: Trying to make portage use "puf" instead of "wget"

2009-12-18 Thread Marcus Wanner

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



[gentoo-user] Re: Trying to make portage use "puf" instead of "wget"

2009-12-18 Thread Nikos Chantziaras

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.