public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: George Shapovalov <georges@its.caltech.edu>
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] Parsable list of all use variables.
Date: Thu, 9 May 2002 15:13:08 -0700	[thread overview]
Message-ID: <200205091513.08657.georges@its.caltech.edu> (raw)
In-Reply-To: <Pine.LNX.4.21.0205091712060.11805-100000@lucifer.evil-core.com>

Isn't there one already?
/usr/portage/profiles/use.desc

The format cannot be simpler:
usevar - description
Is there any problem with parsing that? Even cut -d "-" would do it (not to 
mention awk and python).
This list is not enforced at present (that is if usevar is not listed there it 
will still be considered valid), but that can change at any moment.

As for the list of packages that use that var: that is going to be the largest 
problem. This tends to be very dynamic, also I would be hesitant to put that 
into use.desc as this will overload it (however technically this is very 
simple: just add one more delimeter and then list packages using this var 
(whitspace or comma separated))
There was a discussion on introducing IUSE into ebuilds which is supposed to 
list all use var that ebuild references. However there was not much activity 
on that. Also it is just possible to scan ebuild for "use XX" clauses and 
thus extract all referenced usevars.
I guess my point is that such back-reference list of packages referencing 
usevars can easily be dynamically reconstructed, and that I think is better 
solution than hand-maintained list.

George


On Thursday 09 May 2002 10:16, Bob Phan wrote:
> On Thu, 9 May 2002, Francisco Gimeno wrote:
> > and... going on work... we could make the same to the commands of the
> > ebuild packages, like dodir, doins, and those... to get them
> > well-documented and in an ordered way...
>
> I don't follow?  The goal isn't to make an xml ebuild, as I rather
> like them as shell scripts and it lowers the bar a little for people
> that wan't to start writing their own.  The design goels for what I
> suggested, is basically a way to keep track of all currently used USE
> vars.  And basically, three things are important about each.
>
> 1) What they are called.
> 2) What they mean.
> 3) Which packages use them.
>
> I think it would be a valuable resource to have a maintainable and
> parsable list of these.  As it stands, I already have a perl script
> that can dig out 1 & 2 and dump them into XML.  I'm going to tidy it
> up a bit and probably post it to this group.



  parent reply	other threads:[~2002-05-09 22:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-09 16:06 [gentoo-dev] Parsable list of all use variables Bob Phan
2002-05-09 20:27 ` Francisco Gimeno
2002-05-09 20:50 ` Francisco Gimeno
2002-05-09 17:16   ` Bob Phan
2002-05-09 21:25     ` Francisco Gimeno
2002-05-09 22:13     ` George Shapovalov [this message]
2002-05-10  9:47       ` Bob Phan
2002-05-10 19:31         ` George Shapovalov
2002-05-10 16:50           ` Bob Phan
2002-05-10 21:50             ` George Shapovalov
2002-05-11 23:58         ` Karl Trygve Kalleberg
2002-05-13 13:31           ` Bob Phan
2002-05-13 22:21             ` George Shapovalov
2002-05-13 14:14           ` Bob Phan
2002-05-13 18:19             ` Karl Trygve Kalleberg
2002-05-10 18:10       ` [gentoo-dev] ebuilds & suid question Alastair Nicol
2002-05-10 16:50         ` Grant Goodyear
2002-05-10  8:31 ` [gentoo-dev] Parsable list of all use variables Karl Trygve Kalleberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200205091513.08657.georges@its.caltech.edu \
    --to=georges@its.caltech.edu \
    --cc=gentoo-dev@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox