1 |
On Fri, 10 May 2002, George Shapovalov wrote: |
2 |
|
3 |
> > it was actually enforced. Here are some outliars that I have found. |
4 |
> I've corrected these two (added description to trusted and got rid of \n for |
5 |
> voodoo3). |
6 |
> |
7 |
Cool. That eliminates my problems with the original format. |
8 |
|
9 |
> I would like to keep file format as simple as possible. It might be needed at |
10 |
> some point to have a very basic function implemented that would be desirable |
11 |
> in barebones system. It is not a good idea to have to include XML parsers |
12 |
> just because one file needs to be parsed (thats the same reason as the one |
13 |
> behind plain-text human readabla/easily parsable format for config files for |
14 |
> majority of the apps). |
15 |
> I think it is just a matter of enforcing certain use.desc format. As it stands |
16 |
> now it can be parsed based on " - " key. I am going to raise this issue and |
17 |
> suggest another separator (dash is used quite frequently in package names and |
18 |
> some times in description). What do you think about "|"? Also ":" might be |
19 |
> more logical, but it can naturally occure in description. |
20 |
|
21 |
I agree completely. My original reasoning for XML was enforcing the |
22 |
formatting and perhaps adding more information. But for my purposes, |
23 |
what is there should be good enough for now. And actually, it doesn't |
24 |
matter if there is a - in the description as long as there aren't any |
25 |
in the use variables themselves. You can split on - and request 2 |
26 |
tokens, which would put the second half, dashes and all, in the second |
27 |
array item. |
28 |
|
29 |
> > I've already written a script that can mine out all optional use |
30 |
> > statements. Adding the functionality to dynamically go backwards |
31 |
> > through the dependancy tree would be trivial. |
32 |
> Nice, could you submit this script to bugs.gentoo.org? |
33 |
|
34 |
Yup, I'll tidy it up, add docs and an ebuild, and ship it off to |
35 |
bugzilla tonight. |
36 |
|
37 |
> > I just wanted to get a sense from all of you out there as to what you |
38 |
> > would vote for as a better standard for keeping a separate list with |
39 |
> > this information, which I or anyone can maintain. It would be really |
40 |
> I do not object the existence of such list. However I think it should not be |
41 |
> hand-maintained. Since you will have a script which will fish for referenced |
42 |
> use variables, better approach would be to have a tool that could generate |
43 |
> this back-reference file per request. My experience with duplicating |
44 |
> information is that things go insane if there is no defined authoritative |
45 |
> entity and in this case collection of ebuilds clearly should take precedence. |
46 |
> BTW similar tool can be used to check validity of use.desc. |
47 |
|
48 |
Good idea. Currently, all the data it gathers _is_ from the ebuilds. |
49 |
That way, the list of use vars it comes up with can be checked against |
50 |
use.desc to make sure use.desc is not missing anything. That should |
51 |
be simple enough to add. I had no intentions of hand maintaining |
52 |
anything :). |
53 |
|
54 |
-- |
55 |
/* |
56 |
* Bob Phan <bob@××××××××××××××××.net,rphan@××××.com> |
57 |
* Computational Chemistry Informatics |
58 |
* Neurogen Corporation |
59 |
* (203)488-8201 x4645 |
60 |
* |
61 |
* To understand recursion, you must first understand recursion. |
62 |
*/ |