|
|
Log in / Subscribe / Register

Just get rid of the sid name

Just get rid of the sid name

Posted Aug 12, 2024 9:17 UTC (Mon) by bluca (subscriber, #118303)
In reply to: Just get rid of the sid name by LtWorf
Parent article: Distinguishing Debian testing from unstable

> But testing in a week will be today's unstable.

No, it will not, they are two entirely different and independent archives: https://ftp.debian.org/debian/dists/sid/ https://ftp.debian.org/debian/dists/trixie/ A subset of one might move to another, or might not, but that's irrelevant, and it happens between stable and oldstable too - they are different releases, with different lifecycles, independent and individual archives, that official rootfs building tools like 'debootstrap' allow to build independently and individually. As already mentioned many times, content doesn't matter, identity does.

> Why not fix your code

What code?


to post comments

Just get rid of the sid name

Posted Aug 16, 2024 7:08 UTC (Fri) by ralfj (subscriber, #172874) [Link] (9 responses)

I think os-release tries to establish a notion of "identity" that is insufficiently defined and doesn't work when applied to Debian.

When I install a system as "testing", and when I install it as "trixie", do those systems have the same or different "identity" according to whatever notion of "identity" you are using? They have a very different lifecycle: one of them leads to a rolling release system that never gets a major upgrade to a "next" version or an "end of support" or anything like that; the other eventually turns into Debian stable and thus does have EOL and all these things. So it seems to me, after reading literally the entirety of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1077764, that "testing" and "trixie" should, in the eyes of os-release, be considered different versions of Debian with different identity.

And yet obviously, right now, their package content is the same. The only material difference between these systems is in the apt configuration. If /etc/os-release is supposed to differentiate between these kinds of systems, it somehow has to be synced with the apt configuration.

Throughout this thread, I see one side using the concept of the "identity" of a Debian installation as if it was completely self-evident what that is supposed to mean, and most everyone else trying to figure out what it is supposed to mean by asking tons of questions, but unfortunately never getting an answer that actually helps resolve the underlying confusion. It's too late for this discussion, but I think in the future if this comes up again, it'd really be worth spending some time trying to get to the bottom of this.

Testing/trixie, apt sources [WAS Just get rid of the sid name]

Posted Aug 16, 2024 7:57 UTC (Fri) by amacater (subscriber, #790) [Link] (2 responses)

This is one very good reason to use distro codenames rather than testing/stable - and the installer now defaults to codename. You can run a Debian system as "stable" and hit a flag day when there's a major Debian release and everything changes under you. If you pin to "testing" - you never get a release, potentially. Sid == unstable == never gets a release.

Pin to trixie immediately after the release of bookworm - and you follow the release all the way through from fork of unstable -> testing stage -> stable -> oldstable for five years or so. Likewise pinning to forky immediately after the release of trixie

Testing/trixie, apt sources [WAS Just get rid of the sid name]

Posted Aug 17, 2024 10:33 UTC (Sat) by ralfj (subscriber, #172874) [Link] (1 responses)

> This is one very good reason to use distro codenames rather than testing/stable

I *want* to stay on testing though. That's been my main work setup for more than 10 years now. So why should I use codenames?

Testing/trixie, apt sources [WAS Just get rid of the sid name]

Posted Aug 17, 2024 18:50 UTC (Sat) by amacater (subscriber, #790) [Link]

If you *want* to use "testing" as the string in apt sources, you are absolutely free to do so and you will remain on testing forever. As you note in your response to bluca a bit lower down in the thread, once every three years or so, there's a change of codename, whether you're aware of it or not. If you're not aware, it could come as a shock.

If you don't want the possibility of a big change without notice, using distribution codenames is a useful thing.
[We only have codenames at all because there was never a Debian 1.0 released officially by Debian. A vendor chose to release and renumber something not yet ready for release in order to have a "Contains Debian 1.0" on their media].

Just get rid of the sid name

Posted Aug 16, 2024 11:19 UTC (Fri) by bluca (subscriber, #118303) [Link] (5 responses)

> "testing" and "trixie" should, in the eyes of os-release, be considered different versions of Debian with different identity.

They shouldn't, because it doesn't magically change - you need to hit the upgrade button. Whether you hit only the upgrade button, or you also edit a distro-specific file to change the codename and then hit the upgrade button, is just a technical detail and a process thingy. oldstable, stable, testing are just aliases - they are literally symlinks, and do not change the identity of a system, it's just a shortcut to avoid having to edit a file when you want to always track "latest" or always track "supported" or so and so. You could very well set up a system that configures everything using the 'bookworm' codename, and every day checks whether the 'stable' symlink on the archive on ftp.debian.org still points to it, and when it moves, automatically edits your apt sources 'bookworm' -> 'trixie' or whatever it points to now, and automatically upgrades you. This is conceivable thing you can do, albeit not really recommended, but it doesn't really change what os-release is for or how it should be used. If the codename changes due to an upgrade, then os-release's content changes too accordingly. Upgrades and downgrades are allowed!

The closest to the "source of truth" we have are the officially signed archive repository metadata files, and you can see for yourself what they say right at the top for the various cases:

https://ftp.debian.org/debian/dists/testing/InRelease
https://ftp.debian.org/debian/dists/trixie/InRelease

https://ftp.debian.org/debian/dists/stable/InRelease
https://ftp.debian.org/debian/dists/bookworm/InRelease

https://ftp.debian.org/debian/dists/unstable/InRelease
https://ftp.debian.org/debian/dists/sid/InRelease

When you download a 'stable' or 'testing' image, it will contain a copy of that file and it will point to only one of those codenames, not multiple ones. It might be out of date, but that's ok - it's an identifier for the vendor OS tree you just downloaded, not a statement about what you might find if you go to the archive directly. If one wanted to add timestamps that indicate _when_ the image was built, so that you get an idea about its "freshness", that's ok too, there's the BUILD_ID field for that purpose.

The next best "official" resource we have is https://release.debian.org/ and at the bottom it says:

stable
Fast response for security updates. Minor updates include security and other important fixes only. Major updates are sourced from testing, and are infrequent, but large.

testing
Security updates are irregular and unreliable. Release standards are almost continually met. Updates are automatically sourced from unstable, happen four times each day and are usually small.

unstable
Security updates are made by the maintainer; they may not be effective on all architectures, and may be delayed. Packages uploaded may not meet release standards, but any breakage is expected to be fixed promptly. Updates are made by maintainers.

Note how it distinguishes the lifecycle and characteristics of stable vs testing vs unstable (so much for unstable and testing being the same thing, amiright?), but not between codenames and aliases.

Just get rid of the sid name

Posted Aug 16, 2024 11:22 UTC (Fri) by bluca (subscriber, #118303) [Link]

Also the point of contention here was never testing/trixie - that is correct and always has been: it says VERSION_CODENAME=trixie. The point of contention is that we call 'sid' as such literally everywhere, even in very, very official sources as linked above, apart from one place: os-release, where it's currently called 'trixie'. The way testing is identified and called was never a subject of dispute, only unstable is.

Just get rid of the sid name

Posted Aug 17, 2024 10:32 UTC (Sat) by ralfj (subscriber, #172874) [Link] (3 responses)

No, there is no upgrade button. I just keep doing "apt upgrade". From all you say, just installing regular updates does not change the "identity" of an installation: you keep insisting that it doesn't matter whether a system is outdated or not, so presumably, "apt upgrade" is by definition an identity-preserving operation.

But once every 2 years, "apt upgrade" will change my testing system to have a different VERSION_CODENAME. That's incoherent and a violation of the concept of "identity" as you have described it, at least to the best of my understanding.

Just get rid of the sid name

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

> No, there is no upgrade button. I just keep doing "apt upgrade"

I doubt that? You'd need a dist-upgrade, given there will be stuff uninstalled, so a normal upgrade just won't do it.

> But once every 2 years, "apt upgrade" will change my testing system to have a different VERSION_CODENAME. That's incoherent and a violation of the concept of "identity" as you have described it, at least to the best of my understanding.

It is very much not, as a new release cycle begins. They exist, and they matter, and we do tons of things based on them, not just operational (like freezes), but even add features or remove features or break backward compatibility or remove old stuff and so on and so forth, all based on release codenames and lifecycles. Heck we even automated this, you can add some machine-readable strings in maintainer scripts that encodes "drop after trixie" or so, and a bot will automatically open MRs based on that, depending on where we are in the lifecycle.

Just get rid of the sid name

Posted Aug 20, 2024 6:53 UTC (Tue) by ralfj (subscriber, #172874) [Link] (1 responses)

I often have to do "dist-upgrade"/"full-upgrade" even within a release cycle so that's not really a distinguishing factor.

So I still have no idea how you define "identity". It would be really good to figure out some properties of this notion that seems to be so important for os-release, like defining which operations fundamentally preserve the identity of a system and which ones fundamentally change it. But if the same operation ("apt full-upgrade", without any changes to any configuration) is sometimes identity-preserving and sometimes identity-altering, I fail to see how this is an objective definition. It seems to be very much a case-by-case thing: you decided that "trixie" and "testing" have the same identity right now, but "testing" and "unstable" do not. But other people can very reasonably arrive at different decisions about these identity questions, as there's no underlying objective definition that would tell us the answer. It is therefore no surprise that when you just assert that testing and unstable have a different identity (which seems to be the basis for the claim that base-files is buggy), and claim that this is a *fact* without even admitting the possibility that there is anything subjective about this claim, and entirely refuse to even consider that there might be valid reasoning that arrives at a different conclusion (such as a different idea of "identity"), people are not very interested in engaging with that line of arguments.

I hope this feedback helps you understand why the discussion went the way it did. There are certainly parts that I missed, but the above seemed to me like a big contributor to the general vibe in that thread. Either way, good luck with your future endeavors!

Just get rid of the sid name

Posted Aug 20, 2024 12:58 UTC (Tue) by bluca (subscriber, #118303) [Link]

> I often have to do "dist-upgrade"/"full-upgrade" even within a release cycle so that's not really a distinguishing factor.

There's even something more on top of that when the aliases changes in the repo metadata, I cannot remember exactly how it looks like, but it was pretty evident last time it happened

> It would be really good to figure out some properties of this notion that seems to be so important for os-release, like defining which operations fundamentally preserve the identity of a system and which ones fundamentally change it.

It really shouldn't! It's something that implementers have to chose. The point is that in Debian we already make that choice, we always have, and we use it consistently thorough the project, apart in this one case. The most authoritative source of truth is most likely the apt repositories signed metadata. I can't think of anything else that would be more authoritative than that. Check what they define at the top:

https://ftp.debian.org/debian/dists/bookworm/InRelease
https://ftp.debian.org/debian/dists/stable/InRelease
https://ftp.debian.org/debian/dists/trixie/InRelease
https://ftp.debian.org/debian/dists/testing/InRelease
https://ftp.debian.org/debian/dists/sid/InRelease
https://ftp.debian.org/debian/dists/unstable/InRelease

Hint: the aliases are literally aliases, ie symlinks. The project already decides the exact time the aliases change. It already decided, and always has, that unstable's codename is 'sid'. It already decided that testing's codename is never, was never, and will never be 'sid', but will always be the codename of the next stable release currently in development. There is a very definite and well-defined moment in which the oldstable, stable and testing aliases switch and change which codename they point at. This already happens, has always happened, and I don't see any reason why it wouldn't continue to happen. It's all coherent and well-defined, and used consistently thorough the distribution, apart from one detail: os-release in sid says that sid is trixie. This happens nowhere else that I am aware of. Hence why I'm trying to fix it.


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