Ticket #51939: python34-pyport.h.patch

File python34-pyport.h.patch, 1.8 KB (added by Ionic (Mihai Moldovan), 8 years ago)

Patch against python34.

  • dports/lang/python34/Portfile

    diff --git a/dports/lang/python34/Portfile b/dports/lang/python34/Portfile
    index 4539528..0bc92e8 100644
    a b name python34 
    88
    99# Remember to keep py34-tkinter and py34-gdbm's versions sync'd with this
    1010version             3.4.5
     11revision            1
    1112
    1213epoch               20160627
    1314
    patchfiles patch-setup.py.diff \ 
    3839                    patch-setup.py-disabled_modules.diff \
    3940                    patch-Lib-ctypes-macholib-dyld.py.diff \
    4041                    patch-libedit.diff \
    41                     omit-local-site-packages.patch
     42                    omit-local-site-packages.patch \
     43                    patch-Include-pyport.h.diff
    4244
    4345depends_lib         port:zlib path:lib/libssl.dylib:openssl \
    4446                    port:sqlite3 port:ncurses \
  • new file dports/lang/python34/files/patch-Include-pyport.h.diff

    diff --git a/dports/lang/python34/files/patch-Include-pyport.h.diff b/dports/lang/python34/files/patch-Include-pyport.h.diff
    new file mode 100644
    index 0000000..4ddb702
    - +  
     1--- Include/pyport.h.old        2016-06-25 23:52:29.000000000 +0200
     2+++ Include/pyport.h    2016-08-01 07:32:02.000000000 +0200
     3@@ -691,6 +691,12 @@ extern pid_t forkpty(int *, char *, stru
     4 #endif
     5 
     6 #ifdef _PY_PORT_CTYPE_UTF8_ISSUE
     7+#ifndef __cplusplus
     8+   /* The workaround below is unsafe in C++ because
     9+    * the <locale> defines these symbols as real functions,
     10+    * with a slightly different signature.
     11+    * See issue #10910
     12+    */
     13 #include <ctype.h>
     14 #include <wctype.h>
     15 #undef isalnum
     16@@ -708,6 +714,7 @@ extern pid_t forkpty(int *, char *, stru
     17 #undef toupper
     18 #define toupper(c) towupper(btowc(c))
     19 #endif
     20+#endif
     21 
     22 
     23 /* Declarations for symbol visibility.