[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADkLE3X82um14wFnisPBtB=PLCX4A9JPVMXmdqdNusfhVAjq2A@mail.gmail.com>
Date: Tue, 23 Aug 2011 12:20:23 -0400
From: Colin Walters <walters@...bum.org>
To: Andi Kleen <ak@...ux.intel.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Andi Kleen <andi@...stfloor.org>, akpm@...ux-foundation.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Add a personality to report 2.6.x version numbers
On Tue, Aug 23, 2011 at 12:11 PM, Andi Kleen <ak@...ux.intel.com> wrote:
>
> That's a good point. I googled for this pattern in google codesearch
> and there are 10+ in the first two pages.
>
> http://www.google.com/codesearch#search/&q=lang:^python$%20sys.platform%20linux2&p=1&type=cs
Yes, though I should note I wasn't trying to defend having a
compatibility sysctl or whatever - I think it's clear these apps are
broken. The python docs explicitly say that the returned string is
just a straightforward transformation of uname, and if the apps read
that carefully they'd realize they only want the first part.
The reportlab example will break for FreeBSD 5 too:
elif sys.platform in ("freebsd4", "darwin", "mac", "linux2"):
I just happen to watch Mozilla bugzilla so I saw that one go by and
wanted to provide data for the discussion.
--
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