News for hackers. Stuff that matters.
Re:Introducing /etc/os-release - End to distribution specifi... by beza1e1 on Tuesday February 14, 2012 @05:39AM (#3589467)
He complains about the lsb_release executable, but why not use the /etc/lsb-release file directly?

http://linux.die.net/man/1/lsb_release

Re:Introducing /etc/os-release - End to distribution specifi... by laumars on Tuesday February 14, 2012 @06:22AM (#3589564)
Because not all Linux distributions follow Linux Standard Base. It would be silly for (to use an example) Arch to have a lsb-release file when it's very method is anything but LSB. So os-release gives a unified file regardless of the distro methodology. In fact this file could easily be extended beyond Linux to any Unix-like OS - which lsb-release would be less practical for.
Re:Introducing /etc/os-release - End to distribution specifi... by theon144 on Tuesday February 14, 2012 @06:37AM (#3589593)
Wait, I didn't know that and I use Arch - what's with Arch and LSB?
Re:Introducing /etc/os-release - End to distribution specifi... by laumars on Tuesday February 14, 2012 @08:59AM (#3589959)
Well for one thing LSB mandates using RPMs: http://en.wikipedia.org/wiki/Linux_Standard_Base#Choice_of_R...
Re:Introducing /etc/os-release - End to distribution specifi... by theon144 on Tuesday February 14, 2012 @09:41AM (#3590130)
>To address this, the standard does not dictate what package format the software system must use for its own packages, merely that RPM must be supported to allow packages from third-party distributors to be installed on a conforming system.

I don't see a problem.

Re:Introducing /etc/os-release - End to distribution specifi... by laumars on Tuesday February 14, 2012 @10:05AM (#3590236)
Well yeah, that's how Debian gets around the issue. However Arch doesn't have an RPM converter in it's standard set up (or if there is, I'm unaware of it).

Personally I massively prefer Arch's package manager to anything I've seen on any RPM-based distro and it seems pretty pointless in having an "alien"-like RPM converter for Arch given how exhaustive Pacman + AUR is. However the point remains that Arch would fail LSB due to this.

Re:Introducing /etc/os-release - End to distribution specifi... by pbhjpbhj on Tuesday February 14, 2012 @06:11PM (#3592229)
>Arch doesn't have an RPM converter

Doesn't it need to just run rpm binary itself - http://aur.archlinux.org/packages.php?ID=16857 kinda suggests that's more than feasible.

Re:Introducing /etc/os-release - End to distribution specifi... by laumars on Wednesday February 15, 2012 @05:12AM (#3593729)
But again, that's in not in the official repositories (just AUR), let alone part of the base system.

It's great that it's available in AUR, but it wouldn't be enough to pass LSB - which is the /entire/ point of this tangent.

Re:Introducing /etc/os-release - End to distribution specifi... by pbhjpbhj on Wednesday February 15, 2012 @03:36PM (#3595931)
Well you said that Arch would fail LSB because it didn't have a converter, which seems strange if - as my link appears to show - it is capable of using RPM natively. That is why do they need to convert .rpm packages if they can run RPM and install them direct? Not that I'm saying there wouldn't be any work to do but the fact that people are already using .rpm via RPM (the binary program) would appear to show it's not a huge obstacle.

http://refspecs.linuxbase.org/LSB_3.1.0/LSB-Core-generic/LSB...

To me says that the distro can use any package format it likes ("The implementation itself may use a different packaging format for its own packages") as long as it can handle .rpm packages ("Implementations shall provide a mechanism for installing applications in this [RPM] packaging format"). So if Arch shipped RPM it would appear [superficially] to meet the requirements.

Re:Introducing /etc/os-release - End to distribution specifi... by russss on Tuesday February 14, 2012 @06:41AM (#3589602)
As mentioned in that man page, the /etc/lsb-release file only contains details on what version of the LSB the distribution conforms to (if the distribution isn't LSB-compliant, the file shouldn't exist). It doesn't have the version of the distribution itself, which lsb_release finds in distribution-specific locations.
Re:Introducing /etc/os-release - End to distribution specifi... by rwmj on Tuesday February 14, 2012 @06:54AM (#3589640)
This isn't completely true. lsb-release contains everything that is in os-release, including the version of the distro in a neutral format.

However I agree with you that lsb-release is not much used, and in some distros is only present when some huge X-dependent LSB package is installed.

But hey, we could fix LSB! Instead of, you know, making up something new that will be as little used as lsb-release.

Re:Introducing /etc/os-release - End to distribution specifi... by ars on Tuesday February 14, 2012 @07:48AM (#3589767)
As far as I can tell Debian does not have an /etc/lsb-release file. Rather they have an lsb-release program that outputs the necessary info.
Re:Introducing /etc/os-release - End to distribution specifi... by obtu on Tuesday February 14, 2012 @07:30AM (#3589727)

    cat /etc/lsb-release 
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=11.10
    DISTRIB_CODENAME=oneiric
    DISTRIB_DESCRIPTION="Ubuntu 11.10"