Just get rid of the sid name
Just get rid of the sid name
Posted Aug 11, 2024 23:30 UTC (Sun) by zblaxell (subscriber, #26385)In reply to: Just get rid of the sid name by bluca
Parent article: Distinguishing Debian testing from unstable
I don't disagree that there are emerging uses. I assert that we should write down what they are before discussing even the tiniest effort to support them, so that we don't accidentally commit to fictional requirements.
Remember, the specification you provided as a reference is _empty_ wrt CODENAME.
LSB 1.0, which holds the earliest definition of the CODENAME concept, was released in summer 2001 (Debian had a testing branch before that). It would be another year before LSB extended the definition of CODENAME to "a single line of text," and 14 years before LSB finally clarified "This specification assigns no meaning to the value of the string, the contents are at the discretion of the distribution provider". When this was copied into the os-release spec in systemd a year later, the (empty) semantic meaning of the text was removed from the spec, but the string was made optional.
So if you're talking about specifications, CODENAME is a meaningless string that can have any value, including the empty value (which both Fedora/Rawhide and Arch use). The only rule is that it must consist of a subset of printable UTF8 characters. There isn't even informative text suggesting that the name might be unique (it might be implied by 'identity' but that term isn't defined). According to the letter of the spec, 'trixie' is a valid CODENAME for absolutely any instance of Linux whose distributor chooses to apply it to their own output.
Obviously you have some different idea in your head, but you're not writing it down or answering clarifying questions, so we have to bounce signals off your brain and interpret the echoes for meaning. Some of those echoes are complex, noisy distractions, like pointers to empty standards or potentially dodgy mkosi configurations.
As far as I can tell from scraping all the text, you have a mental model that says if you run these commands today:
"debootstrap testing testing >/dev/null 2>&1 && sed -n 's/^VERSION_CODENAME=//p' < testing/etc/os-release" should print "trixie" (it would start printing "forky" some day in the future)
"debootstrap unstable unstable >/dev/null 2>&1 && sed -n 's/^VERSION_CODENAME=//p' < unstable/etc/os-release" should always print "sid".
This is a test case, but requirements can be reverse engineered from it easily enough. The archive maintainers will know well enough how to make this happen, there are viable proposals already on the mailing list.
Behind all the layers of indirection, the main (only? most important? moderately relevant?) use case of this is to build one ephemeral Debian image to interact with an existing Debian image of similar vintage but different options. The eventual incompatibility of the referring and referred objects does not matter because one side of the referral relation is explicitly short-lived by the definition of this use case.
The code behind this use case on Debian is all very Debian-specific (this answers one of the questions I had, how could the tools not be filled with Debian-specific code? They are!). That code is buried inside tools that abstract away all details but the single words "Debian" and "$VERSION_CODENAME". So there are still Debian-specific binaries and scripts--they cannot possibly be avoided--but those tools want to interact with their users only through the CODENAME identity, and can only function with distinct CODENAMEs for popular package manifests.
Compatibility with Ubuntu (which doesn't have the "testing" node in its CI pipeline, so its CODENAMEs are unique) is an important beneficial side-effect.
For the DDI files, I guess all you want is to plug systemd-dissect into one of the above commands in place of debootstrap, point it at an image made from debootstrap, and get the expected trixie or sid values. And then all the variations with other image creation and manipulation tools.
> The identify of an image doesn't change because some of its content does. What you find under https://ftp.debian.org/debian/dists/bookworm/ is bookworm, even if it gets updates and changes at some point, and even if other archives have very similar contents. Same for everything else, including sid and trixie.
If apt sources.list says "https://ftp.debian.org/debian/ stable main" (the "rolling stable" configuration) and the user runs dist-upgrade every day, then CODENAME definitely does change sometimes (when base-files gets upgraded). I assume you don't actually think it shouldn't change in that case, but what you wrote doesn't account for this possibility. Similar for a system configured to pull from "testing", its CODENAME should change from time to time.
This update also discussed in the os-release spec, but only mentioned in connection to VERSION_ID ("if updates eventually completely replace previously installed contents, as in a typical binary distribution, VERSION_ID should be used to identify major releases").
So in summary, the core of the disagreement is: Debian currently implements the spec correctly, but you don't believe in what the spec says. You want Debian to implement a Debian-specific extension on top (or fix the spec so that it defines nicer things, but that sounds like a cross-distro consensus nightmare).
