lkml.org 
[lkml]   [2011]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] Add a personality to report 2.6.x version numbers
Date
On Wednesday 24 August 2011, Alexey Dobriyan wrote:
> Was this fixed? Yes.
> Will this break one more time? Of course!
>
> case "${kernel}" in
> - 2.6.*)
> + 2.6.*|3.*)
> AC_MSG_RESULT([2.6 family (${kernel})])

What you need is an exaustive list of past versions plus
a catch-all for future versions:

case "${kernel}" in
1.*|2.0.*|2.1.*|2.2.*|2.3.*)
echo "too old"
;;
2.4.*)
echo "Linux-2.4 style"
;;
2.5.*)
echo "unstable and not supported"
;;
*)
echo "2.6 or newer"
;;
esac

We don't break ABIs as a rule, so you should always assume
that a newer version will keep working.

Arnd


\
 
 \ /
  Last update: 2011-08-24 19:05    [W:0.063 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site