[MacPorts] #21118: ESHUTDOWN missing in Python 2.4.6 (SL)
#21118: ESHUTDOWN missing in Python 2.4.6 (SL) -----------------------------------------------+---------------------------- Reporter: charlie.clark@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: -----------------------------------------------+---------------------------- Python 2.4.6 (#1, Sep 5 2009, 00:39:12) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import asyncore Traceback (most recent call last): File "<stdin>", line 1, in ? File "/opt/local/lib/python2.4/asyncore.py", line 56, in ? from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, ECONNRESET, \ ImportError: cannot import name ESHUTDOWN
2.5 is fine,. There was a similar bug (#4182) for Python 2.3 with a patch for configure. -- Ticket URL: <http://trac.macports.org/ticket/21118> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21118: ESHUTDOWN missing in Python 2.4.6 (SL) -----------------------------------------------+---------------------------- Reporter: charlie.clark@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python24 -----------------------------------------------+---------------------------- Changes (by macsforever2000@…): * priority: High => Normal * port: => python24 Old description:
Python 2.4.6 (#1, Sep 5 2009, 00:39:12) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import asyncore Traceback (most recent call last): File "<stdin>", line 1, in ? File "/opt/local/lib/python2.4/asyncore.py", line 56, in ? from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, ECONNRESET, \ ImportError: cannot import name ESHUTDOWN
2.5 is fine,. There was a similar bug (#4182) for Python 2.3 with a patch for configure.
New description: {{{ Python 2.4.6 (#1, Sep 5 2009, 00:39:12) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import asyncore Traceback (most recent call last): File "<stdin>", line 1, in ? File "/opt/local/lib/python2.4/asyncore.py", line 56, in ? from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, ECONNRESET, \ ImportError: cannot import name ESHUTDOWN }}}
2.5 is fine,. There was a similar bug (#4182) for Python 2.3 with a patch for configure. -- -- Ticket URL: <http://trac.macports.org/ticket/21118#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21118: ESHUTDOWN missing in Python 2.4.6 (SL) -----------------------------------------------+---------------------------- Reporter: charlie.clark@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python24 -----------------------------------------------+---------------------------- Comment(by charlie.clark@…): Going on the Plone patch it looks like the Posix compatability is the problem: http://svn.plone.org/svn/collective/buildout/python/src/python-2.4-darwin-10...: + +#if (defined __APPLE__) && (!defined _POSIX_C_SOURCE) +#define TEMPORARILY_DEFINING__POSIX_C_SOURCE /* so we can #undef it later */ +#define _POSIX_C_SOURCE /* avoid deprecated struct ostat in sys/stat.h */ +#endif + #include <sys/stat.h> #elif defined(HAVE_STAT_H) #include <stat.h> #endif +/* Mac OS X: undefine _POSIX_C_SOURCE if it wasn't defined before */ +#ifdef TEMPORARILY_DEFINING__POSIX_C_SOURCE +#undef _POSIX_C_SOURCE +#undef TEMPORARILY_DEFINING__POSIX_C_SOURCE +#endif -- Ticket URL: <http://trac.macports.org/ticket/21118#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21118: ESHUTDOWN missing in Python 2.4.6 (SL) -----------------------------------------------+---------------------------- Reporter: charlie.clark@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python24 -----------------------------------------------+---------------------------- Comment(by luca@…): There is a chance that this will be fixed somedays? Even if python2.4 is very old, this bug create great problems to Plone developers. Plone is a very famous Open Source CMS and the current version use python 2.4... -- Ticket URL: <http://trac.macports.org/ticket/21118#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21118: ESHUTDOWN missing in Python 2.4.6 (SL) -----------------------------------------------+---------------------------- Reporter: charlie.clark@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python24 -----------------------------------------------+---------------------------- Comment(by charlie.clark@…): I can confirm that YS patch does solve the problem with asyncore. Until someone actually commits the patch it is easy enough to apply: Download the patch sudo patch /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python24Portfile ~/Downloads/Portfile.diff sudo port install python24 However, as of Zope 2.12 Python 2.4 is no longer officially supported for Zope and most work is done using Python 2.6, installed using buildout. Plone 4 will be use Zope 2.12 so we should indeed be thinking of retiring Python 2.4 -- Ticket URL: <http://trac.macports.org/ticket/21118#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21118: ESHUTDOWN missing in Python 2.4.6 (SL) -----------------------------------------------+---------------------------- Reporter: charlie.clark@… | Owner: roel@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python24 -----------------------------------------------+---------------------------- Changes (by jmr@…): * owner: macports-tickets@… => roel@… -- Ticket URL: <http://trac.macports.org/ticket/21118#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21118: ESHUTDOWN missing in Python 2.4.6 (SL) -----------------------------------------------+---------------------------- Reporter: charlie.clark@… | Owner: roel@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: python24 -----------------------------------------------+---------------------------- Comment(by roel@…): Diff tested and confirmed. Merge requested per #25472 -- Ticket URL: <http://trac.macports.org/ticket/21118#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21118: ESHUTDOWN missing in Python 2.4.6 (SL) ------------------------------------------------+--------------------------- Reporter: charlie.clark@… | Owner: roel@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Resolution: fixed | Keywords: Port: python24 | ------------------------------------------------+--------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: Committed in r69337. -- Ticket URL: <http://trac.macports.org/ticket/21118#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts