Gentoo Archives: gentoo-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Proposal to end-of-life tree-clean old profiles/updates/ files
Date: Thu, 03 Jan 2013 01:06:10
Message-Id: 50E4D955.5080004@gentoo.org
In Reply to: Re: [gentoo-dev] Proposal to end-of-life tree-clean old profiles/updates/ files by Brian Dolbec
1 On 01/02/2013 02:46 PM, Brian Dolbec wrote:
2 > On Mon, 2012-12-10 at 08:59 +0100, Ulrich Mueller wrote:
3 >>>>>>> On Mon, 10 Dec 2012, Sergei Trofimovich wrote:
4 >>
5 >>> gentoo-x86/profiles/updates $ LANG=C ls -1 --sort=time
6 >>> [long list omitted]
7 >>
8 >>> old entries are done in different context (comparing to 2012):
9 >>
10 >>> - some packages change names 2 or 3 times
11 >>> - slots have different meaning
12 >>
13 >>> moreover:
14 >>
15 >>> - if you set your PORTDIR to different directory you'll get all
16 >>> that full update. And will break the system. Old profile entries
17 >>> used to break eclass-manpages and latex-base (due to double
18 >>> renaming)
19 >>
20 >> It's worse: Bad entries in the old files may go unnoticed for a long
21 >> time. But if such a file is updated for whatever reason, it will be
22 >> reprocessed on users' systems, including any bad entries contained in
23 >> it.
24 >>
25 >>> Thus the reason for removal is simple: old entries are potentially
26 >>> buggy as nobody verifies them.
27 >>
28 >> I wouldn't even know how to verify them.
29 >>
30 >> Let's remove that cruft. We can be extra conservative and keep five
31 >> years of backlog (i.e. everything from before 2008 would be removed
32 >> now).
33 >>
34 >> Ulrich
35 >>
36 >
37 > OK, that seems to be some very good reasons to tree-clean them.
38 >
39 > What's our next step?
40
41 It might be nice to document the removal policy in the developer
42 handbook, devmanual, or something.
43
44 > Tree-cleaners, does this fall into your department?
45
46 That seems fitting.
47
48 > Or should I prepare a list of files and/or updates to clean?
49
50 This command seems to do the trick:
51
52 $ ls -1 /usr/portage/profiles/updates/ | grep -Ev '(08|09|10|11|12|13)$'
53 1Q-2004
54 1Q-2005
55 1Q-2006
56 1Q-2007
57 2Q-2004
58 2Q-2005
59 2Q-2006
60 2Q-2007
61 3Q-2004
62 3Q-2005
63 3Q-2006
64 3Q-2007
65 4Q-2004
66 4Q-2005
67 4Q-2006
68 4Q-2007
69
70
71 --
72 Thanks,
73 Zac

Replies