lsb_release -r output on Arch Linux
This looks like a very quiet forum, presumably the Arch Linux people are somewhere else but this is such a simple question I'll give it a try.
What does the output of lsb_release -r look like on Arch? The reason for wanting to know is that I'm trying to build ubuntuone-client on Slackware and the only Linux other than Ubuntu that has a build is Arch. In the build scripts there's this code, used unmodified in the Arch build Code:
if [ -n "$(lsb_release -r | grep -v '1[2-9].[0-9][0-9]')" ]; then |
Arch does not have lsb_release installed by default. Looking at this thread I suspect release to say 'rolling'.
By the way I would not use lsb_release for finding out distro information. Very few distros actually install it be default. However recent versions of just about every distro have the /etc/os-release file, e.g. Arch, Debian (in Sid, I have not checked older version), Fedora, Gentoo, OpenSUSE, Mageia, Slackware, Ubuntu, etc. /etc/os-release gained the traction that lsb_release failed to do. It is the best method of doing distro detection going forward. |
Quote:
|
From the /etc/os-release FAQ (included on the page that announced /etc/os-release):
Quote:
The second part of that FAQ answer gives you another reason. Systemd expects to find the file and reads it. Many distros have switched to systemd as their default system startup daemon and several of those that have not either provide systemd as an option or have experimented with it. |
Quote:
Exactly the info I was looking for. So when that build script runs on Arch the effect depends on whether lsb_release is installed. If it isn't (default, same as Slackware) nothing is written to stderr and <whatever> in [ -n <whatever> ] is empty so REACTOR is set to glib. If lsb_release is installed, the <whatever> is "rolling" and REACTOR is set to gi. Not safe! Yes -- lsb_release is not the best choice of tool for the difficult task of determining distro info. UbuntuOne is, er, an Ubuntu-based product so the build developers probably used whatever worked for them. The only packages listed on https://one.ubuntu.com/downloads/ are for Windows, Mac, Ubuntu, Android and "iPhone & iPad". Sheesh! Are these people part of the Linux-sphere?! FYI the Slackware64 14.0 /etc/os-release looks like this: Code:
NAME=Slackware |
Quote:
|
F.Y.I. details of the /etc/os-release format can be found here:
http://www.freedesktop.org/software/...s-release.html |
All times are GMT -5. The time now is 12:59 AM. |