homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author enchanter
Recipients enchanter, loewis, mschmarck, pitrou
Date 2009年03月31日.21:37:44
SpamBayes Score 1.0387913e-11
Marked as misclassified No
Message-id <1238535466.89.0.205040682032.issue3786@psf.upfronthosting.co.za>
In-reply-to
Content
Solaris has both traditional System V curses and an XPG4-compatible
curses that does include mvwchgat. The traditional system V curses is
the default, for backward compatibility.
If you want the XPG4 compatible curses, you need to make sure
-I/usr/xpg4/include and -L/usr/xpg4/lib -R/usr/xpg4/lib (or their 64-bit
equivalents) are in CPPFLAGS/CFLAGS/LDFLAGS so that the XPG4 curses is
discovered. See the man page for mvwchgat(3XCURSES) on Solaris for more
info.
The difficulty for Python is that it also tries to build a readline
module, and the libreadline was more than likely linked against the
default system V curses. That means that if you add the -I and -L/-R
flags to get XPG4 curses for all of the Python build, you'll probably
get a link failure or worse when building the readline module.
There are at least two ways around this:
- rebuild readline to use XPG4 curses, and then rebuild every single
 application that links against readline. Then build Python, using
 the -I and -L/-R flags to get XPG4 curses for the entire Python build.
- modify the setup.py for the _curses module so that
 logic is added for Solaris to look for the XPG4 curses only during
 the build of the _curses module.
There is, however, no XPG4 panels library, since panels was not part of
the XPG4 specification. That means that with the appropriate Python
code in setup.py it would be possible to build _curses against XPG4
curses lib, but _curses_panel either couldn't be built or would have to
somehow be linked against the standard (system V) panel library and the
standard curses library.
History
Date User Action Args
2009年03月31日 21:37:47enchantersetrecipients: + enchanter, loewis, pitrou, mschmarck
2009年03月31日 21:37:46enchantersetmessageid: <1238535466.89.0.205040682032.issue3786@psf.upfronthosting.co.za>
2009年03月31日 21:37:45enchanterlinkissue3786 messages
2009年03月31日 21:37:44enchantercreate

AltStyle によって変換されたページ (->オリジナル) /