1 |
On 25 June 2011 23:55, Maciej Mrozowski <reavertm@×××××.com> wrote: |
2 |
> |
3 |
> IMHO the best approach is to forget about categories and: |
4 |
> |
5 |
> - make package names unique identifiers (it's not that hard, renaming stuff in |
6 |
> app-xemacs mostly) - categories would serve no purpose as id anymore (though |
7 |
> may need to be provided as backward compatibility - but with symlinks to |
8 |
> ebuilds/${PN} inside) |
9 |
|
10 |
|
11 |
I think something else that may be important to consider if one is |
12 |
eliminating category directories is how we'll replace the utility |
13 |
currently provided by category/metadata.xml |
14 |
|
15 |
Some things are simply grossly impractical to maintain individual |
16 |
metadata.xml for reliably due to volume ( ie: dev-perl/* , last I |
17 |
looked, the metadata.xml in there presently is largely copy-pasted |
18 |
between dists ) |
19 |
|
20 |
Perhaps we need a new way to apply metadata to a whole host of packages? |
21 |
|
22 |
Also, categories have extra use for simple convenience of their native |
23 |
groupings, ie: I've been known to set USE flags/KEYWORDS that apply to |
24 |
an entire category. Trying to make useflags apply to all packages |
25 |
with a given tagset would be comparatively messy. |
26 |
|
27 |
categories also make it easy to do Naïve iteration of packages |
28 |
efficiently, ie: for the most part, if you want to iterate all |
29 |
perl-modules, you just need to iterate dev-perl and perl-core , and |
30 |
that is all, you're not bogged down by stepping into all the other |
31 |
categories, loading all their files and working out whether or not |
32 |
they're perl related. ( Yes, I am aware this has its own caveats, but |
33 |
if you know of these caveats and they're acceptable to your task, then |
34 |
its fine ) |
35 |
|
36 |
the 'virtuals' category also is a bundle of fun. I really do not want |
37 |
to see virtuals identified only by whatever their unique-idenitifier |
38 |
might be and the tag 'virtual'. Yuck. |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
-- |
44 |
Kent |
45 |
|
46 |
perl -e "print substr( \"edrgmaM SPA NOcomil.ic\\@tfrken\", \$_ * 3, |
47 |
3 ) for ( 9,8,0,7,1,6,5,4,3,2 );" |
48 |
|
49 |
http://kent-fredric.fox.geek.nz |