Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25108 - distfiles usage statistics
Summary: distfiles usage statistics
Status: RESOLVED DUPLICATE of bug 33877
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage Tools Team
Depends on:
Reported: 2003-07-23 03:22 UTC by Antanas Kompanas
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Antanas Kompanas 2003-07-23 03:22:10 UTC
A lot of distfiles accumulates in distfiles directory over time and it would be
nice that there be some way to know which files are "in use" (there are
installed packages that used this file during build process), when they were
used last time and what is the probability of using it again (will this file be
used again if any package that uses it now is upgraded).

Although probabilities and other heuristics may be hard to implement (and it may
be that they will not be used or particularly interesting) but it should be
trivial to make portage update some database or text file(s) every time a
package is emerged or unmerged. It is crucial that this file/DB be located
directly in the portage tree as it may be shared by more than one machine.

E.g. there could be a file <filename>.usage in distfiles/ or <filename>.txt in
distfiles/usage/ (less comfortable) for each distfile that contained three
lines: the download date, the date of last use ("emerge'nce") and use count
during that period. These lines might not be human-understandable as long as
there were an utility to query the usage in an acceptable way.

Reproducible: Always
Steps to Reproduce:
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-12-28 22:57:58 UTC
Distfiles cleaning tools exist... I wrote one a while ago,
but it needs editing and I think they are named backwards.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2004-03-13 02:25:13 UTC

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