HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • ← Previous Change
  • Wiki History
  • Next Change →

Changes between Version 1 and Version 2 of dev-lang/python/2.5.x/1


Ignore:
Timestamp:
01/25/09 12:07:32 (6 years ago)
Author:
brecht
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • dev-lang/python/2.5.x/1

    v1 v2  
    1   
     1On both platforms, 
     2{{{ 
     3#!/usr/bin/env python 
     4}}} 
     5needs to be changed to 
     6{{{ 
     7#!/bin/env python 
     8}}} 
     9 
     10On '''R5''' I get: 
     11{{{ 
     12gcc   -o python \ 
     13                        Modules/python.o \ 
     14                        libpython2.5.a -lnet 
     15libpython2.5.a: file not recognized: Is a directory 
     16collect2: ld returned 1 exit status 
     17make: *** [python] Error 1 
     18}}} 
     19Apparently, it is using a {{{Modules/ar_beos}}} script to emulate {{{ar}}} by moving the files into a directory instead of an archive file. 
     20 
     21On '''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}}} 
     26This seems related to Haiku's definition of the {{{assert}}} macro in the {{{NDEBUG}}} case. [http://dev.haiku-os.org/ticket/2108 Ticket] 
     27 
     28In {{{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 
     30Linking then fails due to {{{-lm}}}. Seems I forgot to rework {{{configure.in}}}. 
     31 
     32Now lots of {{{PyThread_}}}* undefined references. I unconditionally enabled the BeOS threads implementation. 
     33 
     34Python's libffi needs to be patched too (config.guess, config.sub, configure.ac). 
     35 
     36Compiles 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}}}.'' 

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/