[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: Re: [gentoo-dev] Re: [gentoo-dev-announce] metadata.xml USE flag
From: Doug Goldstein <cardoe () gentoo ! org>
Date: 2008-07-28 21:48:23
Message-ID: 488E3EA7.6060600 () gentoo ! org
[Download RAW message or body]
Alec Warner wrote:
> On Mon, Jul 28, 2008 at 10:51 AM, Ulrich Mueller <ulm@gentoo.org> wrote:
>
>>>>>>> On Mon, 28 Jul 2008, Doug Goldstein wrote:
>>>>>>>
>>> After a category is converted, it will be auto-generated EXCLUSIVELY
>>> from metadata.xml.
>>>
>> A minor issue: use.local.desc is not sorted properly anymore.
>> It should be sorted by category/package first, then by the USE flag.
>>
>
> I wrote the script that generates the new files.
>
> It reads categories from $REPO_DIR/profiles/catogories
> Then per category it runs down each package in os.listdir() order.
>
> The use flags are output on a first-come-first-serve basis.
>
> The script could possibly sort entries (sort categories; sort listdir
> output, keep per-package use flags in memory and sort them). File a
> bug to me if you want this.
>
> -Alec
>
>
For everyone else...
http://sources.gentoo.org/viewcvs.py/gentoo/users/antarus/projects/infra/
I'm currently generating my own categories file from the completed
categories list in use.local.desc
$ cat /usr/portage/profiles/use.local.desc | sed '1,/# The following
categories/d;/# End of metadata categories/,$d' | wc -l
34
$ cat /usr/portage/profiles/use.local.desc | grep -v '^#' | cut -d '/'
-f 1 | sort -u | wc -l
132
Which means we've got just over 25% of the tree converted.. good job all.
Here are the following steps that I'm doing to generate use.local.desc
currently..
$ cat use.local.desc | sed '1,/# The following categories/d;/# End of
metadata categories/,$d;s/^../^/' > tmp.categories
$ grep -v -f tmp.categories use.local.desc | grep -v '^#' >
tmp.use.local.desc
$ cat tmp.categories | cut -d '^' -f 2 > tmp.categories
$ use_desc_gen --repo_path ~/work/gentoo-x86/ --category_path
tmp.categories >> tmp.use.local.desc
$ grep '^#' use.local.desc > use.local.desc
$ cat tmp.use.local.desc | sort -t ' ' -k1,1 >> use.local.desc
$ cvs commit -m "generated use.local.desc" use.local.desc
Currently step 4 is hindered by bugs #233208 & #233212
https://bugs.gentoo.org/show_bug.cgi?id=233208
https://bugs.gentoo.org/show_bug.cgi?id=233212
If anyone has any suggestions for an improved workflow while we work to
convert the other 75% of the tree, feel free to speak up.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic