GCC pre-releases and venerable traditions
GCC pre-releases and venerable traditions
Posted May 22, 2025 15:25 UTC (Thu) by sammythesnake (guest, #17693)In reply to: GCC pre-releases and venerable traditions by jwakely
Parent article: Some __nonstring__ turbulence
E.g. there's foo-1.8 in stable, foo-2.0~bp1 in backports, and foo-2.0 in testing. When the next stable release of Debian happens, foo-2.0 will be considered a "newer" version than foo-2.0~bp1 and installed preferentially.
Typically, the last backports version is identical with the new stable version except for being compiled against (and declaring dependencies on) the older libraries available in stable.
Conceptually, it's like having a patch version number of "-1" which naturally sorts earlier than a patch version of "0" (i.e. foo-2.0~bp1 sorts like 2 point 0 point -1 point (bp)1 < 2 point 0 point 0)
I like the semantics of this approach, but it does require that whatever is sorting version numbers understands what the tilde means and isn't really a widespread enough idiom for that be be something one can assume in general.
