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

Re: Correct version and revision of upstream packaged Debian package



Hi Tuukka,

* Tuukka Pasanen <pasanen.tuukka@gmail.com> [2022-05-20 10:22]:
Currently revision is for example: '10.6.7+maria~buster' which upgrades '10.6.7+maria~bullseye' which is lexical orderly lower than first one.To understand this bug report can be found here: https://jira.mariadb.org/browse/MDEV-28628 which contain more info about how apt works with current situation.

Thing that like to ask should revision it be more like '+maria~deb11' or +mariadeb11. I understood that char '~' means it's build from upstream version control not from official release tag. As I seek for examples there is packages which just add '+' chars in revision when needed extra stuff and then revision is just build number without .
Your understanding is a bit oversimplified, and that is the source
of your confusion. There are two aspects to your question:

For the actual sorting order of debian versions, you can read the
deb-version(5) manpage [1]. The tilde '~' character is special
because it sorts before anything else, even the empty string, but
it has no inherent meaning.

For the meaning of version numbers, there are conventions for
different use-cases. They are designed to create a sane ordering of
versions, so packages update smoothly the way you would expect.

One such convention is the backport suffix ~bpo<N>. The idea is that
you can have a version 1.4 in an old release (let's say Debian 11),
backport version 1.5 from testing, and give it the version
1.5~bpo11. This way, it will be considered newer than any 1.4
package (even 1.4.9999999), but still older than the original 1.5,
so if you ever upgrade your system to the next Debian release, the
backported version will be replaced by the original package
automatically.

Like all conventions, it is somewhat arbitrary, and there are other
schemes that would achieve the same effect. The conventions used in
Debian just happen to be thoroughly tested and work for a wide range
of edge cases.

Cheers
Timo

[1] https://manpages.debian.org/unstable/dpkg-dev/deb-version.5.en.html

--
⢀⣴⠾⠻⢶⣦⠀   ╭────────────────────────────────────────────────────╮
⣾⠁⢠⠒⠀⣿⡁   │ Timo Röhling                                       │
⢿⡄⠘⠷⠚⠋⠀   │ 9B03 EBB9 8300 DF97 C2B1  23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄⠀⠀⠀⠀   ╰────────────────────────────────────────────────────╯

Attachment: signature.asc
Description: PGP signature


Reply to: