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

Android Leftovers

  • 15 reasons Android can be better than the iPhone
    Smartphone preference is always a hot topic among enthusiasts, with the iPhone vs. Android rivalry being the most obvious one since the smartphone revolution started by the original iPhone eight years ago. While Google’s Android is the most popular smartphone OS by market share, Apple is still a significant adversary, one that has never been beaten when it comes to smartphone profits. In fact, Apple on Tuesday announced record and estimates-smashing revenue, and most importantly, iPhone sales.
  • Top 5 Best Android Games of January 2015
    A nice array of great mobile games hit the Android Google Play store at the start of the new year. Along with these new games to pass the time with, several other released games have maintained their stronghold over the top games chart. We’re here to make sure you download some of the finer outings available to mobile games who game primarily on Android devices. These are simply the top five best Android games of January 2015. There’s action, puzzle, strategy and racing games that you’ll need to play. Here’s just a few of the best,
  • android-galaxyzoo: Superficial porting to Android 5.0 (Material design)
    Here are some notes about my experience adapting android-galaxyzoo to Material design for Android 5.0 (Lollipop) though I only used the most superficial parts of Material design.
  • This Super Cheap Android Phone Looks Exactly Like The iPhone 6
    Dozens of Chinese technology companies have created iPhone 6 look-alikes that run Android and cost a lot less than Apple's smartphone. Most of these knockoffs, however, look and feel a bit cheaper and come with low-end hardware compared to the iPhone.

This Huge Coffee Table Can Switch Between Android and Windows, No Joke

The table is made of aircraft-grade aluminum and the table top is only 2.4-inches / 60mm in thickness. On the Windows side, the panel can detect up to 60 distinct touch points, while on the Android one there are only 12. As we told you above, the table can essentially offer the perks of both Android and Windows in the same machine. The Android system is supported by a quad-core Rockchip RK3288 clocked at 2.0GHz fitted with 2GB of RAM and 16GB of internals storage. The type of Android you’ll see here is version 4.4 KitKat. Read more

KDE 5 (Plasma 5.2.0) available for Slackware -current

And yes – let me get this clear right from the start: this Plasma 5.2.0 desktop environment will replace the KDE 4 packages you have installed. Read more Older: Waiting for KDE 5 (Plasma 5)?

Embedded Development with ARM mbed on Linux

The ARM CPU used in the BeagleBone Black and other single board computers is designed to interface with half to a few gigabytes of RAM and allow a full operating system such as Linux to be run on the computer. (See my long series of reviews on Linux.com of ARM-based computers that run Linux). By contrast the ARM Cortex-M is a microcontroller level chip which might run at 16-100Mhz, contain 2-100kb of RAM, and some flash memory to contain only the program that you want to execute. Read more