[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#686679: RFS: asn1c/0.9.21+dfsg-1 [ITP] -- ASN.1 compiler for C



Hi Eugene,

On 05.09.2012 14:45, Eugene Seliverstov wrote:
> I have some questions about versioning scheme.
> Package is based on latest 0.9.21.dfsg-4 and includes all of these changes.
> But I reseted (maybe incorrectly) a numbering due to use '+dfsg' prefix instead of '.dfsg'. 
> 1. Is it okay to use recommended '+dfsg' prefix?
> According to comparison rules 0.9.21+dfsg-5 is lesser than a 0.9.21.dfsg-4 and ever 0.9.21.dfsg-5.
> Should I keep .dfsg prefix? Does it matter that a package upload is a completely new and would not 
> conflict with already removed asn1c?
> 2. In any case (.dfsg or +dfsg) '-5' debian version should be used, right?


Yes, using +dfsg is acceptable. I haven't checked it, but I'm pretty
sure that the +dfsg variant is more common. That said, keep in mind that
using + or . is not only a stylistic question. It also makes a
difference sometimes.

$ dpkg --compare-versions  1.0 "<<" 1.0.dfsg+1 && echo true
true
$ dpkg --compare-versions  1.0 "<<" 1.0~dfsg+1 && echo true
$ dpkg --compare-versions  1.0 "<<" 1.0+dfsg1 && echo true
true
$ dpkg --compare-versions  1.0 "<<" 1.0+dfsg1 && echo true
true
$ dpkg --compare-versions  1.0 "<<" 1.0~dfsg1 && echo true
$ dpkg --compare-versions  1.0 "<<" 1.0.dfsg1 && echo true
true
$ dpkg --compare-versions  1.0.dfsg1 "<<" 1.0+dfsg1 && echo true
$ dpkg --compare-versions  1.0+dfsg1 "<<" 1.0.dfsg1 && echo true
true

As for you, anything is acceptable which sorts higher than 0.9.21.dfsg-4
(which is in Debian Squeeze), but lower than 0.9.22 or whatever a
hypotetical new upstream version would be. Details about Debian's
version number interpretation can be found at [1].

Note, 0.9.21.dfsg-4 is higher than 0.9.21+dfsg-1, however. If you prefer
a +dfsg notation, you could trick a bit, either by using epochs or fake
version numbers using X.really.Y or something alike.

Regarding your second question: It does not matter (much), as long as
you keep the upstream version as is. Just make sure your choice sorts
later than 0.9.21.dfsg-4.



[1]
http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version
-- 
mit freundlichen Grüßen,
Arno Töll, BSc.
GnuPG Key-ID: 0x9D80F36D

Wavecon GmbH | Ludwigstrasse 2 | 90763 Fuerth
Web: wavecon.de | Mail + Jabber at@wavecon.de

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: