|
|
Log in / Subscribe / Register

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

> It's really not. The number of ways a universally present implementation of a generic specification is used is essentially endless.

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).


to post comments

Just get rid of the sid name

Posted Aug 12, 2024 15:07 UTC (Mon) by bluca (subscriber, #118303) [Link] (2 responses)

> 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.

Your assertion is ~12 years too late I'm afraid. os-release is already the standard for cross-distro identification of OS vendor trees, and has been for a long time now.

> Remember, the specification you provided as a reference is _empty_ wrt CODENAME.

Perhaps you should check again? It's not empty at all, it is definitely exactly as it needs to be, and among the examples it lists it even uses one of Debian's: https://www.freedesktop.org/software/systemd/man/devel/os...

Of course, if you have ideas on how to make it better, please send a PR. As always, talk is cheap, but actually producing something of value is hard, so I will not hold my breath.

> 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.

I have no idea what you are trying to do here, but it is most definitely not "asking clarifying questions". There are a few things that are very clear: you came here with a pre-existing, strong opinion about all of this, and also you have never worked on anything related to any of this. Both of which are ok of course, but you should really get off that high horse you decided to climb on.
And a tip for the next time: when you are trying to style yourself as a neutral and concerned observer, you might want to avoid snarky comments such as these. Your replies are quite transparent already, but these really give the game away.

> As far as I can tell from scraping all the text

Unfortunately, you aren't managing to tell very well, and your comments are quite detached from reality. I'll just quickly highlight the points that are most wrong in case you want to try again - but really, I'd advise not to, as there's no point in this armchair engineering.

> to build one ephemeral Debian image to interact with an existing Debian image of similar vintage but different options.

This is very wrong, and that's not at all what happens, in fact it's the exact opposite

> The code behind this use case on Debian is all very Debian-specific

It is very much not, it runs on multiple versions of half a dozen distros

> 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

Not at all. Debootstrap is one of dozens of different and independent image builders, and dissecting is just for inspection, usage varies tremendously, and there are many other consumers.

> 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).

Of course, as that's an alias. When the major version changes, the distro is updated. Whether that happens automatically, or manually, is perfectly irrelevant and has nothing to do with any of the points raised. I could use the codenames and have an entirely automated dist-upgrade process anyway, and it wouldn't be any different from the point of view of os-release and its usage.

> 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).

Not quite. The accurate summary is: Debian currently implements the spec correctly everywhere, apart from sid, where the implementation is buggy. I wanted Debian to fix the buggy implementation of this one case, so that it matches the rest of Debian's usage, which is correct.

Just get rid of the sid name

Posted Aug 13, 2024 5:02 UTC (Tue) by zblaxell (subscriber, #26385) [Link] (1 responses)

> I have no idea what you are trying to do here

Initially I was trying to understand why your ideas are meeting so much resistance. I now understand this through lived experience.

Then I moved onto a second goal, which is to help you understand why your ideas are meeting so much resistance.

Other goals were to head off a Debian change that might break stuff I rely on, or start a tsunami of new bugs I'll have to respond to. After reading the other comments and mailing list, and finally grasping what your ideas actually are, I'm confident these risks are low.

> > The code behind this use case on Debian is all very Debian-specific
> It is very much not, it runs on multiple versions of half a dozen distros

I don't know why you'd challenge me on this point. I'm looking directly at the code, and following VERSION_CODENAME as it travels through the code from your own examples. It ends up in hundreds of lines of python or shell code which will fall on its face if it finds itself running on Fedora, Arch, or even Ubuntu. At one point in the middle it goes _through_ distro-agnostic code but it's an hourglass, distro-specific at both ends and agnostic in the middle.

You might be conflating some other use case with the one I've extracted from your examples and getting into the weeds on extra details. This isn't necessary, as you've already convinced me that at least one use case worth supporting exists. I only needed one.

> > 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
> Not at all. Debootstrap is one of dozens of different and independent image builders, and dissecting is just for inspection, usage varies tremendously, and there are many other consumers.

The very next sentence, which you didn't quote, is "And [also] all the variations with other image creation and manipulation tools."

> > to build one ephemeral Debian image to interact with an existing Debian image of similar vintage but different options.
> This is very wrong, and that's not at all what happens, in fact it's the exact opposite

The opposite is an ephemeral Debian image that builds a non-ephemeral one? OK, that works too. I put that restriction in there to eliminate cases where two images interacting with each other are persistent, as that's a different use case with potential extra dependency issues, and I wanted to save time by excluding it from discussion because it's a magnet for objections. I only needed one use case, so I won't ask for further details or examples.

> Perhaps you should check again? It's not empty at all, it is definitely exactly as it needs to be, and among the examples it lists it even uses one of Debian's: https://www.freedesktop.org/software/systemd/man/devel/os...

Also your words, in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1077764#43

> With my upstream spec maintainer hat on, I am asserting that the base-files implementation of the os-release specification is buggy. The crux of the issue is that the way base-files implements the specification does not allow to distinguish testing vs unstable images

Please point to the line(s) in the spec which specify when Debian archives should be labelled with distinct VERSION_CODENAMEs, with particular emphasis on non-release-oriented contexts like testing and unstable. I have read both versions of os-release spec you pointed to so far, the git histories, the rationale blog post, and their LSB ancestor, and explained what I did and didn't find there.

As the self-described upstream spec maintainer, you should be able to do this easily, since it's your spec and it's the basis on which your own complaint about Debian rests. If you can't, then that's your problem, to solve or ignore as you see fit. I am willing to make the effort to point this out to you, but not to babysit you through solving every issue I find in your work.

> Your assertion is ~12 years too late

I'd say it's maybe 25 or more years too late, since Debian's structure is older than the very first version of the spec's earliest direct ancestor.

The LSB (described in the announcement as the ancestor of os-release) dates back to 2001, but it's still years newer than Debian's current arrangement (ignoring the changing location of the VERSION_CODENAME data over the years, the project's stance on whether testing or unstable have release events that trigger distinct metadata changes is not new). I know this first-hand because I've been working with, on, under, and around Debian's build system, and several other build systems (including several of my own design), for nearly 30 years now.

I do have a bias: most of the build systems I've worked with are cross-building systems where the build and test environments are both strictly defined and controlled by the build framework, and isolated from each other and the host system. Before this week it would never occur to me to get information about the target environment from introspection of the build host (i.e. reading os-release and mapping that to external objects) as that information would be pushed down from higher layers of the build framework. I admit I do seem to live in a world where looking at a functional equivalent of os-release/VERSION_CODENAME for this purpose is considered an antipattern, and it took a few tries to wrap my head around how things could work in a world where it's not. Thanks for your patience while I went through that.

> Debian currently implements the spec correctly everywhere, apart from sid, where the implementation is buggy

The implementation is not buggy until the spec says it is. Inconvenient, certainly. Undesirable, probably. But say it's "buggy", and people will question the correctness of your premise without further considering the merits of your argument, as you've already...I was going to say "noticed", but maybe "discovered" is more accurate.

To be clear, after discussing with you, I'm now in favor of making unstable's CODENAME distinct from testing, despite the changes to decades-old legacy behavior that technically complies with specification you have pointed to so far. (I'm also OK with Debian deferring that change until the next release cycle in case it does blow up something obscure). The kindest thing I can say about the current Debian behavior is that it's a legacy feature that does not conflict with the current letter of the spec, and that's very faint praise.

Just get rid of the sid name

Posted Aug 13, 2024 13:39 UTC (Tue) by bluca (subscriber, #118303) [Link]

> Initially I was trying to understand why your ideas are meeting so much resistance. I now understand this through lived experience.
> Then I moved onto a second goal, which is to help you understand why your ideas are meeting so much resistance.

Except of course they aren't: literally every distribution under the sun, for all their releases is doing this (apart from a single version of one, for now). Also, they are not "my ideas", this is all pre-existing - even in Debian, the first bug raised flagging the buggy implementation was in 2012, a full 4 years before I started getting involved at all. "For some value of 'understand'", I guess?

> Other goals were to head off a Debian change that might break stuff I rely on, or start a tsunami of new bugs I'll have to respond to. After reading the other comments and mailing list, and finally grasping what your ideas actually are, I'm confident these risks are low.

What bugs?

> I don't know why you'd challenge me on this point.

Because you are writing descriptions that are plainly wrong, about thing that you do not work on. Again I do not understand why you are insisting on trying to badly define things that you have nothing to do with, that you never used, you never worked with or on, that you never saw before, and that you'll never see again. If you don't care, and you obviously don't, just... don't? Nobody asked you to do any of that? I get it, you strongly dislike all of this - that's ok, just say it and move on

> Please point to the line(s) in the spec which specify when Debian archives should be labelled

Why should Debian be specially called out?! Sorry, but this is making less and less sense. This is a distro-agnostic specification, it's not targeted at Debian, there are no special cases or exceptions called out. One can choose not to implement it, or to implement it wrongly and keep it buggy of course, but the idea that Debian is _so_ special that it needs to be redefined after it and add explicit provisions for it is plain nonsense. The idea that there should be special line(s) specifying explicitly what Debian should do or not do is simply absurd.

> I am willing to make the effort to point this out to you, but not to babysit you through solving every issue I find in your work.

Before claiming to have found issues, let alone "babysit" anybody, you should first ensure you understand the situation, you understand the topic you are talking about, and you understand what the problem being discussed is. Unfortunately I do not think you have managed to do any of these things so far, from what you are saying.

> The LSB (described in the announcement as the ancestor of os-release) dates back to 2001, but it's still years newer than Debian's current arrangement (ignoring the changing location of the VERSION_CODENAME data over the years, the project's stance on whether testing or unstable have release events that trigger distinct metadata changes is not new). I know this first-hand because I've been working with, on, under, and around Debian's build system, and several other build systems (including several of my own design), for nearly 30 years now.

Sorry but I am having a really hard time believing this, given the legacy and deprecated LSB tools in Debian explicitly and intentionally allowed to tell the difference between testing and unstable, and always had. With horrendous, Debian-specific tricks and workarounds of course, but they still did. This is the very thing you are strenuously objecting to, because it would "cause a tsunami of new bugs" if it happened, according to what you wrote above. Of course you won't believe me, but fortunately you don't have to, you can check what the LSB tools maintainers has to say about this: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1077764...
You are saying that you just happened to have missed all of this, for 30 years straight? While at the same time asserting that you are "babysitting" me?

> > Debian currently implements the spec correctly everywhere, apart from sid, where the implementation is buggy
> The implementation is not buggy until the spec says it is.

It already does. This has been pointed out many different times since ~2012, so you can't even say that it's "my idea" that it's buggy, as that predates my involvement. The spec says VERSION_CODENAME needs to identify the, er, code name, obviously. The codename of 'sid' is not 'trixie'. If you want to get 'sid', you do 'debootstrap sid', not 'debootstrap trixie'. If you want the signed archive metadata of 'sid' you look at https://ftp.debian.org/debian/dists/sid/InRelease (where it says: 'Codename: sid' right at the top!!!), not at https://ftp.debian.org/debian/dists/trixie/InRelease (where it says: 'Codename: trixie'). The official documentation for unstable, first line in first paragraph in first section says 'Debian Unstable (also known by its codename "Sid")' https://wiki.debian.org/DebianUnstable it doesn't say that unstable's codename is trixie.

We have tons of very much official, very much supported, very much used, very much real Debian internal infrastructure, documentation, code, packages, and more, that uses 'sid' as the codename for 'sid', and yet there's one single piece that doesn't: /etc/os-release on sid says that sid's codename is trixie, contradicting literally everything else, including the legacy LSB tools. You cannot in good faith argue that this is not buggy. For the millionth time, one can legitimately say that it's fine that it's buggy, that they _want_ it to be buggy because of X Y Z, that it's the best thing since sliced bread that it's buggy, but not that it isn't. Because if it's correct that sid's codename is trixie, then literally everything else is buggy, from LSB to debootstrap to apt to all the archives to all the repositories to the installer to all documentation and everything in between.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds