From b139144e0791b66880477857326e182f4d856cc1 Mon Sep 17 00:00:00 2001 From: wiz Date: Mon, 7 Dec 2015 09:07:43 +0000 Subject: Fix compilation of py-curses for python35. --- lang/python35/distinfo | 5 ++--- lang/python35/patches/patch-Modules___cursesmodule.c | 10 +++++----- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'lang/python35') diff --git a/lang/python35/distinfo b/lang/python35/distinfo index 3c1f343a28c..62884fd0476 100644 --- a/lang/python35/distinfo +++ b/lang/python35/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.1 2015/12/05 17:12:13 adam Exp $ +$NetBSD: distinfo,v 1.2 2015/12/07 09:07:43 wiz Exp $ SHA1 (Python-3.5.0.tar.xz) = 871a06df9ab70984b7398ac53047fe125c757a70 RMD160 (Python-3.5.0.tar.xz) = 3f9c287549eacd4aa95a03cc03954ef35546a3a3 @@ -8,9 +8,8 @@ SHA1 (patch-Include_py__curses.h) = 14359f8d0527eff08073c0aea60dfe8961d9255d SHA1 (patch-Lib_distutils_command_install.py) = 9b44f339f65f029b7f17dbc654739a7ae3c12780 SHA1 (patch-Lib_distutils_unixccompiler.py) = 39cb8d1e1e3e76e2b6b5dbc1a6b5e0815300b2ce SHA1 (patch-Makefile.pre.in) = 3ed3cf07d58ae15adf26d4bffb381eae0e080f21 -SHA1 (patch-Modules___cursesmodule.c) = a638b731841cd6279d63c0ab0cb51aa45dc1c254 +SHA1 (patch-Modules___cursesmodule.c) = 6bc66c9cb5320b4f90872024fc9c1e43d0b34928 SHA1 (patch-Modules_makesetup) = c9b571eb54fdf0b1e93524a6de6780e8c4119221 SHA1 (patch-Modules_nismodule.c) = bd290417c265846e238660180e60e76c0f5f696a SHA1 (patch-Python_thread__pthread.h) = fb81eaa604b4ed7c1b64c3f4731d58a8aee257be SHA1 (patch-configure) = 069f7bb10d98e3616f52859a2cf90c7f5732425e -SHA1 (patch-setup.py) = 1752a06fec7626af57e85b6cbd9b6cc38b99272f diff --git a/lang/python35/patches/patch-Modules___cursesmodule.c b/lang/python35/patches/patch-Modules___cursesmodule.c index 5541d37c604..b9a2d6a9919 100644 --- a/lang/python35/patches/patch-Modules___cursesmodule.c +++ b/lang/python35/patches/patch-Modules___cursesmodule.c @@ -1,4 +1,4 @@ -$NetBSD: patch-Modules___cursesmodule.c,v 1.1 2015/12/05 17:12:13 adam Exp $ +$NetBSD: patch-Modules___cursesmodule.c,v 1.2 2015/12/07 09:07:43 wiz Exp $ Ncurses will be used by devel/py-curses and devel/py-cursespanel. http://bugs.python.org/issue21457 @@ -43,14 +43,14 @@ http://bugs.python.org/issue21457 static PyObject * PyCurses_KeyName(PyObject *self, PyObject *args) { -@@ -2669,7 +2656,6 @@ PyCurses_MouseMask(PyObject *self, PyObj - availmask = mousemask(newmask, &oldmask); - return Py_BuildValue("(ll)", (long)availmask, (long)oldmask); +@@ -2614,7 +2601,6 @@ PyCurses_KeyName(PyObject *self, PyObjec + + return PyBytes_FromString((knp == NULL) ? "" : knp); } -#endif static PyObject * - PyCurses_Napms(PyObject *self, PyObject *args) + PyCurses_KillChar(PyObject *self) @@ -3228,9 +3214,7 @@ static PyMethodDef PyCurses_methods[] = #ifdef HAVE_CURSES_IS_TERM_RESIZED {"is_term_resized", (PyCFunction)PyCurses_Is_Term_Resized, METH_VARARGS}, -- cgit v1.2.3