2014-09-10 14:22 GMT+01:00 Dagobert Michelsen <[email protected]>:
>
> I just bumped Python to 2.7.8, feel free to give it a try:
>   http://buildfarm.opencsw.org/experimental.html#python27

I recently received an email from a user. I haven't done anything
about it, but it might be a good time to look into it:

> Hi Maciej,
> Thank you for creating CSWpython27.  I have an old V240 system from 2006 that 
> was in desperate need of updating and the CSW packages, expecially python was 
> what i was very happy to find.
> I notice however that CSWpython27 package bundles the compiled curses dynamic 
> libs disabled (they are included as _curses_failed.so and 
> _curses_panel_failed.so).  The modules get named with _failed if they are 
> missing a dependency somewhere, as you may already know.  The dependency was 
> on function unctrl, which seems to only be available in ncurses but not being 
> used because Python was instead compiling against the system curses library 
> instead.
> I downloaded the Python-2.7.6.tar.xz source code and was able to get them to 
> compile manually by including -DHAVE_NCURSES_H and then the modules loaded 
> and were not renamed to failed.
> The package looks like it already has a dependency CSWncurses (i have version 
> 5.9,REV=2011.11.21 installed), but the compilation of Python doesn\'t seem to 
> pick up/use that, so it needed a little help.
> When you are next going to package python 2.7.x (i\'m hoping for 2.7.8 since 
> i just like to be on the bleeding edge), i am hoping the above is helpful to 
> get the Python suite packaged with all modules intact (e.g. with no _failed 
> modules bundled).
> The following are the commands i used manually to compile the two modules by 
> hand:
> gcc -fPIC -fno-strict-aliasing -g -O2 -DHAVE_NCURSES_H -DNDEBUG -g -fwrapv 
> -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include 
> -I/opt/csw/include/ncurses -I/home/cynikal/patch/Python-2.7.6/Include 
> -I/home/cynikal/patch/Python-2.7.6 -c 
> /home/cynikal/patch/Python-2.7.6/Modules/_cursesmodule.c -o 
> build/temp.solaris-2.10-sun4u.32bit-2.7/home/cynikal/patch/Python-2.7.6/Modules/_cursesmodule.o
> gcc -shared 
> build/temp.solaris-2.10-sun4u.32bit-2.7/home/cynikal/patch/Python-2.7.6/Modules/_cursesmodule.o
>  -L/opt/csw/lib -lncurses -o build/lib.solaris-2.10-sun4u.32bit-2.7/_curses.so
> gcc -fPIC -fno-strict-aliasing -g -O2 -DHAVE_NCURSES_H -DNDEBUG -g -fwrapv 
> -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include 
> -I/opt/csw/include/ncurses -I/home/cynikal/patch/Python-2.7.6/Include 
> -I/home/cynikal/patch/Python-2.7.6 -c 
> /home/cynikal/patch/Python-2.7.6/Modules/_curses_panel.c -o 
> build/temp.solaris-2.10-sun4u.32bit-2.7/home/cynikal/patch/Python-2.7.6/Modules/_curses_panel.o
> gcc -shared 
> build/temp.solaris-2.10-sun4u.32bit-2.7/home/cynikal/patch/Python-2.7.6/Modules/_curses_panel.o
>  -L/opt/csw/lib -lpanel -lncurses -o 
> build/lib.solaris-2.10-sun4u.32bit-2.7/_curses_panel.so
> (i then manually copied the build/lib.solaris-2.10-sun4u.32bit-2.7/_*so to 
> /opt/csw/lib/python2.7/lib-dynload )
> Hope this helps!

Reply via email to