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

Open-Source Driver Fans Will Love NVIDIA's New OpenGL Demo

Those with a bit of humor will love the demo NVIDIA recently used for showing off their Nouveau-based open-source graphics driver stack on the Tegra K1 SoC. Last month at FOSDEM was a presentation on the Nouveau Tegra K1 driver stack by Alexandre Courbot of NVIDIA. In there NVIDIA talked about their great experience working on this open-source driver and engagement with the Nouveau community, which will continue for future Tegra SoCs. That aforelinked article covered all of the important details of that presentation. Read more

GNOME Builder Makes It Easier for Developers to Create Apps for GNOME 3.16

On March 26, we announced the release of the GNOME 3.16 desktop environment, and we unveiled its awesome features, including updated and new applications. However, we completely missed one app: GNOME Builder, a powerful IDE (Integrated Development Environment) for GNOME. Read more

User-friendly virtual hosting with TurnKey Linux

Suppose you’re a developer and want to experiment with Drupal 7.7 or WordPress. Maybe you're a K-12 teacher or university professor and want to teach your students Moodle administration or how to create some network-attached storage. You could download a tarball from Drupal.com or WordPress.org and configure on your own desktop or laptop, but then you would also need to configure Apache and MySQL too. All of these operations take effort and know-how that you may or may not have time for. Read more

Late Week in Techrights