• Handling upstream versioning scheme 2.40c >> 2.40b >> 2.40

    From Andrius Merkys@21:1/5 to All on Wed Feb 23 08:00:01 2022
    Dear Mentors,

    I am maintaining package c2x, which has the following versioning scheme:

    2.40c >> 2.40b >> 2.40

    This is correct order as per 'dpkg --compare-versions'. However, if I
    add '+ds' repack suffix (I need to), the order becomes reversed. Thus
    'uscan' behaves as expected because it knows how to remove the '+ds'
    suffix, but 'dpkg-genchanges' complains:

    dpkg-genchanges: warning: the current version (2.40c+ds-1) is earlier
    than the previous one (2.40+ds-1)

    The naming scheme could be adjusted to add '.' before the letter in
    version string (2.40c -> 2.40.c), but I cannot craft a watch file which
    could perform this.

    Any pointers are welcome.

    Best,
    Andrius

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mattia Rizzolo@21:1/5 to Andrius Merkys on Sun Feb 27 18:30:01 2022
    On Wed, Feb 23, 2022 at 08:53:26AM +0200, Andrius Merkys wrote:
    dpkg-genchanges: warning: the current version (2.40c+ds-1) is earlier
    than the previous one (2.40+ds-1)

    mh, yeah, that one's annoying.

    The naming scheme could be adjusted to add '.' before the letter in
    version string (2.40c -> 2.40.c), but I cannot craft a watch file which
    could perform this.

    I'm not sure if that's the correct answer to your problem, but this
    extra rule seems to work on src:c2x:

    uversionmangle=s#([a-z])$#\.\1#

    --
    regards,
    Mattia Rizzolo

    GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
    More about me: https://mapreri.org : :' : Launchpad user: https://launchpad.net/~mapreri `. `'`
    Debian QA page: https://qa.debian.org/developer.php?login=mattia `-

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEEi3hoeGwz5cZMTQpICBa54Yx2K60FAmIbszAACgkQCBa54Yx2 K601lRAAtikT6ekVCCSQqkaPlpJ8qABTbYR+glsypPaN/vnRqgXzwarnUct8ftdL ck/wTNXPSXp3NMfNMK4gSECjJTUZvKRjzD7nYPUmrR4BT1Rgk56kyKIe5FEM00Cz fipp1xE2AeZ5GP+VsEFRQs+CtZyjMtiMZ+022HZRM9cjGGM69d+Pdrx5cIbHAL5E CQxQaC38RveGDuIPKYg4cbPxQpoRBQEgzC9WQ3JorgTWM4ElH3iKj62x3RnBfsZt Zu48ywixzAdIP4HFRA64mnqlZkjIC9SujnWj8B/QkgK/3ekQutVpEULg4+Cm8Uzz GJ12XtmeFH9WdY28Oet66OR5uzoRoJr5KNMrohNnSQUXzzzOqotfCgryMPAswVPy 4jPvQgpXbwAbnVqkrcX8Z5h2GtqQtTcXRj9rAcsuI7MMmcelPpN3T3XxiOhb+xUK A9OfCt3LCYMnz9er3UMlbR/+KMqoRtf3ozR5stNsCtFAm0p5CZRkqqEor7pc5PTm JbV8qPugnydOiNiwNVgnVoN/GidOLeTXPZu1bwebObcYVTFqhs7
  • From Andrius Merkys@21:1/5 to Mattia Rizzolo on Wed Mar 2 09:10:01 2022
    Hi Mattia,

    On 2022-02-27 19:21, Mattia Rizzolo wrote:
    On Wed, Feb 23, 2022 at 08:53:26AM +0200, Andrius Merkys wrote:
    The naming scheme could be adjusted to add '.' before the letter in
    version string (2.40c -> 2.40.c), but I cannot craft a watch file which
    could perform this.

    I'm not sure if that's the correct answer to your problem, but this
    extra rule seems to work on src:c2x:

    uversionmangle=s#([a-z])$#\.\1#

    This worked, thanks a lot!

    Best wishes,
    Andrius

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)