On Thu, Jun 26, 2008 at 02:43:29PM -0700, Jordan Brown wrote: > Danek Duvall wrote: > >>> Is there a 1.1 version that's different from 1.01? > >> Not yet, nor is there a 1.10 yet. > > > > Though trailing zeroes are significant. That's ten, not a different way of > > writing one. > > Is it? In normal numerical representation, "1.1" and "1.10" are the > same value, while "1.01" is a very different value.
I suspect IPS isn't treating pkg version numbers as reals, but as tuples of integers separated by periods. > I understand the approach you're taking, but reasonable people might use > a more mathematical approach. I bet there's more than a few packages > for which 1.09 is the experimental release immediately before 1.1. > > Forcing a particular version numbering strategy might well be > appropriate, but will need to be documented very clearly. > > What about branching? If you and I are are both independently making > changes to v1.0, traditionally we might reasonably end up with 1.0jb and > 1.0dd, or even 1.0jb-3 or more complex variants. Note that 1.0jb and > 1.0dd can't be compared; there is no newer-older relationship between them. > > I don't have the answers. Version naming is a minefield. I think pkg version numbering should not attempt to mimic the version numbers of the packaged software unless the pkg system can do so with fidelity. If there are good reasons to use integers rather than strings (and some reasons have been given) then simply divorce the two version numbers and provide a separate attribute by which a pkg's manifest can document the version of the underlying software. One good reason to separate pkg and software version numbers is that you might make changes to a package without changing the packaged software at all. Then, if your intention had been to have the pkg version number mimic the packaged software's, how would you encode such a change into the package's version number?? Nico -- _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
