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 pkg or 
cat


Cheers,
Arun

Just to give an example of the above...

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

becomes...

   flag name='libburn'Enable pkgdev-libs/libburn/pkg backend/flag






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





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.