Comment 3 for bug 1021783

Revision history for this message
Jason Conti (jconti) wrote :

Affects the package in quantal as well. Part of the patch to enable linking to libncursesw5 seems to have been dropped between python2.7 and python3.2, so looking at the build log we see:

checking ncurses.h usability... no
checking ncurses.h presence... no
checking for ncurses.h... no

But in the python2.7 build log, those are all yes. If HAVE_NCURSES_H is not set, we do not get WINDOW_HAS_FLAGS, which is checked to determine if pad.refresh() has arguments or not. (In Modules/_cursesmodule.c:PyCursesWindow_Refresh)

Attaching a debdiff which adds back the part of debian/patches/ncursesw-include.diff against to add /usr/include/ncursesw/ to CPPFLAGS when looking for the headers/checking features. Rebuilding with the patch and your test case succeeds.