Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96593 - Where are those mystical distfiles-* scripts?
Summary: Where are those mystical distfiles-* scripts?
Status: RESOLVED INVALID
Alias: None
Product: Websites
Classification: Unclassified
Component: [OLD] Documentation (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-20 04:00 UTC by Peter Simons
Modified: 2005-06-24 15:47 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 Simons 2005-06-20 04:00:28 UTC
While searching for a script that removes obsolete tar.gz archives from the
distfiles directory, I found this document via Google:

http://www.gentoo.org/proj/en/infrastructure/mirrors/overview-distfile.xml#doc_chap1

It sounds great, but where can I find those scripts?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-20 04:13:41 UTC
What about using app-admin/tmpwatch for this? IIRC there is even an example
shown for exactly this purpose in /etc/cron.daily/tmpwatch. I don't think that
the scripts you are referring to were designed to keep your local distfiles
directory tidy. ;-)
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2005-06-20 08:12:29 UTC
Scripts mentioned in the document you've found are used to clean old distfiles
on Gentoo mirrors.

However, it would be nice if these scripts could be included in portage.
Comment 3 Peter Simons 2005-06-23 03:32:40 UTC
tmpwatch sounds like a nice tool, but it's not quite what I need. I want a
script that removes _obsolete_ packages from /usr/portage/distfiles. Meaning,
when I have foo-1.0.tar.gz and foo-1.1.tar.gz in there, and I have foo 1.1
installed, then I want foo-1.0.tar.gz to be deleted. A while ago, I had a script
that did exactly this, but unfortunately said script stopped working after the
2004.3 release or so. 

If anyone _does_ have a script like that, I'd appreciate it if it could be made
available through portage. 

Aside from all that, I think it is unfortunate that the document I found
explains how to use several scripts _without_ explaining what these scripts are
or where they can be found. It is confusing. IMHO, a short paragraph should be
added to this text which explains what it is about.
Comment 4 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2005-06-24 04:50:12 UTC
You can use http://www.stacken.kth.se/~foo/gentoo/files/distclean-0.2.py

@Peter - this bug definitely doesn't affect Gentoo Infrastructure, nor Gentoo
website, nor Gentoo Documentation.
Comment 5 Peter Simons 2005-06-24 08:45:56 UTC
Thanks for the URL, ph. Is there any chance of getting this script into Portage?

Other than that, I think the bug has something to do with the website because
the particular page I found lacks vital information for it to make any sense. If
I hadn't submitted this bug report, I wouldn't have any idea what it is about.
So IMHO there is room for improvement.
Comment 6 Lance Albertson (RETIRED) gentoo-dev 2005-06-24 08:58:09 UTC
This isn't infra related.
Comment 7 Simon Stelling (RETIRED) gentoo-dev 2005-06-24 14:52:52 UTC
> I hadn't submitted this bug report, I wouldn't have any idea what it is about.
> So IMHO there is room for improvement.

That's probably because this document is for devs. I think title already says
it: "Overview of our Distfile mirroring system". It doesn't have anything to do
with your local /usr/portage/distfiles.
Comment 8 Matthew Kasa (RETIRED) gentoo-dev 2005-06-24 15:47:20 UTC
(In reply to comment #3)
> Aside from all that, I think it is unfortunate that the document I found
> explains how to use several scripts _without_ explaining what these scripts are
> or where they can be found. It is confusing. IMHO, a short paragraph should be
> added to this text which explains what it is about.

Please note this is an INFRASTRUCTURE document, and therefore is not meant for
general users, it is meant only for mirror admins.

As an aside, this forums thread has 6 pages worth of posts containing tens of
different implementations of a distfiles cleaner:
http://forums.gentoo.org/viewtopic-p-12786.html

Closing as invalid, feel free to file a request to the tools-portage herd.