Unix Technical Forum

Portage feature

This is a discussion on Portage feature within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> Hello all, Is it possible to have portage doing compile stuff and download stuff at the same time? For ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 05:48 AM
Neptune
 
Posts: n/a
Default Portage feature

Hello all,

Is it possible to have portage doing compile stuff and download stuff at
the same time? For exemple, merging something that require
dependencies to be merged first.

For example: emerge software-xyz will first compile software-a,
software-b and software-c. Here's the timeline:

1. donwload software-a
2. compile software-a
3. donwload software-b
4. compile software-b
5. donwload software-c
5. compile software-c
7. download software-xyz
8. compile software-xyz (goal!)

My question is: is there an option or can developers add a feature to
have this kind of timeline (parallel tasking)?

Download process Compile process
1. download software-a
2. download software-b 1. compile sofware-a
3. download software-c 2. compile sofware-b
4. download software-xzy 3. compile sofware-c
4. compile sofware-xyz



Regards

--
Neptune

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 05:48 AM
Tuukka
 
Posts: n/a
Default Re: Portage feature

Neptune <neptune@nospam.org> wrote:

> Is it possible to have portage doing compile stuff and download stuff at
> the same time? For exemple, merging something that require
> dependencies to be merged first.


Not yet, portage-ng might have this when it's done but for now the
answer is no. You could of course just do "emerge -f <package>" wait few
packeges to finish, and then do "emerge <package> on another
console/xterm. Just remember to give "-f" version of emerge enough time
so that the second emerge process won't start fetching same file.

More sophisticated option is to check out the scripts some people have
posted in gentoo forum.

-Tuukka
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 05:48 AM
Mike Frysinger
 
Posts: n/a
Default Re: Portage feature

On Fri, 05 Dec 2003 13:31:13 +0100, Neptune wrote:

> Hello all,
>
> Is it possible to have portage doing compile stuff and download stuff at
> the same time? For exemple, merging something that require
> dependencies to be merged first.


http://bugs.gentoo.org/show_bug.cgi?id=1661
a quick hack is like Tuuka said:
emerge -f <package> &
<wait a little bit>
emerge <package>
-mike


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 05:48 AM
Jason
 
Posts: n/a
Default Re: Portage feature

That is what I do as well, still, I would't recommend it to someone
who doesn't have a decent idea of how fast certain packages will
compile and how long the source takes to download with your internet
connection. You do not want the building thread to catch the
downloading thread.

I believe that this was proposed to be a feature of portage-ng.

On Fri, 05 Dec 2003 11:14:23 -0500, Mike Frysinger <vapier@gentoo.org>
wrote:

>On Fri, 05 Dec 2003 13:31:13 +0100, Neptune wrote:
>
>> Hello all,
>>
>> Is it possible to have portage doing compile stuff and download stuff at
>> the same time? For exemple, merging something that require
>> dependencies to be merged first.

>
>http://bugs.gentoo.org/show_bug.cgi?id=1661
>a quick hack is like Tuuka said:
>emerge -f <package> &
><wait a little bit>
>emerge <package>
>-mike
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 05:49 AM
Tuukka
 
Posts: n/a
Default Re: Portage feature

Jason <none.of.your.business@see.left.of.at.com> wrote:
> That is what I do as well, still, I would't recommend it to someone
> who doesn't have a decent idea of how fast certain packages will
> compile and how long the source takes to download with your internet
> connection. You do not want the building thread to catch the
> downloading thread.


That's true. A more secure option in that sense would be to use some
script for the purpose. With some effort I found this:
http://forums.gentoo.org/viewtopic.php?p=219446
script from Gentoo forum. It hasn't been updated for a while and has at
least one problem (or more like a feature) that's mentioned on the page.

> I believe that this was proposed to be a feature of portage-ng.


I remember something like that too.

> >a quick hack is like Tuuka said:


"Tuuka" is better than <insert nasty word here> but "Tuukka" is even
better ;-)

-Tuukka
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:32 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com