1 |
Alec Warner wrote: |
2 |
> On Mon, Jul 28, 2008 at 10:51 AM, Ulrich Mueller <ulm@g.o> wrote: |
3 |
> |
4 |
>>>>>>> On Mon, 28 Jul 2008, Doug Goldstein wrote: |
5 |
>>>>>>> |
6 |
>>> After a category is converted, it will be auto-generated EXCLUSIVELY |
7 |
>>> from metadata.xml. |
8 |
>>> |
9 |
>> A minor issue: use.local.desc is not sorted properly anymore. |
10 |
>> It should be sorted by category/package first, then by the USE flag. |
11 |
>> |
12 |
> |
13 |
> I wrote the script that generates the new files. |
14 |
> |
15 |
> It reads categories from $REPO_DIR/profiles/catogories |
16 |
> Then per category it runs down each package in os.listdir() order. |
17 |
> |
18 |
> The use flags are output on a first-come-first-serve basis. |
19 |
> |
20 |
> The script could possibly sort entries (sort categories; sort listdir |
21 |
> output, keep per-package use flags in memory and sort them). File a |
22 |
> bug to me if you want this. |
23 |
> |
24 |
> -Alec |
25 |
> |
26 |
> |
27 |
For everyone else... |
28 |
|
29 |
http://sources.gentoo.org/viewcvs.py/gentoo/users/antarus/projects/infra/ |
30 |
|
31 |
I'm currently generating my own categories file from the completed |
32 |
categories list in use.local.desc |
33 |
|
34 |
$ cat /usr/portage/profiles/use.local.desc | sed '1,/# The following |
35 |
categories/d;/# End of metadata categories/,$d' | wc -l |
36 |
34 |
37 |
|
38 |
$ cat /usr/portage/profiles/use.local.desc | grep -v '^#' | cut -d '/' |
39 |
-f 1 | sort -u | wc -l |
40 |
132 |
41 |
|
42 |
Which means we've got just over 25% of the tree converted.. good job all. |
43 |
|
44 |
Here are the following steps that I'm doing to generate use.local.desc |
45 |
currently.. |
46 |
|
47 |
|
48 |
$ cat use.local.desc | sed '1,/# The following categories/d;/# End of |
49 |
metadata categories/,$d;s/^../^/' > tmp.categories |
50 |
$ grep -v -f tmp.categories use.local.desc | grep -v '^#' > |
51 |
tmp.use.local.desc |
52 |
$ cat tmp.categories | cut -d '^' -f 2 > tmp.categories |
53 |
$ use_desc_gen --repo_path ~/work/gentoo-x86/ --category_path |
54 |
tmp.categories >> tmp.use.local.desc |
55 |
$ grep '^#' use.local.desc > use.local.desc |
56 |
$ cat tmp.use.local.desc | sort -t ' ' -k1,1 >> use.local.desc |
57 |
$ cvs commit -m "generated use.local.desc" use.local.desc |
58 |
|
59 |
Currently step 4 is hindered by bugs #233208 & #233212 |
60 |
|
61 |
https://bugs.gentoo.org/show_bug.cgi?id=233208 |
62 |
https://bugs.gentoo.org/show_bug.cgi?id=233212 |
63 |
|
64 |
If anyone has any suggestions for an improved workflow while we work to |
65 |
convert the other 75% of the tree, feel free to speak up. |