Re: [gentoo-dev] Re: [gentoo-dev-announce] metadata.xml USE flag descriptions

2008-07-28 Thread Doug Goldstein

Alec Warner wrote:

On Mon, Jul 28, 2008 at 10:51 AM, Ulrich Mueller <[EMAIL PROTECTED]> 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.




Re: [gentoo-dev] Re: [gentoo-dev-announce] metadata.xml USE flag descriptions

2008-07-28 Thread Alec Warner
On Mon, Jul 28, 2008 at 10:51 AM, Ulrich Mueller <[EMAIL PROTECTED]> 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 example (they are all in reverse order now):
>   app-editors/emacs < app-editors/emacs-cvs
>   dev-db/postgresql < dev-db/postgresql-base
>   dev-java/ant < dev-java/ant-tasks
>   x11-libs/qt < x11-libs/qt-core
>
> I think something like "sort -t -k1,1" should do the job.
>
> Ulrich
>
>



[gentoo-dev] Re: [gentoo-dev-announce] metadata.xml USE flag descriptions

2008-07-28 Thread Doug Goldstein

Josh Glover wrote:

2008/7/29 Doug Goldstein <[EMAIL PROTECTED]>:

  

This means it will be YOU QA error if you only commit to use.local.desc from 
here
on out.



Is it possible to update repoman to complain about this? Otherwise,
people are likely to do the wrong thing just out of force of habit.

  
It does... but that would require developers to use the latest 
repoman... which isn't always the case.




Re: [gentoo-dev] Re: [gentoo-dev-announce] metadata.xml USE flag descriptions

2008-07-28 Thread Doug Goldstein

Arun Raghavan wrote:

Doug Goldstein wrote:
> Please make sure you commit any changes to use.local.desc to
> metadata.xml otherwise you risk the chance of having your changes lost.
> I'm currently in the process of converting use.local.desc to
> metadata.xml. After a category is converted, it will be auto-generated
> EXCLUSIVELY from metadata.xml. This means it will be YOU QA error if you
> only commit to use.local.desc from here on out.

Quick howto from IRC logs for those who want to get started:

Copy the stuff to metadata.xml, fix the typos and grammatical issues,
and any package or category references need to be wrapped in  or 



Cheers,
Arun

Just to give an example of the above...

app-cdr/brasero:libburn - Enable libburn backend.

becomes...

   Enable dev-libs/libburn backend






[gentoo-dev] Re: [gentoo-dev-announce] metadata.xml USE flag descriptions

2008-07-28 Thread Arun Raghavan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Doug Goldstein wrote:
> Please make sure you commit any changes to use.local.desc to
> metadata.xml otherwise you risk the chance of having your changes lost.
> I'm currently in the process of converting use.local.desc to
> metadata.xml. After a category is converted, it will be auto-generated
> EXCLUSIVELY from metadata.xml. This means it will be YOU QA error if you
> only commit to use.local.desc from here on out.

Quick howto from IRC logs for those who want to get started:

Copy the stuff to metadata.xml, fix the typos and grammatical issues,
and any package or category references need to be wrapped in  or 

Cheers,
Arun
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkiOD+kACgkQ+Vqt1inD4uz/4gCdHWwzT/AY2n7/gSZmDTxqKM6W
1WcAn1parGcFWW/+VqpuawTbd/ZkjcAu
=f18e
-END PGP SIGNATURE-



[gentoo-dev] Re: [gentoo-dev-announce] metadata.xml USE flag descriptions

2008-07-28 Thread Doug Goldstein

Ulrich Mueller 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.

For example (they are all in reverse order now):
   app-editors/emacs < app-editors/emacs-cvs
   dev-db/postgresql < dev-db/postgresql-base
   dev-java/ant < dev-java/ant-tasks
   x11-libs/qt < x11-libs/qt-core

I think something like "sort -t -k1,1" should do the job.

Ulrich
  
I have yet to touch use.local.desc... so any out of order issues are 
developer's making.


Still debating how I'm going to do it for the time being Attached is 
a generated file from an hour or two ago. It basically needs to be 
combined with the current use.local.desc, with the duplicates in 
use.local.desc removed..




use.local.gen
Description: GENbank data


[gentoo-dev] Re: [gentoo-dev-announce] metadata.xml USE flag descriptions

2008-07-28 Thread Ulrich Mueller
> 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.

For example (they are all in reverse order now):
   app-editors/emacs < app-editors/emacs-cvs
   dev-db/postgresql < dev-db/postgresql-base
   dev-java/ant < dev-java/ant-tasks
   x11-libs/qt < x11-libs/qt-core

I think something like "sort -t -k1,1" should do the job.

Ulrich