New submission from Chi Hsuan Yen:

In changeset 919259054621 (from issue12567) and 707761d59a4a (from issue15268), 
/usr/include/ncursesw was added to include paths in setup.py and configure.ac. 
This is wrong and breaks cross-compiling. For example, if   host has 
/usr/include/ncursesw/ncurses.h and target has $SYSROOT/include/ncurses.h, the 
build fails. An example can be found in [1].

My patch removes all references to /usr/include/ncursesw and uses a robust 
detection, which is suitable for both native builds and cross builds.

Added the authors of aforementioned changesets.

[1] https://s3.amazonaws.com/archive.travis-ci.org/jobs/159936249/log.txt

----------
components: Build, Cross-Build
files: ncurses.patch
keywords: patch
messages: 276806
nosy: Alex.Willmer, Chi Hsuan Yen, doko, haypo
priority: normal
severity: normal
status: open
title: Cross-build _curses failed if host ncurses headers and target ncurses 
headers have different layouts
type: compile error
versions: Python 3.7
Added file: http://bugs.python.org/file44718/ncurses.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28190>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to