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

Digia spins off Qt as subsidiary

Digia has spun off a subsidiary called “The Qt Company” to unify Qt’s commercial and open source efforts, and debuted a low-cost plan for mobile developers. The Linux-oriented Qt cross-platform development framework has had a tumultuous career, having been passed around Scandinavia over the yearsfrom Trolltech to Nokia and then from Nokia to Digia. Yet, Qt keeps rolling along in both commercial and open source community versions, continually adding support for new platforms and technologies, and gaining extensive support from mobile developers. Read more

Qubes: The Open Source OS Built for Security

No matter how good the code review process is, or how high the standards for acceptance, applications will always have bugs, says Joanna Rutkowska, founder and CEO of Invisible Things Lab. So will drivers. And filesystems. “Nobody, not even Google Security Team, can find and patch all those bugs in all the desktop apps we all use,” Rutkowska says in the Q&A interview, below. Read more

KDE Developer Says Community Managers Are a Fraud and a Farce

KDE developer Aaron Seigo is a very outspoken person and he is known for his strong opinions. He recently proposed for public debate a very heated and interesting subject about the role of the community managers for the open source project. He thinks that the community managers' role, as they are working today on various projects, is actually a fraud and a farce. It's unclear what determined him to make this statement, but he knew right from the start that it was going to rile up the community and various community managers. Read more

RadeonSI Gallium3D vs. Catalyst At 4K UHD On Linux

The open-source driver stack tested was with the Linux 3.17 Git kernel while using the Oibaf PPA to upgrade to Mesa 10.4-devel for the latest RadeonSI and LLVM AMD GPU code. The closed-source driver was the fglrx 14.20.7 / OpenGL 4.4.12968 Catalyst release. When running the Catalyst binary blob we had to downgrade from Linux 3.17 to Linux 3.16 for kernel compatibility. All tests were done from the Intel Core i7 5960X system running Ubuntu 14.10. Read more