From b148812a107ae36368c58c6a72f8e71373c689ac Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Mon, 13 Feb 2017 16:10:16 +0200 Subject: [PATCH] python: remove setupterm() redefinition It's not 100% aligned with the ncurses' definition. Reported-by: Arturo Rinaldi Signed-off-by: Alexandru Ardelean --- lang/python/Makefile | 2 +- .../patches/011-remove-setupterm-definition.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 lang/python/patches/011-remove-setupterm-definition.patch diff --git a/lang/python/Makefile b/lang/python/Makefile index 6307dc3a5..d17b6e134 100644 --- a/lang/python/Makefile +++ b/lang/python/Makefile @@ -12,7 +12,7 @@ include ./files/python-version.mk PKG_NAME:=python PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO) -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION) diff --git a/lang/python/patches/011-remove-setupterm-definition.patch b/lang/python/patches/011-remove-setupterm-definition.patch new file mode 100644 index 000000000..e55d70818 --- /dev/null +++ b/lang/python/patches/011-remove-setupterm-definition.patch @@ -0,0 +1,12 @@ +diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c +index e478a57..eb297b4 100644 +--- a/Modules/_cursesmodule.c ++++ b/Modules/_cursesmodule.c +@@ -117,7 +117,6 @@ char *PyCursesVersion = "2.2"; + #defines many common symbols (such as "lines") which breaks the + curses module in other ways. So the code will just specify + explicit prototypes here. */ +-extern int setupterm(char *,int,int *); + #ifdef __sgi + #include + #endif