diff options
author | perky <perky@FreeBSD.org> | 2004-05-27 23:58:02 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2004-05-27 23:58:02 +0800 |
commit | 203aeb85578a1c8f6834e577b7453cfc0cccd36d (patch) | |
tree | 63334e2a73b02adb1ce84ed8a37f3a914430e6ae | |
parent | 2648f4641a90e1f71be1af9a0fae404737ddddb4 (diff) | |
download | freebsd-ports-graphics-203aeb85578a1c8f6834e577b7453cfc0cccd36d.tar.gz freebsd-ports-graphics-203aeb85578a1c8f6834e577b7453cfc0cccd36d.tar.zst freebsd-ports-graphics-203aeb85578a1c8f6834e577b7453cfc0cccd36d.zip |
- Update to Python 2.3.4.
- Test WITHOUT_* instead of WITH_* for values which are on by default
so that package build clusters detect correctly.
-rw-r--r-- | Mk/bsd.python.mk | 4 | ||||
-rw-r--r-- | lang/python/Makefile | 9 | ||||
-rw-r--r-- | lang/python/distinfo | 2 | ||||
-rw-r--r-- | lang/python/files/patch-Objects::intobject.c | 12 | ||||
-rw-r--r-- | lang/python/files/patch-Objects::weakrefobject.c | 65 | ||||
-rw-r--r-- | lang/python/files/patch-configure | 8 | ||||
-rw-r--r-- | lang/python/pkg-plist | 2 | ||||
-rw-r--r-- | lang/python23/Makefile | 9 | ||||
-rw-r--r-- | lang/python23/distinfo | 2 | ||||
-rw-r--r-- | lang/python23/files/patch-Objects::intobject.c | 12 | ||||
-rw-r--r-- | lang/python23/files/patch-Objects::weakrefobject.c | 65 | ||||
-rw-r--r-- | lang/python23/files/patch-configure | 8 | ||||
-rw-r--r-- | lang/python23/pkg-plist | 2 | ||||
-rw-r--r-- | lang/python24/Makefile | 9 | ||||
-rw-r--r-- | lang/python24/distinfo | 2 | ||||
-rw-r--r-- | lang/python24/files/patch-Objects::intobject.c | 12 | ||||
-rw-r--r-- | lang/python24/files/patch-Objects::weakrefobject.c | 65 | ||||
-rw-r--r-- | lang/python24/files/patch-configure | 8 | ||||
-rw-r--r-- | lang/python24/pkg-plist | 2 |
19 files changed, 23 insertions, 275 deletions
diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk index 1d107c15bce..e8c9d8cbe73 100644 --- a/Mk/bsd.python.mk +++ b/Mk/bsd.python.mk @@ -192,9 +192,9 @@ PYTHON_SUFFIX= 24 # Python-2.3 .elif ${PYTHON_VERSION} == "python2.3" -PYTHON_PORTVERSION?=2.3.3 +PYTHON_PORTVERSION?=2.3.4 PYTHON_PORTSDIR= ${PORTSDIR}/lang/python -PYTHON_REL= 233 +PYTHON_REL= 234 PYTHON_SUFFIX= 23 # Python-2.2 diff --git a/lang/python/Makefile b/lang/python/Makefile index 149b35f9877..59648c58b0c 100644 --- a/lang/python/Makefile +++ b/lang/python/Makefile @@ -6,8 +6,7 @@ # PORTNAME= python -PORTVERSION= 2.3.3 -PORTREVISION= 5 +PORTVERSION= 2.3.4 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -40,12 +39,12 @@ TOOLSDIR= ${PREFIX}/share/${PYTHON_VERSION} OPTIONS= THREADS "Enable thread support" on \ HUGE_STACK_SIZE "Use a larger thread stack" off \ - UCS2 "Use UCS2 instead of UCS4 for unicode support" off \ + UCS4 "Use UCS4 for unicode support" on \ PYMALLOC "Uses python's internal malloc" on .include <bsd.port.pre.mk> -.if defined(WITH_THREADS) +.if !defined(WITHOUT_THREADS) CONFIGURE_ARGS+= --with-threads CFLAGS+= ${PTHREAD_CFLAGS} .if defined(WITHOUT_HUGE_STACK_SIZE) @@ -61,7 +60,7 @@ CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" .endif # defined(LDFLAGS) .endif # defined(WITH_THREADS) -.if defined(WITHOUT_UCS2) +.if !defined(WITHOUT_UCS4) && !defined(WITH_UCS2) CONFIGURE_ARGS+= --enable-unicode=ucs4 .endif diff --git a/lang/python/distinfo b/lang/python/distinfo index 459b99fd3e5..36a4686946c 100644 --- a/lang/python/distinfo +++ b/lang/python/distinfo @@ -15,6 +15,8 @@ MD5 (python/Python-2.3.1.tgz) = a3dcbe1c7f173c8e3c7cce28495016ae MD5 (python/Python-2.3.2.tgz) = f54d7a529d444994b4b33429bbb45479 MD5 (python/Python-2.3.3.tgz) = 4d16732b1cfccc0ed250956d41463c61 SIZE (python/Python-2.3.3.tgz) = 8491380 +MD5 (python/Python-2.3.4.tgz) = b6cf0b19226861a38689d2fabd0931b3 +SIZE (python/Python-2.3.4.tgz) = 8502738 MD5 (python/Python-2.4.a0.20040106.tgz) = cde5962028bcfdb473455c57bbb24c18 MD5 (python/Python-2.4.a0.20040311.tgz) = 5619b787ce62a1ebac3c973179d36670 SIZE (python/Python-2.4.a0.20040311.tgz) = 8512702 diff --git a/lang/python/files/patch-Objects::intobject.c b/lang/python/files/patch-Objects::intobject.c deleted file mode 100644 index 05983721a6c..00000000000 --- a/lang/python/files/patch-Objects::intobject.c +++ /dev/null @@ -1,12 +0,0 @@ -diff -u python/dist/src/Objects/intobject.c:2.105 python/dist/src/Objects/intobject.c:2.105.8.1 ---- Objects/intobject.c:2.105 Sat Jun 28 13:04:24 2003 -+++ Objects/intobject.c Sun Feb 8 10:56:07 2004 -@@ -1080,7 +1080,7 @@ - int ival; - #if NSMALLNEGINTS + NSMALLPOSINTS > 0 - for (ival = -NSMALLNEGINTS; ival < NSMALLPOSINTS; ival++) { -- if ((free_list = fill_free_list()) == NULL) -+ if (!free_list && (free_list = fill_free_list()) == NULL) - return 0; - /* PyObject_New is inlined */ - v = free_list; diff --git a/lang/python/files/patch-Objects::weakrefobject.c b/lang/python/files/patch-Objects::weakrefobject.c deleted file mode 100644 index 13789fbde97..00000000000 --- a/lang/python/files/patch-Objects::weakrefobject.c +++ /dev/null @@ -1,65 +0,0 @@ -diff -u python/dist/src/Objects/weakrefobject.c:1.13.6.1 python/dist/src/Objects/weakrefobject.c:1.13.6.3 ---- Objects/weakrefobject.c:1.13.6.1 Thu Nov 20 14:13:51 2003 -+++ Objects/weakrefobject.c Wed Feb 4 15:13:43 2004 -@@ -624,20 +624,29 @@ - } - list = GET_WEAKREFS_LISTPTR(ob); - get_basic_refs(*list, &ref, &proxy); -- if (callback == NULL || callback == Py_None) -+ if (callback == Py_None) -+ callback = NULL; -+ if (callback == NULL) - /* return existing weak reference if it exists */ - result = ref; - if (result != NULL) -- Py_XINCREF(result); -+ Py_INCREF(result); - else { -+ /* Note: new_weakref() can trigger cyclic GC, so the weakref -+ list on ob can be mutated. This means that the ref and -+ proxy pointers we got back earlier may have been collected, -+ so we need to compute these values again before we use -+ them. */ - result = new_weakref(ob, callback); - if (result != NULL) { - if (callback == NULL) { - insert_head(result, list); - } - else { -- PyWeakReference *prev = (proxy == NULL) ? ref : proxy; -+ PyWeakReference *prev; - -+ get_basic_refs(*list, &ref, &proxy); -+ prev = (proxy == NULL) ? ref : proxy; - if (prev == NULL) - insert_head(result, list); - else -@@ -664,12 +673,19 @@ - } - list = GET_WEAKREFS_LISTPTR(ob); - get_basic_refs(*list, &ref, &proxy); -+ if (callback == Py_None) -+ callback = NULL; - if (callback == NULL) - /* attempt to return an existing weak reference if it exists */ - result = proxy; - if (result != NULL) -- Py_XINCREF(result); -+ Py_INCREF(result); - else { -+ /* Note: new_weakref() can trigger cyclic GC, so the weakref -+ list on ob can be mutated. This means that the ref and -+ proxy pointers we got back earlier may have been collected, -+ so we need to compute these values again before we use -+ them. */ - result = new_weakref(ob, callback); - if (result != NULL) { - PyWeakReference *prev; -@@ -678,6 +694,7 @@ - result->ob_type = &_PyWeakref_CallableProxyType; - else - result->ob_type = &_PyWeakref_ProxyType; -+ get_basic_refs(*list, &ref, &proxy); - if (callback == NULL) - prev = ref; - else diff --git a/lang/python/files/patch-configure b/lang/python/files/patch-configure index 40e715f8aa0..46e70b302d2 100644 --- a/lang/python/files/patch-configure +++ b/lang/python/files/patch-configure @@ -31,11 +31,3 @@ else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 -@@ -15001,6 +15007,7 @@ - hints.ai_family = AF_UNSPEC; - hints.ai_flags = passive ? AI_PASSIVE : 0; - hints.ai_socktype = SOCK_STREAM; -+ hints.ai_protocol = IPPROTO_TCP; - if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { - (void)gai_strerror(gaierr); - goto bad; diff --git a/lang/python/pkg-plist b/lang/python/pkg-plist index fb05501e908..acbd620b28e 100644 --- a/lang/python/pkg-plist +++ b/lang/python/pkg-plist @@ -614,6 +614,7 @@ lib/%%PYTHON_VERSION%%/email/test/data/msg_32.txt lib/%%PYTHON_VERSION%%/email/test/data/msg_33.txt lib/%%PYTHON_VERSION%%/email/test/data/msg_34.txt lib/%%PYTHON_VERSION%%/email/test/data/msg_35.txt +lib/%%PYTHON_VERSION%%/email/test/data/msg_40.txt lib/%%PYTHON_VERSION%%/email/test/test_email.py lib/%%PYTHON_VERSION%%/email/test/test_email.pyc lib/%%PYTHON_VERSION%%/email/test/test_email.pyo @@ -1578,7 +1579,6 @@ lib/%%PYTHON_VERSION%%/test/greyrgb.uue lib/%%PYTHON_VERSION%%/test/output/test_MimeWriter lib/%%PYTHON_VERSION%%/test/output/test_asynchat lib/%%PYTHON_VERSION%%/test/output/test_augassign -lib/%%PYTHON_VERSION%%/test/output/test_binascii lib/%%PYTHON_VERSION%%/test/output/test_cgi lib/%%PYTHON_VERSION%%/test/output/test_class lib/%%PYTHON_VERSION%%/test/output/test_coercion diff --git a/lang/python23/Makefile b/lang/python23/Makefile index 149b35f9877..59648c58b0c 100644 --- a/lang/python23/Makefile +++ b/lang/python23/Makefile @@ -6,8 +6,7 @@ # PORTNAME= python -PORTVERSION= 2.3.3 -PORTREVISION= 5 +PORTVERSION= 2.3.4 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -40,12 +39,12 @@ TOOLSDIR= ${PREFIX}/share/${PYTHON_VERSION} OPTIONS= THREADS "Enable thread support" on \ HUGE_STACK_SIZE "Use a larger thread stack" off \ - UCS2 "Use UCS2 instead of UCS4 for unicode support" off \ + UCS4 "Use UCS4 for unicode support" on \ PYMALLOC "Uses python's internal malloc" on .include <bsd.port.pre.mk> -.if defined(WITH_THREADS) +.if !defined(WITHOUT_THREADS) CONFIGURE_ARGS+= --with-threads CFLAGS+= ${PTHREAD_CFLAGS} .if defined(WITHOUT_HUGE_STACK_SIZE) @@ -61,7 +60,7 @@ CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" .endif # defined(LDFLAGS) .endif # defined(WITH_THREADS) -.if defined(WITHOUT_UCS2) +.if !defined(WITHOUT_UCS4) && !defined(WITH_UCS2) CONFIGURE_ARGS+= --enable-unicode=ucs4 .endif diff --git a/lang/python23/distinfo b/lang/python23/distinfo index 459b99fd3e5..36a4686946c 100644 --- a/lang/python23/distinfo +++ b/lang/python23/distinfo @@ -15,6 +15,8 @@ MD5 (python/Python-2.3.1.tgz) = a3dcbe1c7f173c8e3c7cce28495016ae MD5 (python/Python-2.3.2.tgz) = f54d7a529d444994b4b33429bbb45479 MD5 (python/Python-2.3.3.tgz) = 4d16732b1cfccc0ed250956d41463c61 SIZE (python/Python-2.3.3.tgz) = 8491380 +MD5 (python/Python-2.3.4.tgz) = b6cf0b19226861a38689d2fabd0931b3 +SIZE (python/Python-2.3.4.tgz) = 8502738 MD5 (python/Python-2.4.a0.20040106.tgz) = cde5962028bcfdb473455c57bbb24c18 MD5 (python/Python-2.4.a0.20040311.tgz) = 5619b787ce62a1ebac3c973179d36670 SIZE (python/Python-2.4.a0.20040311.tgz) = 8512702 diff --git a/lang/python23/files/patch-Objects::intobject.c b/lang/python23/files/patch-Objects::intobject.c deleted file mode 100644 index 05983721a6c..00000000000 --- a/lang/python23/files/patch-Objects::intobject.c +++ /dev/null @@ -1,12 +0,0 @@ -diff -u python/dist/src/Objects/intobject.c:2.105 python/dist/src/Objects/intobject.c:2.105.8.1 ---- Objects/intobject.c:2.105 Sat Jun 28 13:04:24 2003 -+++ Objects/intobject.c Sun Feb 8 10:56:07 2004 -@@ -1080,7 +1080,7 @@ - int ival; - #if NSMALLNEGINTS + NSMALLPOSINTS > 0 - for (ival = -NSMALLNEGINTS; ival < NSMALLPOSINTS; ival++) { -- if ((free_list = fill_free_list()) == NULL) -+ if (!free_list && (free_list = fill_free_list()) == NULL) - return 0; - /* PyObject_New is inlined */ - v = free_list; diff --git a/lang/python23/files/patch-Objects::weakrefobject.c b/lang/python23/files/patch-Objects::weakrefobject.c deleted file mode 100644 index 13789fbde97..00000000000 --- a/lang/python23/files/patch-Objects::weakrefobject.c +++ /dev/null @@ -1,65 +0,0 @@ -diff -u python/dist/src/Objects/weakrefobject.c:1.13.6.1 python/dist/src/Objects/weakrefobject.c:1.13.6.3 ---- Objects/weakrefobject.c:1.13.6.1 Thu Nov 20 14:13:51 2003 -+++ Objects/weakrefobject.c Wed Feb 4 15:13:43 2004 -@@ -624,20 +624,29 @@ - } - list = GET_WEAKREFS_LISTPTR(ob); - get_basic_refs(*list, &ref, &proxy); -- if (callback == NULL || callback == Py_None) -+ if (callback == Py_None) -+ callback = NULL; -+ if (callback == NULL) - /* return existing weak reference if it exists */ - result = ref; - if (result != NULL) -- Py_XINCREF(result); -+ Py_INCREF(result); - else { -+ /* Note: new_weakref() can trigger cyclic GC, so the weakref -+ list on ob can be mutated. This means that the ref and -+ proxy pointers we got back earlier may have been collected, -+ so we need to compute these values again before we use -+ them. */ - result = new_weakref(ob, callback); - if (result != NULL) { - if (callback == NULL) { - insert_head(result, list); - } - else { -- PyWeakReference *prev = (proxy == NULL) ? ref : proxy; -+ PyWeakReference *prev; - -+ get_basic_refs(*list, &ref, &proxy); -+ prev = (proxy == NULL) ? ref : proxy; - if (prev == NULL) - insert_head(result, list); - else -@@ -664,12 +673,19 @@ - } - list = GET_WEAKREFS_LISTPTR(ob); - get_basic_refs(*list, &ref, &proxy); -+ if (callback == Py_None) -+ callback = NULL; - if (callback == NULL) - /* attempt to return an existing weak reference if it exists */ - result = proxy; - if (result != NULL) -- Py_XINCREF(result); -+ Py_INCREF(result); - else { -+ /* Note: new_weakref() can trigger cyclic GC, so the weakref -+ list on ob can be mutated. This means that the ref and -+ proxy pointers we got back earlier may have been collected, -+ so we need to compute these values again before we use -+ them. */ - result = new_weakref(ob, callback); - if (result != NULL) { - PyWeakReference *prev; -@@ -678,6 +694,7 @@ - result->ob_type = &_PyWeakref_CallableProxyType; - else - result->ob_type = &_PyWeakref_ProxyType; -+ get_basic_refs(*list, &ref, &proxy); - if (callback == NULL) - prev = ref; - else diff --git a/lang/python23/files/patch-configure b/lang/python23/files/patch-configure index 40e715f8aa0..46e70b302d2 100644 --- a/lang/python23/files/patch-configure +++ b/lang/python23/files/patch-configure @@ -31,11 +31,3 @@ else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 -@@ -15001,6 +15007,7 @@ - hints.ai_family = AF_UNSPEC; - hints.ai_flags = passive ? AI_PASSIVE : 0; - hints.ai_socktype = SOCK_STREAM; -+ hints.ai_protocol = IPPROTO_TCP; - if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { - (void)gai_strerror(gaierr); - goto bad; diff --git a/lang/python23/pkg-plist b/lang/python23/pkg-plist index fb05501e908..acbd620b28e 100644 --- a/lang/python23/pkg-plist +++ b/lang/python23/pkg-plist @@ -614,6 +614,7 @@ lib/%%PYTHON_VERSION%%/email/test/data/msg_32.txt lib/%%PYTHON_VERSION%%/email/test/data/msg_33.txt lib/%%PYTHON_VERSION%%/email/test/data/msg_34.txt lib/%%PYTHON_VERSION%%/email/test/data/msg_35.txt +lib/%%PYTHON_VERSION%%/email/test/data/msg_40.txt lib/%%PYTHON_VERSION%%/email/test/test_email.py lib/%%PYTHON_VERSION%%/email/test/test_email.pyc lib/%%PYTHON_VERSION%%/email/test/test_email.pyo @@ -1578,7 +1579,6 @@ lib/%%PYTHON_VERSION%%/test/greyrgb.uue lib/%%PYTHON_VERSION%%/test/output/test_MimeWriter lib/%%PYTHON_VERSION%%/test/output/test_asynchat lib/%%PYTHON_VERSION%%/test/output/test_augassign -lib/%%PYTHON_VERSION%%/test/output/test_binascii lib/%%PYTHON_VERSION%%/test/output/test_cgi lib/%%PYTHON_VERSION%%/test/output/test_class lib/%%PYTHON_VERSION%%/test/output/test_coercion diff --git a/lang/python24/Makefile b/lang/python24/Makefile index 149b35f9877..59648c58b0c 100644 --- a/lang/python24/Makefile +++ b/lang/python24/Makefile @@ -6,8 +6,7 @@ # PORTNAME= python -PORTVERSION= 2.3.3 -PORTREVISION= 5 +PORTVERSION= 2.3.4 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -40,12 +39,12 @@ TOOLSDIR= ${PREFIX}/share/${PYTHON_VERSION} OPTIONS= THREADS "Enable thread support" on \ HUGE_STACK_SIZE "Use a larger thread stack" off \ - UCS2 "Use UCS2 instead of UCS4 for unicode support" off \ + UCS4 "Use UCS4 for unicode support" on \ PYMALLOC "Uses python's internal malloc" on .include <bsd.port.pre.mk> -.if defined(WITH_THREADS) +.if !defined(WITHOUT_THREADS) CONFIGURE_ARGS+= --with-threads CFLAGS+= ${PTHREAD_CFLAGS} .if defined(WITHOUT_HUGE_STACK_SIZE) @@ -61,7 +60,7 @@ CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" .endif # defined(LDFLAGS) .endif # defined(WITH_THREADS) -.if defined(WITHOUT_UCS2) +.if !defined(WITHOUT_UCS4) && !defined(WITH_UCS2) CONFIGURE_ARGS+= --enable-unicode=ucs4 .endif diff --git a/lang/python24/distinfo b/lang/python24/distinfo index 459b99fd3e5..36a4686946c 100644 --- a/lang/python24/distinfo +++ b/lang/python24/distinfo @@ -15,6 +15,8 @@ MD5 (python/Python-2.3.1.tgz) = a3dcbe1c7f173c8e3c7cce28495016ae MD5 (python/Python-2.3.2.tgz) = f54d7a529d444994b4b33429bbb45479 MD5 (python/Python-2.3.3.tgz) = 4d16732b1cfccc0ed250956d41463c61 SIZE (python/Python-2.3.3.tgz) = 8491380 +MD5 (python/Python-2.3.4.tgz) = b6cf0b19226861a38689d2fabd0931b3 +SIZE (python/Python-2.3.4.tgz) = 8502738 MD5 (python/Python-2.4.a0.20040106.tgz) = cde5962028bcfdb473455c57bbb24c18 MD5 (python/Python-2.4.a0.20040311.tgz) = 5619b787ce62a1ebac3c973179d36670 SIZE (python/Python-2.4.a0.20040311.tgz) = 8512702 diff --git a/lang/python24/files/patch-Objects::intobject.c b/lang/python24/files/patch-Objects::intobject.c deleted file mode 100644 index 05983721a6c..00000000000 --- a/lang/python24/files/patch-Objects::intobject.c +++ /dev/null @@ -1,12 +0,0 @@ -diff -u python/dist/src/Objects/intobject.c:2.105 python/dist/src/Objects/intobject.c:2.105.8.1 ---- Objects/intobject.c:2.105 Sat Jun 28 13:04:24 2003 -+++ Objects/intobject.c Sun Feb 8 10:56:07 2004 -@@ -1080,7 +1080,7 @@ - int ival; - #if NSMALLNEGINTS + NSMALLPOSINTS > 0 - for (ival = -NSMALLNEGINTS; ival < NSMALLPOSINTS; ival++) { -- if ((free_list = fill_free_list()) == NULL) -+ if (!free_list && (free_list = fill_free_list()) == NULL) - return 0; - /* PyObject_New is inlined */ - v = free_list; diff --git a/lang/python24/files/patch-Objects::weakrefobject.c b/lang/python24/files/patch-Objects::weakrefobject.c deleted file mode 100644 index 13789fbde97..00000000000 --- a/lang/python24/files/patch-Objects::weakrefobject.c +++ /dev/null @@ -1,65 +0,0 @@ -diff -u python/dist/src/Objects/weakrefobject.c:1.13.6.1 python/dist/src/Objects/weakrefobject.c:1.13.6.3 ---- Objects/weakrefobject.c:1.13.6.1 Thu Nov 20 14:13:51 2003 -+++ Objects/weakrefobject.c Wed Feb 4 15:13:43 2004 -@@ -624,20 +624,29 @@ - } - list = GET_WEAKREFS_LISTPTR(ob); - get_basic_refs(*list, &ref, &proxy); -- if (callback == NULL || callback == Py_None) -+ if (callback == Py_None) -+ callback = NULL; -+ if (callback == NULL) - /* return existing weak reference if it exists */ - result = ref; - if (result != NULL) -- Py_XINCREF(result); -+ Py_INCREF(result); - else { -+ /* Note: new_weakref() can trigger cyclic GC, so the weakref -+ list on ob can be mutated. This means that the ref and -+ proxy pointers we got back earlier may have been collected, -+ so we need to compute these values again before we use -+ them. */ - result = new_weakref(ob, callback); - if (result != NULL) { - if (callback == NULL) { - insert_head(result, list); - } - else { -- PyWeakReference *prev = (proxy == NULL) ? ref : proxy; -+ PyWeakReference *prev; - -+ get_basic_refs(*list, &ref, &proxy); -+ prev = (proxy == NULL) ? ref : proxy; - if (prev == NULL) - insert_head(result, list); - else -@@ -664,12 +673,19 @@ - } - list = GET_WEAKREFS_LISTPTR(ob); - get_basic_refs(*list, &ref, &proxy); -+ if (callback == Py_None) -+ callback = NULL; - if (callback == NULL) - /* attempt to return an existing weak reference if it exists */ - result = proxy; - if (result != NULL) -- Py_XINCREF(result); -+ Py_INCREF(result); - else { -+ /* Note: new_weakref() can trigger cyclic GC, so the weakref -+ list on ob can be mutated. This means that the ref and -+ proxy pointers we got back earlier may have been collected, -+ so we need to compute these values again before we use -+ them. */ - result = new_weakref(ob, callback); - if (result != NULL) { - PyWeakReference *prev; -@@ -678,6 +694,7 @@ - result->ob_type = &_PyWeakref_CallableProxyType; - else - result->ob_type = &_PyWeakref_ProxyType; -+ get_basic_refs(*list, &ref, &proxy); - if (callback == NULL) - prev = ref; - else diff --git a/lang/python24/files/patch-configure b/lang/python24/files/patch-configure index 40e715f8aa0..46e70b302d2 100644 --- a/lang/python24/files/patch-configure +++ b/lang/python24/files/patch-configure @@ -31,11 +31,3 @@ else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 -@@ -15001,6 +15007,7 @@ - hints.ai_family = AF_UNSPEC; - hints.ai_flags = passive ? AI_PASSIVE : 0; - hints.ai_socktype = SOCK_STREAM; -+ hints.ai_protocol = IPPROTO_TCP; - if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { - (void)gai_strerror(gaierr); - goto bad; diff --git a/lang/python24/pkg-plist b/lang/python24/pkg-plist index fb05501e908..acbd620b28e 100644 --- a/lang/python24/pkg-plist +++ b/lang/python24/pkg-plist @@ -614,6 +614,7 @@ lib/%%PYTHON_VERSION%%/email/test/data/msg_32.txt lib/%%PYTHON_VERSION%%/email/test/data/msg_33.txt lib/%%PYTHON_VERSION%%/email/test/data/msg_34.txt lib/%%PYTHON_VERSION%%/email/test/data/msg_35.txt +lib/%%PYTHON_VERSION%%/email/test/data/msg_40.txt lib/%%PYTHON_VERSION%%/email/test/test_email.py lib/%%PYTHON_VERSION%%/email/test/test_email.pyc lib/%%PYTHON_VERSION%%/email/test/test_email.pyo @@ -1578,7 +1579,6 @@ lib/%%PYTHON_VERSION%%/test/greyrgb.uue lib/%%PYTHON_VERSION%%/test/output/test_MimeWriter lib/%%PYTHON_VERSION%%/test/output/test_asynchat lib/%%PYTHON_VERSION%%/test/output/test_augassign -lib/%%PYTHON_VERSION%%/test/output/test_binascii lib/%%PYTHON_VERSION%%/test/output/test_cgi lib/%%PYTHON_VERSION%%/test/output/test_class lib/%%PYTHON_VERSION%%/test/output/test_coercion |