Messages in this thread | | | From | Arnd Bergmann <> | Subject | Re: [PATCH] Add a personality to report 2.6.x version numbers | Date | Wed, 24 Aug 2011 19:02:46 +0200 |
| |
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
| |