[issue832] Linux 3.0 kernel fallout

New submission from David Edelsohn <dje.gcc@gmail.com>: PyPy follows CPython 2.7, which does not recognize the new 3.0 Linux kernel series. Code expects sys.platform == 'linux2' ---------- messages: 2966 nosy: edelsohn, pypy-issue priority: bug status: unread title: Linux 3.0 kernel fallout ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue832> ________________________________________

Piotr Skamruk <piotr.skamruk@gmail.com> added the comment: And what You have in pypy? I have: ./pypy Python 2.7.1 (82bf0efcfe7d+, Aug 11 2011, 06:39:45) [PyPy 1.6.0-dev1 with GCC 4.6.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. And now for something completely different: ``I'm sorry, could you please not agree with the cat as well?''
import sys sys.platform 'linux2'
so it's expected value. Which tests are broken by this issue? ---------- nosy: +jell status: unread -> chatting ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue832> ________________________________________

David Edelsohn <dje.gcc@gmail.com> added the comment: Did you translate PyPy on a Linux kernel 3.0 system? Was the translator Python built on a Linux kernel 3.0 system? I am not sure where PyPy picks up its sys.platform name, but running tests with a CPython built on a Linux kernel 3.0 system failed. ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue832> ________________________________________

Piotr Skamruk <piotr.skamruk@gmail.com> added the comment: pypy was translatet on linux kernel 3.0 system. translator python was pypy 1.5 from pypy.org site, so probably it was built on system with veeery old kernel (idk what tannit has as kernel). ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue832> ________________________________________

Dave Malcolm <dmalcolm@redhat.com> added the comment: Corresponding bug/discussion about this in CPython's tracker: http://bugs.python.org/issue12326 ---------- nosy: +dmalcolm ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue832> ________________________________________

Carl Friedrich Bolz <cfbolz@gmx.de> added the comment: this is actually not a problem any more on PyPy, as 2.7 kept using "linux2". On PyPy3, this should be fixed to just "linux" to be compatible with CPython 3.x. ---------- nosy: +cfbolz title: Linux 3.0 kernel fallout -> sys.platform is wrong on Linux 3.x on PyPy3 ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue832> ________________________________________

Philip Jenvey <pjenvey@underboss.org> added the comment: The "linux" change doesn't happen until 3.3 ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue832> ________________________________________
participants (5)
-
Carl Friedrich Bolz
-
Dave Malcolm
-
David Edelsohn
-
Philip Jenvey
-
Piotr Skamruk