| 1 | | |
| | 1 | On both platforms, |
| | 2 | {{{ |
| | 3 | #!/usr/bin/env python |
| | 4 | }}} |
| | 5 | needs to be changed to |
| | 6 | {{{ |
| | 7 | #!/bin/env python |
| | 8 | }}} |
| | 9 | |
| | 10 | On '''R5''' I get: |
| | 11 | {{{ |
| | 12 | gcc -o python \ |
| | 13 | Modules/python.o \ |
| | 14 | libpython2.5.a -lnet |
| | 15 | libpython2.5.a: file not recognized: Is a directory |
| | 16 | collect2: ld returned 1 exit status |
| | 17 | make: *** [python] Error 1 |
| | 18 | }}} |
| | 19 | Apparently, it is using a {{{Modules/ar_beos}}} script to emulate {{{ar}}} by moving the files into a directory instead of an archive file. |
| | 20 | |
| | 21 | On '''Haiku''', requires another Python first. The BeOS {{{Python-2.4.2-x86.zip}}} seems to install okay. I then get: |
| | 22 | {{{ |
| | 23 | /ToBe/python-2.5.x/Objects/funcobject.c: In function `function_call': |
| | 24 | /ToBe/python-2.5.x/Objects/funcobject.c:501: parse error before `;' |
| | 25 | }}} |
| | 26 | This seems related to Haiku's definition of the {{{assert}}} macro in the {{{NDEBUG}}} case. [http://dev.haiku-os.org/ticket/2108 Ticket] |
| | 27 | |
| | 28 | In {{{Python/thread.c}}} compilation fails due to {{{destructor}}} in {{{pthread.h}}}:175. Renaming the parameter resolves this ([http://dev.haiku-os.org/ticket/2109 ticket]). |
| | 29 | |
| | 30 | Linking then fails due to {{{-lm}}}. Seems I forgot to rework {{{configure.in}}}. |
| | 31 | |
| | 32 | Now lots of {{{PyThread_}}}* undefined references. I unconditionally enabled the BeOS threads implementation. |
| | 33 | |
| | 34 | Python's libffi needs to be patched too (config.guess, config.sub, configure.ac). |
| | 35 | |
| | 36 | Compiles okay then. |
| | 37 | |
| | 38 | {{{make test}}} fails due to {{{-lm}}}. This seemed to originate from {{{setup.py}}}. Some modules silently failed to build, applied quickfixes for some of them. |
| | 39 | |
| | 40 | [source:BePorts/trunk/dev-lang/python/python-2.5.x.diff Patch] |
| | 41 | |
| | 42 | ''Note: some modules may need to added to the {{{Setup}}} file manually, e.g. {{{bz2}}}.'' |