[issue25720] Fix curses module compilation with ncurses6

2017-11-01 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset 6ba0b583d6785a256b17d27431908d67015eeeb6 by Serhiy Storchaka 
(Miss Islington (bot)) in branch '2.7':
bpo-25720: Fix the method for checking pad state of curses WINDOW (GH-4164) 
(#4213)
https://github.com/python/cpython/commit/6ba0b583d6785a256b17d27431908d67015eeeb6


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2017-11-01 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Thank you for your contribution Masayuki!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2017-11-01 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset ff6ae4de3874f4922a5883f08bb661c93834b060 by Serhiy Storchaka 
(Miss Islington (bot)) in branch '3.6':
bpo-25720: Fix the method for checking pad state of curses WINDOW (GH-4164) 
(#4212)
https://github.com/python/cpython/commit/ff6ae4de3874f4922a5883f08bb661c93834b060


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2017-11-01 Thread Roundup Robot

Change by Roundup Robot :


--
pull_requests: +4182

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2017-11-01 Thread Roundup Robot

Change by Roundup Robot :


--
pull_requests: +4181

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2017-11-01 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset 8bc7d63560024681dce9f40445f2877b2987e92c by Serhiy Storchaka 
(Masayuki Yamamoto) in branch 'master':
bpo-25720: Fix the method for checking pad state of curses WINDOW (#4164)
https://github.com/python/cpython/commit/8bc7d63560024681dce9f40445f2877b2987e92c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2017-10-29 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

I'll try to test this on NetBSD after fixing curses on NetBSD. It uses a 
different implementation of curses which don't support is_pad.

--
dependencies: +Make curses compiling on NetBSD 7.1 and tests passing
versions: +Python 2.7, Python 3.6 -Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2017-10-29 Thread Masayuki Yamamoto

Masayuki Yamamoto  added the comment:

I opened PR 4164 to improve the is_pad configure check and previous PR was 
closed.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2017-10-29 Thread Masayuki Yamamoto

Change by Masayuki Yamamoto :


--
pull_requests: +4133

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2017-06-23 Thread Masayuki Yamamoto

Masayuki Yamamoto added the comment:

Ping. I updated PR a bit: macOS is joined to new compile condition and remove 
platform-specific condition.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2017-05-20 Thread Masayuki Yamamoto

Masayuki Yamamoto added the comment:

Hi, I finished various things and tackle the issue again, I opened PR 1689 at 
last.

Changes from previous patch:
* If ncurses doesn't have both is_pad function and _flags field of WINDOW, 
NCURSES_OPAQUE is defined as zero to make WINDOW to non-opaque type before 
including ncurses.h.
* The conditional compile on function definition are kept, it replaces 
WINDOW_HAS_FLAGS with py_is_pad macro itself.
* Unindent the blocks that places after section of the conditional compile on 
function definition.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2017-05-20 Thread Masayuki Yamamoto

Changes by Masayuki Yamamoto :


--
pull_requests: +1782

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2017-02-14 Thread Ismail Donmez

Ismail Donmez added the comment:

What's the status on this? Can you please create a pull request on Github so we 
can continue there?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-10-09 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

Thanks, building is fine here.

By the way, testing is broken due to other bugs (/tmp not available on 
Android). It's unrelated and I'll open a new issue for that.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-10-09 Thread Masayuki Yamamoto

Masayuki Yamamoto added the comment:

Thank you for confirming, Yen :)
In this case, It seems necessary that resolves headers. I think missing headers 
issue maybe solve by #28190. I wrote a join test patch for #28190 and #25720.
Would you be able to resolve headers using this?

--
Added file: 
http://bugs.python.org/file45037/join-test-issue28190-issue25720.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-10-09 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

headers.sh in ncurses changes "#include " to the actual path. For 
example here's a line in my unctrl.h:

#include 

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-10-08 Thread Masayuki Yamamoto

Masayuki Yamamoto added the comment:

Added comment in review.

Yen,  I tried to build without curses.h file (overwrite to ncurses.h). It was 
failed on checking header. Hence, I confirmed curses headers on Cygwin and 
Ubuntu.

I found out that curses.h includes the directive "#include ". And 
unctrl.h has "#include ". Therefore, I think that some platforms 
require curses.h.
Would you confirm your platform curses library?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-10-07 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

Thanks masamoto! There's another minor issue about this patch: if there's no 
curses.h (ncurses built with --without-curses-h), the detection always fails.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-10-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Added a comment on Rietveld.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-10-07 Thread Ismail Donmez

Ismail Donmez added the comment:

@masamoto thank you!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-10-07 Thread Masayuki Yamamoto

Masayuki Yamamoto added the comment:

I updated the patch that add configuration check for is_pad. the is_pad is 
wrapped into py_is_pad at Modules/_cursesmodule.c:932 by either of three ways.

Case one -- is_pad is found: Define the macro that is simple wrapping.
Case two -- is_pad is not found, however WINDOW has _flags field: Define the 
macro using _flags field.
Case three -- is_pad is not found, and WINDOW doesn't have _flags field: Define 
the macro that is always preprocessed to FALSE.

I succeeded to build curses module on Cygwin (Vista x86) using this patch.
This patch doesn't include that undo fixes for specific platforms.

--
versions: +Python 3.7
Added file: http://bugs.python.org/file45002/curses-is_pad.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-10-05 Thread Mark Dickinson

Mark Dickinson added the comment:

> Mark, do you have relation to this?

Sorry, no. Whatever ncurses knowledge I may once have had has long since 
vanished.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-10-05 Thread Masayuki Yamamoto

Masayuki Yamamoto added the comment:

I tried to build curses module on Cygwin (Vista x86) using #25720 patch. And it 
has been succeeded.
When test_curses ran without skip condition, it was same result as msg278060 
(#28190).

I found out build success reasons for cases of applying patch:
#25720 -- implementation of WINDOW is opaque (*but* WINDOW_HAS_FLAGS is defined 
at Include/py_curses.h:61 ). However, curses module build went well to cover 
the _flags field from source code by is_pad.
#14598 -- implementation of WINDOW is not opaque (WINDOWS_HAS_FLAGS is defined 
at configure script). Therefore, curses module build went well because WINDOW 
has the _flags field.
#28190 -- implementation of WINDOW is opaque (WINDOW_HAS_FLAGS isn't defined: 
py_curses.h has been cleaned by patch). Hence, curses module build went well to 
remove the _flags field from source code at preprocessing.

All case tests on Cygwin have failed at unget_wch.

--
nosy: +masamoto

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-10-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Mark, do you have relation to this?

--
nosy: +mark.dickinson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-10-04 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

is_pad is added in ncurses 5.7-20090906 [1]. At least Mac OS X still ships 
ancient ncurses 5.7-20081102 [2], so an check in configure.ac is necessary. I'm 
trying it out.

[1] http://invisible-island.net/ncurses/NEWS.html#t20090906
[2] http://opensource.apple.com//source/ncurses/ncurses-46/ncurses/NEWS

--
nosy: +Chi Hsuan Yen

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-03-19 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I suspect that the patch can break build with non-ncurses implementations or 
with old ncurses (when is_pad() was added?). Needed more direct feature check.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-03-19 Thread Ismail Donmez

Ismail Donmez added the comment:

ping?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-01-13 Thread Ismail Donmez

Ismail Donmez added the comment:

Any patch review/comment ?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-01-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

configure.ac directly uses w->_flags in a check. It looks that this check 
always fails with ncurses6.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2016-01-13 Thread Ismail Donmez

Ismail Donmez added the comment:

Thats not an issue for ncurses because Include/py_curses.h does:

  #ifdef HAVE_NCURSES_H
  /* configure was checking , but we will
 use , which has all these features. */
  #ifndef WINDOW_HAS_FLAGS
  #define WINDOW_HAS_FLAGS 1
  #endif
  #ifndef MVWDELCH_IS_EXPRESSION
  #define MVWDELCH_IS_EXPRESSION 1
  #endif
  #endif

So it overrides WINDOW_HAS_FLAGS for ncurses case.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2015-11-24 Thread Ismail Donmez

New submission from Ismail Donmez:

ncurses6 turned on NCURSES_OPAQUE, so now you have to use some helper functions 
instead of accessing the structs directly. This _should_ be compatible with 
ncurses5 though I didn't test it.

Original patch is from openSUSE.

--
components: Extension Modules
files: curses-ncurses6.patch
keywords: patch
messages: 255261
nosy: donmez
priority: normal
severity: normal
status: open
title: Fix curses module compilation with ncurses6
versions: Python 3.5
Added file: http://bugs.python.org/file41148/curses-ncurses6.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25720] Fix curses module compilation with ncurses6

2015-11-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +serhiy.storchaka, twouters
stage:  -> patch review
type:  -> compile error

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com