Language Selection

English French German Italian Portuguese Spanish

why you don't rely on uname

Filed under
Linux

It is difficult to be angry at Linus for anything, on the count of how much good he did, and is doing to us with the whole idea of having Linux – it’s not like waiting for a GNU kernel would have helped – but honestly I feel quite bothered that he ended up making the decision of bumping the kernel’s version number like it was just a matter of public relations, without the need to consider the technical side of it, of software relying on the version numbers being, you know, meaningful. Which, honestly, reminded me of something but let’s not get that in front of us.

Let’s ignore the fact that kernel modules started to fail — they would probably be failing because of API changes without the need of anything as sophisticated as a version bump to 3. And let me be clear on one thing at least: it’s not the build failures that upset me – as I said last year I prefer it when packages fail at build time, rather than, subtly, at runtime.

At any rate, let’s begin with the first reason why you should not rely on uname results:

rest here




Dependency on 2.x.x kernel numbering is lazy programming

I would have thought programmers would have considered numbering scheme changes, just as they should have considered century changes in the late 20th century. Just because your kernel dependency check works this month, don't depend on it working 'forever.'

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

More in Tux Machines

IPFire 2.19 Now Supports On-Demand IPsec VPNs, Core Update 110 Is Now Available

IPFire's Michael Tremer announced today, April 28, 2017, the release of IPFire 2.19 Core Update 110, a new stable maintenance version of the open-source, Linux-based firewall operating system. Coming two and a half months after the previous point release, IPFire 2.19 Core Update 110 is here to implement support for on-demand IPsec (Internet Protocol Security) VPNs (Virtual Private Networks), which might just come in handy to those who deal with a huge amount of IPsec net-to-net connections on their infrastructures. Read more

Wine 2.7 Has Been Released

Canonical Releases Snapd 2.25 Snappy Daemon for Ubuntu Linux, Here Is What's New

Canonical's Snappy team, through Michael Vogt, announced today, April 28, 2017, the release and immediate availability of the Snapd 2.25 Snappy daemon for all supported Ubuntu Linux OSes, as well as other GNU/Linux distributions. Read more

Ubuntu Devs Work on Rebasing Ubuntu 17.10 (Artful Aardvark) to Linux Kernel 4.11

It looks like the Ubuntu Kernel team is back at work after taking a short break, and they recently published another installation of their bi-weekly newsletter to inform the Ubuntu Linux community about what to expect in the coming weeks. Read more