[150875] trunk

ionic at macports.org ionic at macports.org
Sun Jul 31 23:44:15 PDT 2016


Revision: 150875
          https://trac.macports.org/changeset/150875
Author:   ionic at macports.org
Date:     2016-07-31 23:44:14 -0700 (Sun, 31 Jul 2016)
Log Message:
-----------
python32: backport patch from #44288. Part of #51939.

Modified Paths:
--------------
    trunk/dports/lang/python32/Portfile

Added Paths:
-----------
    trunk/lang/python32/
    trunk/lang/python32/files/
    trunk/lang/python32/files/patch-Include-pyport.h.diff

Modified: trunk/dports/lang/python32/Portfile
===================================================================
--- trunk/dports/lang/python32/Portfile	2016-08-01 06:44:08 UTC (rev 150874)
+++ trunk/dports/lang/python32/Portfile	2016-08-01 06:44:14 UTC (rev 150875)
@@ -8,7 +8,7 @@
 epoch                   20120412
 # Remember to keep py32-tkinter and py32-gdbm's versions sync'd with this
 version                 3.2.6
-revision                3
+revision                4
 
 set major               [lindex [split $version .] 0]
 set branch              [join [lrange [split ${version} .] 0 1] .]
@@ -37,7 +37,8 @@
                         patch-configure.diff \
                         patch-setup.py-disabled_modules.diff \
                         patch-libedit.diff \
-                        patch-Lib-site.py-omit_local_site_packages.diff
+                        patch-Lib-site.py-omit_local_site_packages.diff \
+                        patch-Include-pyport.h.diff
 
 # http://bugs.python.org/issue21811
 patchfiles-append       patch-configure_configure.ac-yosemite_configure_fixes.diff \

Added: trunk/lang/python32/files/patch-Include-pyport.h.diff
===================================================================
--- trunk/lang/python32/files/patch-Include-pyport.h.diff	                        (rev 0)
+++ trunk/lang/python32/files/patch-Include-pyport.h.diff	2016-08-01 06:44:14 UTC (rev 150875)
@@ -0,0 +1,23 @@
+--- Include/pyport.h.old	2014-10-12 08:52:01.000000000 +0200
++++ Include/pyport.h	2016-08-01 06:22:09.000000000 +0200
+@@ -697,6 +697,12 @@ extern pid_t forkpty(int *, char *, stru
+ #endif
+ 
+ #ifdef _PY_PORT_CTYPE_UTF8_ISSUE
++#ifndef __cplusplus
++   /* The workaround below is unsafe in C++ because
++    * the <locale> defines these symbols as real functions,
++    * with a slightly different signature.
++    * See issue #10910
++    */
+ #include <ctype.h>
+ #include <wctype.h>
+ #undef isalnum
+@@ -714,6 +720,7 @@ extern pid_t forkpty(int *, char *, stru
+ #undef toupper
+ #define toupper(c) towupper(btowc(c))
+ #endif
++#endif
+ 
+ 
+ /* Declarations for symbol visibility.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160731/7759b5d6/attachment.html>


More information about the macports-changes mailing list