|
|
Log in / Subscribe / Register

Just get rid of the sid name

Just get rid of the sid name

Posted Aug 12, 2024 9:18 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

They have been presented, multiple times. Sorry, I'm not going to copy paste entire walls of texts yet again, I don't think that would be useful at this point


to post comments

Just get rid of the sid name

Posted Aug 12, 2024 10:56 UTC (Mon) by zdzichu (subscriber, #17118) [Link] (4 responses)

I have problem finding the use cases, too. None of the links in the article seem to contain anything relevant.

Even then link described as "a specific example" (https://lwn.net/ml/all/ZrCMe4I8B-351Z1D@remnant.pseudoran...) does NOT contain a specific example. It contains idle speculation of theoretical foobar package only. A speculation about behaviour which I would mark as a bug in the package immediately (behaving incorrectly due to different keyword in os-release).

So, instead of pointing to unspecified walls of text, could you – for the sake of other LWN readers – provide a 3-4 bulletpoints if the use cases?

Just get rid of the sid name

Posted Aug 12, 2024 11:03 UTC (Mon) by bluca (subscriber, #118303) [Link] (3 responses)

https://github.com/search?q=os-release&type=code

Four hundred and forty two thousands hits for 'os-release'. I don't think a few bullet points would cut it...

Just get rid of the sid name

Posted Aug 12, 2024 15:32 UTC (Mon) by rschroev (subscriber, #4164) [Link] (2 responses)

I see things like

* Handle IOError exception if no /etc/os-release to use Glances on Synology DSM (issue #458)
* Give precedence to /etc/os-release over /usr/lib/os-release in /etc/profile.d/toolbox.sh
* Apko no longer clobbers `/etc/os-release` if it is already present, unless an override is explicitly requested.
* Generate `/etc/alpine-release` (or equivalent) legacy files when `/etc/os-release` generation is requested. This helps with Trivy scanning.

and so on. The search results I quickly skimmed are not related to the issue at hand.

I'm not going to look at all of those search results to find the ones that illustrate your point. Frankly you're not doing a very good job at illustrating the problem and convincing people. If you want to convince people, show us where there are problems.

Just get rid of the sid name

Posted Aug 12, 2024 16:00 UTC (Mon) by gioele (subscriber, #61675) [Link]

> The search results I quickly skimmed are not related to the issue at hand.

You will not find any result related to the issue at hand (= telling testing and unstable apart) because Debian does not provide that info in /usr/lib/os-release. So things like `if VERSION_CODENAME == testing` are just not part of any software.

What you will find instead, is separate code (that sidesteps os-release and relies of lsb_release for example) that tries to guess if the current OS is Debian testing or unstable.

Just get rid of the sid name

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

> The search results I quickly skimmed are not related to the issue at hand.

They are related - the point is that os-release is extremely widely used, and hence it is worth supporting. It's broken in sid, so of course there cannot be examples of people using it in sid, because it doesn't work...


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