Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | From 788cd0464ee2b175493a0167ceee8c0045ce323c Mon Sep 17 00:00:00 2001 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 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 |
| 5 | the host |
| 6 | |
| 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 |
| 10 | as dnf failures). |
| 11 | |
| 12 | Upstream-Status: Inappropriate [oe-core specific] |
| 13 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 14 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 15 | --- |
| 16 | configure.ac | 6 ------ |
| 17 | setup.py | 2 -- |
| 18 | 2 files changed, 8 deletions(-) |
| 19 | |
| 20 | diff --git a/configure.ac b/configure.ac |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 21 | index e5e3df8..bfdd987 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 22 | --- a/configure.ac |
| 23 | +++ b/configure.ac |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 24 | @@ -5092,12 +5092,6 @@ then |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 25 | [Define if you have struct stat.st_mtimensec]) |
| 26 | fi |
| 27 | |
| 28 | -# first curses header check |
| 29 | -ac_save_cppflags="$CPPFLAGS" |
| 30 | -if test "$cross_compiling" = no; then |
| 31 | - CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" |
| 32 | -fi |
| 33 | - |
| 34 | AC_CHECK_HEADERS(curses.h ncurses.h) |
| 35 | |
| 36 | # On Solaris, term.h requires curses.h |
| 37 | diff --git a/setup.py b/setup.py |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 38 | index 62f0e18..c190002 100644 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 39 | --- a/setup.py |
| 40 | +++ b/setup.py |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 41 | @@ -1169,8 +1169,6 @@ class PyBuildExt(build_ext): |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 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' |