-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python: don't build curses and readline modules for host #390
Conversation
You don't need to unpack just do this
|
OK, changed. |
Removed -fPIC from Python, as it gets added where appropriate already. |
@escalade your latest patchset builds flawlessly, no issues with mc, so i'm happy with it. Thank you |
Thanks for the feedback, I guess this is good to go then. Builds fine both for Generic and RPi. |
There's one issue left (Assumed value of MB_LEN_MAX wrong): http://pastebin.com/tJcF2TJU This apparently occurs both on Gentoo and Ubuntu. I can't reproduce on Arch, so this is probably yet another case where the system headers mess things up. Relevant part of stdlib.h:
|
The above issue where MB_LEN_MAX is defined somewhere to something else than 16 is pretty much the same issue that has been worked around in the patch attached to this PR, where WINDOW_HAS_FLAGS gets defined somewhere, when it shouldn't. I'm guessing this is another case of the system headers being used instead of those in the toolchain. Do we even need to build the readline/ncurses modules for the host? If not, a simple fix might be to keep it disabled only for the host build. |
As compiling the modules for the host build is problematic, it's better to simply disable them for host. I've tested and it works well. Commits changed, please revise and test. |
👍 looks good |
#301 broke compilation of the curses module for some. We need netbsd-curses:host and a patch to fix this:
/root/LibreELEC.tv/build.LibreELEC-Generic.x86_64-8.0-devel/Python-2.7.11/Modules/_cursesmodule.c: In function 'PyCursesWindow_EchoChar': /root/LibreELEC.tv/build.LibreELEC-Generic.x86_64-8.0-devel/Python-2.7.11/Modules/_cursesmodule.c:808:18: error: dereferencing pointer to incomplete type 'WINDOW {aka struct __window}' if (self->win->_flags & _ISPAD)