mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
Merge pull request #4042 from commodo/backport-ncurses-fixes
[lede-17.01] python,python3: backport fixes for `ncurses` extension builds
This commit is contained in:
@@ -12,7 +12,7 @@ include ./files/python-version.mk
|
|||||||
|
|
||||||
PKG_NAME:=python
|
PKG_NAME:=python
|
||||||
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
|
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
|
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
|
||||||
|
|||||||
@@ -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 <term.h>
|
||||||
|
#endif
|
||||||
@@ -14,7 +14,7 @@ PYTHON_VERSION:=$(PYTHON3_VERSION)
|
|||||||
PYTHON_VERSION_MICRO:=$(PYTHON3_VERSION_MICRO)
|
PYTHON_VERSION_MICRO:=$(PYTHON3_VERSION_MICRO)
|
||||||
|
|
||||||
PKG_NAME:=python3
|
PKG_NAME:=python3
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
|
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
|
||||||
|
|
||||||
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
|
||||||
|
index 3bf2ca7..c156964 100644
|
||||||
|
--- a/Modules/_cursesmodule.c
|
||||||
|
+++ b/Modules/_cursesmodule.c
|
||||||
|
@@ -116,7 +116,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 <term.h>
|
||||||
|
#endif
|
||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index af9a414..ee19ecd 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -1349,7 +1349,6 @@ class PyBuildExt(build_ext):
|
||||||
|
panel_library = 'panel'
|
||||||
|
if curses_library == 'ncursesw':
|
||||||
|
curses_defines.append(('HAVE_NCURSESW', '1'))
|
||||||
|
- curses_includes.append('/usr/include/ncursesw')
|
||||||
|
# Bug 1464056: If _curses.so links with ncursesw,
|
||||||
|
# _curses_panel.so must link with panelw.
|
||||||
|
panel_library = 'panelw'
|
||||||
Reference in New Issue
Block a user