I just figured out that the original patch here is incorrect. have_header("form.h") will fail on a system (such as a pbuilder) with only ncursesw and not ncurses. We need to call find_header to ensure that /usr/include/ncursesw is added to the include path, HAVE_FORM_H is defined, etc.
Attached is a diff of what I'm using at http://apt.rupamsunyata.org/sup/. With it, sup works. Without it, it doesn't (#520374). -- things change. deck...@red-bean.com
ncurses-ruby-ncursesw.diff
Description: Binary data