Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129955 - Download while compiling by default
Summary: Download while compiling by default
Status: RESOLVED DUPLICATE of bug 1661
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-14 08:50 UTC by Sean Crago
Modified: 2006-04-14 12:41 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Crago 2006-04-14 08:50:35 UTC
I don't know how best to implement this, but I'd think the easiest way to do it is to fork off a new process.

First process checks to see if the needed files exist to process X.ebuild.  If they don't, it sits and waits for the child process to finish downloading them.  Then, while X.ebuild is being processed, the child process is downloading the requisite files for Y.ebuild, Z.ebuild, et al.  If X.ebuild happens to be a perl script, Y might have to pause for a bit while its files download, but at least you'd have a head start.  Plus, this would almost never happen after the third or fourth download (ie. initial install [of system, of kde-base, etc], after a day with many fixes, or updating 'world' on a machine that you don't want to update via a cronjob).

This would cut the compile time on a new system dramatically.

And no, Mr. "I like turning off feature requests", emerge -f is not adequate.  It's mighty close, but it doesn't happen in sync.  Ease of use before KISS.  There'd be nothing lost by implementing this.

Heck, even just forking off emerge -f with all the args fed to emerge initially would do the trick.
Comment 1 UncleOwen 2006-04-14 08:58:58 UTC
FEATURES="parallel-fetch" exists.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-04-14 09:00:19 UTC
FEATURES="parallel-fetch" in portage-2.1 does exactly that.

*** This bug has been marked as a duplicate of 1661 ***

*** This bug has been marked as a duplicate of 1661 ***
Comment 3 Sean Crago 2006-04-14 12:41:13 UTC
There was one thing different between this and the other bug mentioned.

The word "default".

Why isn't parallel-fetch enabled by default?