[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201108241902.46537.arnd@arndb.de>
Date:	Wed, 24 Aug 2011 19:02:46 +0200
From:	Arnd Bergmann <arnd@...db.de>
To:	Alexey Dobriyan <adobriyan@...il.com>
Cc:	Colin Walters <walters@...bum.org>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Andi Kleen <andi@...stfloor.org>, akpm@...ux-foundation.org,
	linux-kernel@...r.kernel.org, Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH] Add a personality to report 2.6.x version numbers
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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Powered by blists - more mailing lists