Adding `branches' to VuXML

Jacques A. Vidrine nectar at FreeBSD.org
Thu May 6 11:56:50 PDT 2004


On Thu, May 06, 2004 at 07:38:18PM +0200, Frankye - ML wrote:
> Just a little idea.
> 
> Wouldn't be better to put <branch> into the <range> item? I understand
> "branches" might not always be increasing numbers, so this might limit the
> general usefulness of such an idea, but at least in openbsd are (iirc).
> 
> in the example above this would mean:
> 
> <package>
>    <name>foo</name>
>    <range>
>       <branch><le>3.3</le></branch>
>       <le>foo-1.1</le>
>    </range>
> <package>
> 
> It would not add much complexity (I hope it at least :) and we can use the
> added flexibility provided by the various lt, ge, et al.

In general, branches are arbitrary strings, at we cannot count on
them to have any particular ordering.  Happily, they are not usually
numerous, so the utility of <lt> and so forth doesn't buy much.

In fact, I thought that it might be wise to name the new element
<category> rather than <branch>, to reflect that this is really just
one additional way to distinguish different packages.

As for making it a child element of <range>... I don't think that
is a good idea.  Changing the content model of <range> will have
more impact on existing tools than just adding a new element to
<package>/<system>.  It could also multiply the number of <range>
elements required.

> And now, since we're speaking of branches, here comes another silly idea
> of mine: can we use the cvs tags instead of the versions (i.e.: RELENG_4
> or RELENG_4_9) in <branch> items for the freebsd vuln.xml file?
>
> This has no real practical reason whatsoever, but imvho for the historical
> record is better-looking to say "-STABLE and 4.9-RELEASE were affected"
> rather than "this version, which if you go looking for turns out to be the
> -STABLE one, and this other ..."
> (If this has a beneficial effect on the eventual confusion generated by
> the <branch> item, remains to be seen, imho it has not)

I'm not sure what you mean.  The FreeBSD Ports Collection does
not have branches.  Are you referring to the <system> elements
specifically?  I think the information would be redundant, due
to the way release engineering is done today. i.e. RELENG_N_M
always corresponds to FreeBSD N.M-something.  Branch names cannot
replace version numbers, because there is a difference between, say
4.9-RELEASE-p1 (4.9_1) and 4.9-RELEASE-p7 (4.9_7) that cannot be
reflected in the CVS branch name (RELENG_4_9) by its very nature.

But, it's possible I misunderstood what you are suggesting.

It is probably a topic for another thread that there currently isn't
a way to express that a -STABLE or -CURRENT branch is or isn't
affected.  This has to do with the fact that -STABLE and -CURRENT
aren't versioned until there is a release.

> Just my 2 cents

Thanks much!

Cheers,
-- 
Jacques Vidrine / nectar at celabo.org / jvidrine at verio.net / nectar at freebsd.org


More information about the freebsd-vuxml mailing list