tdf#140286 - CALC formula =INFO("OSVERSION") gives wrong output

Wol antlists at youngman.org.uk
Mon Jan 17 22:17:59 UTC 2022


On 14/01/2022 22:24, Wols Lists wrote:
> On 14/01/2022 21:26, Chris Sherlock wrote:
>> I will work on a patch for Linux that parses /etc/os-release with a 
>> fallback to just the kernel version if that is not available 
>> (virtually all desktop systems use systemd now).
> 
> Are you sure?
> 
> Okay, it's mostly the mad hold-outs, but Devuan, funtoo, gentoo, that's 
> three distros off the top of my head that don't default to systemd. And 
> they're the ones (gentoo especially) that devs might well be running.
> 
> I think a sane set of options from uname is much better. That's pretty 
> much guaranteed to be universal, I believe, and you could even make the 
> options a user-specified matter should they be mad enough to want to.
> 
Just looked at /etc/os-release (as you may have guessed my gentoo system 
does run systemd), and the ONLY useful information you'll get from it is 
"Gentoo Linux".
So for those people who want more than just the distro name, os-release 
is not enough.

anthony at thewolery ~/gitstuff/ScarletDME $ cat /etc/os-release
NAME=Gentoo
ID=gentoo
PRETTY_NAME="Gentoo/Linux"
ANSI_COLOR="1;32"
HOME_URL="https://www.gentoo.org/"
SUPPORT_URL="https://www.gentoo.org/support/"
BUG_REPORT_URL="https://bugs.gentoo.org/"
anthony at thewolery ~/gitstuff/ScarletDME $

Cheers,
Wol


More information about the LibreOffice mailing list