aboutsummaryrefslogtreecommitdiff
path: root/lang/python32/files
diff options
context:
space:
mode:
authorKubilay Kocak <koobs@FreeBSD.org>2013-12-01 09:36:49 +0000
committerKubilay Kocak <koobs@FreeBSD.org>2013-12-01 09:36:49 +0000
commit7472d2087e406d133ba31bb2b99517a39c79da1c (patch)
tree9c643cd30529f4f8b64a1381796298141c69cc47 /lang/python32/files
parent8dee9b33cdc26cf71f3a43a8ed99cfdec48db2bd (diff)
downloadports-7472d2087e406d133ba31bb2b99517a39c79da1c.tar.gz
ports-7472d2087e406d133ba31bb2b99517a39c79da1c.zip
lang/python32: Backport upstream kevent fix
Backport a change fixing use of kevent flags that was merged to Python default, 3.3 and 2.7 branches, but not 3.2 and 3.1 that were in security-only mode at the time of commit. [1] - Add patch: patch-Modules__selectmodule.c References: [1] Issue #11973: Fix a problem in kevent. The flags and fflags fields are now properly handled as unsigned. [#11973] http://bugs.python.org/issue11973 http://hg.python.org/cpython/rev/8345fb616cbd While I'm here: - Add LICENSE (PSFL) - Clean up, reorganise, sort & whitespace align sections PR: ports/156759 Submitted by: David Naylor <naylor.b.david@gmail.com> Reviewed by: mva
Notes
Notes: svn path=/head/; revision=335371
Diffstat (limited to 'lang/python32/files')
-rw-r--r--lang/python32/files/patch-Modules__selectmodule.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/python32/files/patch-Modules__selectmodule.c b/lang/python32/files/patch-Modules__selectmodule.c
new file mode 100644
index 000000000000..5a14678829f0
--- /dev/null
+++ b/lang/python32/files/patch-Modules__selectmodule.c
@@ -0,0 +1,11 @@
+--- ./Modules/selectmodule.c.orig 2013-11-30 23:03:20.030929248 +1100
++++ ./Modules/selectmodule.c 2013-11-30 23:03:56.111022639 +1100
+@@ -1246,7 +1246,7 @@
+ PyObject *pfd;
+ static char *kwlist[] = {"ident", "filter", "flags", "fflags",
+ "data", "udata", NULL};
+- static char *fmt = "O|hhi" INTPTRT_FMT_UNIT UINTPTRT_FMT_UNIT ":kevent";
++ static char *fmt = "O|hHI" INTPTRT_FMT_UNIT UINTPTRT_FMT_UNIT ":kevent";
+
+ EV_SET(&(self->e), 0, EVFILT_READ, EV_ADD, 0, 0, 0); /* defaults */
+