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

RaspEX Linux Brings Ubuntu 16.10 with LXDE Desktop to Raspberry Pi 3 and 2 SBCs

GNU/Linux developer Arne Exton is back with a new release, and this time he managed to publish a new build of his RaspEX Linux project for Raspberry Pi 2 and Raspberry Pi 3 single-board computers. Read more

Black Lab Linux 9 to Launch in June as Version 10 Is Planned for November 2017

Softpedia was informed by Black Lab Software that the managed to publish an initial roadmap for the next point releases and major versions of the Ubuntu-based Black Lab Linux operating system in 2017. Read more

What a Linux Desktop Does Better

After I resolved to adopt Linux, my confidence grew slowly but surely. Security-oriented considerations were compelling enough to convince me to switch, but I soon discovered many more advantages to the Linux desktop. For those still unsure about making the transition, or those who have done so but may not know everything their system can do, I'll showcase here some of the Linux desktop's advantages. Read more

Slackware-Based Zenwalk Linux Gets New ISO Snapshot with GTK3 Build of Firefox

The development team behind the Slackware-based Zenwalk GNU/Linux distribution have announced the release and general availability of a new ISO snapshot image with all the latest software versions and some exciting new features. Read more