Gentoo Archives: gentoo-dev

From: "José Fonseca" <j_r_fonseca@××××××××.uk>
To: Nils Ohlmeier <lists@××××××××.de>
Cc: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Script to clean old files from /usr/portage/distfiles
Date: Tue, 12 Nov 2002 17:57:28
Message-Id: 20021112175659.GA1575@localhost.localdomain
In Reply to: Re: [gentoo-dev] Script to clean old files from /usr/portage/distfiles by Nils Ohlmeier
1 On Tue, Nov 12, 2002 at 04:37:39PM +0100, Nils Ohlmeier wrote:
2 > First of all great script. I was thinking about such a script a long time but
3 > didn't find the time to do it myself. (And if i did it, it wouldn't be such a
4 > good scipt :-)
5 >
6 > Feedback / Corrections:
7 [...]
8 > I think there is an error in the script in line 53. I changed /tmp/$0.XXXXX
9 > into /tmp/$PROGRAM.XXXXX and then the result looks like this:
10 >
11
12 Thanks, applied.
13
14 > cloudcity sbin # distfiles-clean -p
15 > sed: can't read /var/cache/edb/dep/sys-kernel/linux-headers-2.4.19: No
16 > such file or directory
17 > alsa-lib-0.5.10b.tar.bz2
18 > gaim-0.59.3.tar.bz2
19 > j2sdk-1_4_1_01-linux-i586.bin *
20
21 Unfortunately there is nothing one can do to know that the
22 j2sdk-1_4_1_01-linux-i586.bin is used by sun-jdk-1.4.1.01.ebuild because
23 it isn't listed there (SRC_URI=""). The only solution is have an option
24 to pass a file with a list of wildcards of the packages wich should be
25 left alone, for these situations.
26
27 > kde-i18n-3.0.4.tar.bz2 *
28 > kde-i18n-gentoo.patch *
29
30 Strange, these two files are listed on
31 /var/cache/edb/dep/app-i18n/kde-i18n-3.0.4 in my system. Aren't they
32 there in yours too? If not, see if doing
33
34 ebuild /usr/portage/app-i18n/kde-i18n/kde-i18n-3.0.4.ebuild depend
35
36 helps.
37
38 > rp8_linux20_libc6_i386_cs2_rpm *
39
40 rp8_linux20_libc6_i386_cs2_rpm isn't a full URI with slashes '/' so it
41 was being considered as junk by the script. It should be fixed now.
42
43 > I marked the packets which are installed with an *. So removing of
44 > this would be to much :)
45
46 Try again, with the script from
47 http://mefriss1.swan.ac.uk/~jfonseca/chest/gentoo/distfiles-clean [to
48 avoid flood everybody inbox with more attachments], by doing
49
50 distfiles-clean -p -i ignorelist
51
52 where ignorelist is a file containing
53
54 j2sdk-*.bin
55
56 plus anything else you want.
57
58 Regards,
59
60 José Fonseca
61 __________________________________________________
62 Do You Yahoo!?
63 Everything you'll ever need on one web page
64 from News and Sport to Email and Music Charts
65 http://uk.my.yahoo.com
66
67 --
68 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Script to clean old files from /usr/portage/distfiles Nils Ohlmeier <lists@××××××××.de>