1 From 788cd0464ee2b175493a0167ceee8c0045ce323c Mon Sep 17 00:00:00 2001
2 From: Alexander Kanavin <alex.kanavin@gmail.com>
3 Date: Sun, 16 Feb 2020 17:50:25 +0100
4 Subject: [PATCH] configure.ac, setup.py: do not add a curses include path from
7 This leads to host contamination, and particularly can cause
8 curses modules to fail at runtime if the host curses is configured
9 differently to native curses (observed on current OpenSuse Tumbleweed
12 Upstream-Status: Inappropriate [oe-core specific]
13 Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
16 configure.ac | 6 ------
18 2 files changed, 8 deletions(-)
20 diff --git a/configure.ac b/configure.ac
21 index e5e3df8..bfdd987 100644
24 @@ -5092,12 +5092,6 @@ then
25 [Define if you have struct stat.st_mtimensec])
28 -# first curses header check
29 -ac_save_cppflags="$CPPFLAGS"
30 -if test "$cross_compiling" = no; then
31 - CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
34 AC_CHECK_HEADERS(curses.h ncurses.h)
36 # On Solaris, term.h requires curses.h
37 diff --git a/setup.py b/setup.py
38 index 62f0e18..c190002 100644
41 @@ -1169,8 +1169,6 @@ class PyBuildExt(build_ext):
42 panel_library = 'panel'
43 if curses_library == 'ncursesw':
44 curses_defines.append(('HAVE_NCURSESW', '1'))
45 - if not CROSS_COMPILING:
46 - curses_includes.append('/usr/include/ncursesw')
47 # Bug 1464056: If _curses.so links with ncursesw,
48 # _curses_panel.so must link with panelw.
49 panel_library = 'panelw'