Re: [PATCH] Add a personality to report 2.6.x version numbers

From: Arnd Bergmann
Date: Wed Aug 24 2011 - 13:03:04 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/