Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13150 - fetch before checking package exists
Summary: fetch before checking package exists
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
: 13180 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-03 06:09 UTC by Peter Gnodde
Modified: 2011-10-30 22:20 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 Peter Gnodde 2003-01-03 06:09:19 UTC
Portage 2.0.46-r4 (and probably the lesser ones as well) will try to fetch the 
source packages of an ebuild, even if there is a precompiled package available 
(build with 'buildpkg' in FEATURES).

The solution seems to be to check if there is a precompiled package in 
$PKGDIR/<category> _before_ fetching the source package from the distrosite.
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-01-03 07:02:04 UTC
Are you using -k or -K ?
if not then this isn't a bug.
Comment 2 Peter Gnodde 2003-01-03 07:46:14 UTC
No, I do not use -k or -K, but I still think it is a bug (or a missing feature, 
if you insist :).

This is the case (using perl as an example):

In make.conf I have 'FEATURES="sandbox ccache buildpkg"', the precompiled 
package for perl-5.6.1-r10 is present, but the source is not (packages are 
shared using NFS and distfiles are regularly cleaned up).

When installing perl on another system, portage downloads the source package 
and after that checks if there is a precompiled package present, it locates it, 
finds it's newer then the ebuild and uses it. So it doesn't use the source 
package _at all_, that's the bug. Why should portage download the source 
package, waisting valuable bandwidth, both for the user and for the mirrors, 
and not use the source package.

I think it's a total waist of diskspace, bandwidth and time to download the 
source package when a precompiled package is already available.
Comment 3 SpanKY gentoo-dev 2003-01-03 17:49:01 UTC
*** Bug 13180 has been marked as a duplicate of this bug. ***
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2003-02-03 06:13:34 UTC
Not a bug. It doesn't.

emerge -K package
forces binaries