On Tue, 02 Aug 2016 14:21:48 +0200, Oliver Kurz
On Tuesday 02 August 2016 13:19:14 Ludwig Nussel wrote:
Hi,
Tumbleweed and Leap currently use /etc/os-release inconsistently:
TW:
NAME=openSUSE VERSION="Tumbleweed" VERSION_ID="20160724" PRETTY_NAME="openSUSE Tumbleweed (20160724) (x86_64)"
Leap:
NAME="openSUSE Leap" VERSION="42.1" VERSION_ID="42.1" PRETTY_NAME="openSUSE Leap 42.1 (x86_64)"
There are of course multiple ways to change that. Here's my proposal:
ID="opensuse" NAME="Tumbleweed" VERSION="20160724" VERSION_ID="20160724" PRETTY_NAME="openSUSE Tumbleweed"
and
ID="opensuse" NAME="Leap" VERSION="42.1" VERSION_ID="42.1" PRETTY_NAME="openSUSE Leap 42.1"
According to the specification¹ VERSION and VERSION_ID may even be omitted for rolling distros but IMO it's still useful to find out how old a TW installation is.
Any objections?
From the spec I understand that ID and NAME should describe the same but ID in lowercase and more "machine readable", and NAME being more descriptive.
My proposal therefore:
ID="opensuse" NAME="openSUSE Tumbleweed" VERSION="20160724" VERSION_ID="20160724" PRETTY_NAME="openSUSE Tumbleweed (20160724)"
and
ID="opensuse" NAME="openSUSE Leap" VERSION="42.1" VERSION_ID="42.1" PRETTY_NAME="openSUSE Leap 42.1"
I collect that info for the perl module System::Info Feel free to browse all collected stuff to compare https://github.com/Tux/System-Info/tree/master/t/etc centos-5.10 dsm-4.3 openelec-6.95.3 suse-12.1 centos-6.4 dsm-5.0 oracle-5.9 suse-12.2 centos-6.5 dsm-5.1 oracle-7.0 suse-12.3 centos-6.6 dsm-5.2 rasbian-8 suse-13.1 centos-7.1 dsm-6.0 rhel-4.2 suse-13.2 centos-7.2 fedora-14 rhel-5.7 suse-42.1 debian-jessie-8 fedora-19 rhel-6.2 ubuntu-10.04 debian-jessie-si fedora-20 rhel-6.4 ubuntu-11.04 debian-lenny fedora-23 rhel-6.6 ubuntu-12.04 debian-squeeze mageia-4 scient-6.4 ubuntu-13.04 debian-wheezy-7. netbsd-6.99.24 suse-11.2 ubuntu-13.10 debian-wheezy-7. netbsd-7.99.4 suse-11.3 ubuntu-15.04 dsm-4.2 nixos-16.09 suse-11.4 which reminds me I still have to add TW -- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using perl5.00307 .. 5.23 porting perl5 on HP-UX, AIX, and openSUSE http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/