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

Context Navigation

  • Back to Ticket #239

Ticket #239: python-2.6.4.patch

File python-2.6.4.patch, 16.6 KB (added by augiedoggie, 6 years ago)
  • Lib/plat-haiku1/IN.py

    diff -ruN Python-2.6.4/Lib/plat-haiku1/IN.py Python-2.6.4-haiku/Lib/plat-haiku1/IN.py
    old new  
     1# Generated by h2py from /boot/develop/headers/be/net/netinet/in.h 
     2 
     3# Included from socket.h 
     4 
     5# Included from BeBuild.h 
     6B_BEOS_VERSION_4 = 0x0400 
     7B_BEOS_VERSION_4_5 = 0x0450 
     8B_BEOS_VERSION_5 = 0x0500 
     9B_BEOS_VERSION = B_BEOS_VERSION_5 
     10B_BEOS_VERSION_MAUI = B_BEOS_VERSION_5 
     11_PR2_COMPATIBLE_ = 1 
     12_PR3_COMPATIBLE_ = 1 
     13_R4_COMPATIBLE_ = 1 
     14_R4_5_COMPATIBLE_ = 1 
     15_PR2_COMPATIBLE_ = 0 
     16_PR3_COMPATIBLE_ = 0 
     17_R4_COMPATIBLE_ = 1 
     18_R4_5_COMPATIBLE_ = 1 
     19def _UNUSED(x): return x 
     20 
     21 
     22# Included from sys/types.h 
     23 
     24# Included from time.h 
     25 
     26# Included from be_setup.h 
     27def __std(ref): return ref 
     28 
     29__be_os = 2 
     30__dest_os = __be_os 
     31__MSL__ = 0x4011 
     32__GLIBC__ = -2 
     33__GLIBC_MINOR__ = 1 
     34 
     35# Included from null.h 
     36NULL = (0) 
     37NULL = 0L 
     38 
     39# Included from size_t.h 
     40 
     41# Included from stddef.h 
     42 
     43# Included from wchar_t.h 
     44CLOCKS_PER_SEC = 1000 
     45CLK_TCK = CLOCKS_PER_SEC 
     46MAX_TIMESTR = 70 
     47 
     48# Included from sys/time.h 
     49 
     50# Included from ByteOrder.h 
     51 
     52# Included from endian.h 
     53__LITTLE_ENDIAN = 1234 
     54LITTLE_ENDIAN = __LITTLE_ENDIAN 
     55__BYTE_ORDER = __LITTLE_ENDIAN 
     56BYTE_ORDER = __BYTE_ORDER 
     57__BIG_ENDIAN = 0 
     58BIG_ENDIAN = 0 
     59__BIG_ENDIAN = 4321 
     60BIG_ENDIAN = __BIG_ENDIAN 
     61__BYTE_ORDER = __BIG_ENDIAN 
     62BYTE_ORDER = __BYTE_ORDER 
     63__LITTLE_ENDIAN = 0 
     64LITTLE_ENDIAN = 0 
     65__PDP_ENDIAN = 3412 
     66PDP_ENDIAN = __PDP_ENDIAN 
     67 
     68# Included from SupportDefs.h 
     69 
     70# Included from Errors.h 
     71 
     72# Included from limits.h 
     73 
     74# Included from float.h 
     75FLT_ROUNDS = 1 
     76FLT_RADIX = 2 
     77FLT_MANT_DIG = 24 
     78FLT_DIG = 6 
     79FLT_MIN_EXP = (-125) 
     80FLT_MIN_10_EXP = (-37) 
     81FLT_MAX_EXP = 128 
     82FLT_MAX_10_EXP = 38 
     83DBL_MANT_DIG = 53 
     84DBL_DIG = 15 
     85DBL_MIN_EXP = (-1021) 
     86DBL_MIN_10_EXP = (-308) 
     87DBL_MAX_EXP = 1024 
     88DBL_MAX_10_EXP = 308 
     89LDBL_MANT_DIG = DBL_MANT_DIG 
     90LDBL_DIG = DBL_DIG 
     91LDBL_MIN_EXP = DBL_MIN_EXP 
     92LDBL_MIN_10_EXP = DBL_MIN_10_EXP 
     93LDBL_MAX_EXP = DBL_MAX_EXP 
     94LDBL_MAX_10_EXP = DBL_MAX_10_EXP 
     95CHAR_BIT = (8) 
     96SCHAR_MIN = (-127-1) 
     97SCHAR_MAX = (127) 
     98CHAR_MIN = SCHAR_MIN 
     99CHAR_MAX = SCHAR_MAX 
     100MB_LEN_MAX = (1) 
     101SHRT_MIN = (-32767-1) 
     102SHRT_MAX = (32767) 
     103LONG_MIN = (-2147483647L-1) 
     104LONG_MAX = (2147483647L) 
     105INT_MIN = LONG_MIN 
     106INT_MAX = LONG_MAX 
     107ARG_MAX = (32768) 
     108ATEXIT_MAX = (32) 
     109CHILD_MAX = (1024) 
     110IOV_MAX = (256) 
     111FILESIZEBITS = (64) 
     112LINK_MAX = (1) 
     113LOGIN_NAME_MAX = (32) 
     114MAX_CANON = (255) 
     115MAX_INPUT = (255) 
     116NAME_MAX = (256) 
     117NGROUPS_MAX = (32) 
     118OPEN_MAX = (128) 
     119PATH_MAX = (1024) 
     120PIPE_MAX = (512) 
     121SSIZE_MAX = (2147483647L) 
     122TTY_NAME_MAX = (256) 
     123TZNAME_MAX = (32) 
     124SYMLINKS_MAX = (16) 
     125_POSIX_ARG_MAX = (32768) 
     126_POSIX_CHILD_MAX = (1024) 
     127_POSIX_LINK_MAX = (1) 
     128_POSIX_LOGIN_NAME_MAX = (9) 
     129_POSIX_MAX_CANON = (255) 
     130_POSIX_MAX_INPUT = (255) 
     131_POSIX_NAME_MAX = (255) 
     132_POSIX_NGROUPS_MAX = (0) 
     133_POSIX_OPEN_MAX = (128) 
     134_POSIX_PATH_MAX = (1024) 
     135_POSIX_PIPE_BUF = (512) 
     136_POSIX_SSIZE_MAX = (2147483647L) 
     137_POSIX_STREAM_MAX = (8) 
     138_POSIX_TTY_NAME_MAX = (256) 
     139_POSIX_TZNAME_MAX = (3) 
     140B_GENERAL_ERROR_BASE = LONG_MIN 
     141B_OS_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x1000 
     142B_APP_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x2000 
     143B_INTERFACE_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x3000 
     144B_MEDIA_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x4000 
     145B_TRANSLATION_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x4800 
     146B_MIDI_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x5000 
     147B_STORAGE_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x6000 
     148B_POSIX_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x7000 
     149B_MAIL_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x8000 
     150B_PRINT_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x9000 
     151B_DEVICE_ERROR_BASE = B_GENERAL_ERROR_BASE + 0xa000 
     152B_ERRORS_END = (B_GENERAL_ERROR_BASE + 0xffff) 
     153E2BIG = (B_POSIX_ERROR_BASE + 1) 
     154ECHILD = (B_POSIX_ERROR_BASE + 2) 
     155EDEADLK = (B_POSIX_ERROR_BASE + 3) 
     156EFBIG = (B_POSIX_ERROR_BASE + 4) 
     157EMLINK = (B_POSIX_ERROR_BASE + 5) 
     158ENFILE = (B_POSIX_ERROR_BASE + 6) 
     159ENODEV = (B_POSIX_ERROR_BASE + 7) 
     160ENOLCK = (B_POSIX_ERROR_BASE + 8) 
     161ENOSYS = (B_POSIX_ERROR_BASE + 9) 
     162ENOTTY = (B_POSIX_ERROR_BASE + 10) 
     163ENXIO = (B_POSIX_ERROR_BASE + 11) 
     164ESPIPE = (B_POSIX_ERROR_BASE + 12) 
     165ESRCH = (B_POSIX_ERROR_BASE + 13) 
     166EFPOS = (B_POSIX_ERROR_BASE + 14) 
     167ESIGPARM = (B_POSIX_ERROR_BASE + 15) 
     168EDOM = (B_POSIX_ERROR_BASE + 16) 
     169ERANGE = (B_POSIX_ERROR_BASE + 17) 
     170EPROTOTYPE = (B_POSIX_ERROR_BASE + 18) 
     171EPROTONOSUPPORT = (B_POSIX_ERROR_BASE + 19) 
     172EPFNOSUPPORT = (B_POSIX_ERROR_BASE + 20) 
     173EAFNOSUPPORT = (B_POSIX_ERROR_BASE + 21) 
     174EADDRINUSE = (B_POSIX_ERROR_BASE + 22) 
     175EADDRNOTAVAIL = (B_POSIX_ERROR_BASE + 23) 
     176ENETDOWN = (B_POSIX_ERROR_BASE + 24) 
     177ENETUNREACH = (B_POSIX_ERROR_BASE + 25) 
     178ENETRESET = (B_POSIX_ERROR_BASE + 26) 
     179ECONNABORTED = (B_POSIX_ERROR_BASE + 27) 
     180ECONNRESET = (B_POSIX_ERROR_BASE + 28) 
     181EISCONN = (B_POSIX_ERROR_BASE + 29) 
     182ENOTCONN = (B_POSIX_ERROR_BASE + 30) 
     183ESHUTDOWN = (B_POSIX_ERROR_BASE + 31) 
     184ECONNREFUSED = (B_POSIX_ERROR_BASE + 32) 
     185EHOSTUNREACH = (B_POSIX_ERROR_BASE + 33) 
     186ENOPROTOOPT = (B_POSIX_ERROR_BASE + 34) 
     187ENOBUFS = (B_POSIX_ERROR_BASE + 35) 
     188EINPROGRESS = (B_POSIX_ERROR_BASE + 36) 
     189EALREADY = (B_POSIX_ERROR_BASE + 37) 
     190EILSEQ = (B_POSIX_ERROR_BASE + 38) 
     191ENOMSG = (B_POSIX_ERROR_BASE + 39) 
     192ESTALE = (B_POSIX_ERROR_BASE + 40) 
     193EOVERFLOW = (B_POSIX_ERROR_BASE + 41) 
     194EMSGSIZE = (B_POSIX_ERROR_BASE + 42) 
     195EOPNOTSUPP = (B_POSIX_ERROR_BASE + 43) 
     196ENOTSOCK = (B_POSIX_ERROR_BASE + 44) 
     197false = 0 
     198true = 1 
     199NULL = (0) 
     200FALSE = 0 
     201TRUE = 1 
     202 
     203# Included from TypeConstants.h 
     204B_HOST_IS_LENDIAN = 1 
     205B_HOST_IS_BENDIAN = 0 
     206def B_HOST_TO_LENDIAN_DOUBLE(arg): return (double)(arg) 
     207 
     208def B_HOST_TO_LENDIAN_FLOAT(arg): return (float)(arg) 
     209 
     210def B_HOST_TO_LENDIAN_INT64(arg): return (uint64)(arg) 
     211 
     212def B_HOST_TO_LENDIAN_INT32(arg): return (uint32)(arg) 
     213 
     214def B_HOST_TO_LENDIAN_INT16(arg): return (uint16)(arg) 
     215 
     216def B_HOST_TO_BENDIAN_DOUBLE(arg): return __swap_double(arg) 
     217 
     218def B_HOST_TO_BENDIAN_FLOAT(arg): return __swap_float(arg) 
     219 
     220def B_HOST_TO_BENDIAN_INT64(arg): return __swap_int64(arg) 
     221 
     222def B_HOST_TO_BENDIAN_INT32(arg): return __swap_int32(arg) 
     223 
     224def B_HOST_TO_BENDIAN_INT16(arg): return __swap_int16(arg) 
     225 
     226def B_LENDIAN_TO_HOST_DOUBLE(arg): return (double)(arg) 
     227 
     228def B_LENDIAN_TO_HOST_FLOAT(arg): return (float)(arg) 
     229 
     230def B_LENDIAN_TO_HOST_INT64(arg): return (uint64)(arg) 
     231 
     232def B_LENDIAN_TO_HOST_INT32(arg): return (uint32)(arg) 
     233 
     234def B_LENDIAN_TO_HOST_INT16(arg): return (uint16)(arg) 
     235 
     236def B_BENDIAN_TO_HOST_DOUBLE(arg): return __swap_double(arg) 
     237 
     238def B_BENDIAN_TO_HOST_FLOAT(arg): return __swap_float(arg) 
     239 
     240def B_BENDIAN_TO_HOST_INT64(arg): return __swap_int64(arg) 
     241 
     242def B_BENDIAN_TO_HOST_INT32(arg): return __swap_int32(arg) 
     243 
     244def B_BENDIAN_TO_HOST_INT16(arg): return __swap_int16(arg) 
     245 
     246B_HOST_IS_LENDIAN = 0 
     247B_HOST_IS_BENDIAN = 1 
     248def B_HOST_TO_LENDIAN_DOUBLE(arg): return __swap_double(arg) 
     249 
     250def B_HOST_TO_LENDIAN_FLOAT(arg): return __swap_float(arg) 
     251 
     252def B_HOST_TO_LENDIAN_INT64(arg): return __swap_int64(arg) 
     253 
     254def B_HOST_TO_LENDIAN_INT32(arg): return __swap_int32(arg) 
     255 
     256def B_HOST_TO_LENDIAN_INT16(arg): return __swap_int16(arg) 
     257 
     258def B_HOST_TO_BENDIAN_DOUBLE(arg): return (double)(arg) 
     259 
     260def B_HOST_TO_BENDIAN_FLOAT(arg): return (float)(arg) 
     261 
     262def B_HOST_TO_BENDIAN_INT64(arg): return (uint64)(arg) 
     263 
     264def B_HOST_TO_BENDIAN_INT32(arg): return (uint32)(arg) 
     265 
     266def B_HOST_TO_BENDIAN_INT16(arg): return (uint16)(arg) 
     267 
     268def B_LENDIAN_TO_HOST_DOUBLE(arg): return __swap_double(arg) 
     269 
     270def B_LENDIAN_TO_HOST_FLOAT(arg): return __swap_float(arg) 
     271 
     272def B_LENDIAN_TO_HOST_INT64(arg): return __swap_int64(arg) 
     273 
     274def B_LENDIAN_TO_HOST_INT32(arg): return __swap_int32(arg) 
     275 
     276def B_LENDIAN_TO_HOST_INT16(arg): return __swap_int16(arg) 
     277 
     278def B_BENDIAN_TO_HOST_DOUBLE(arg): return (double)(arg) 
     279 
     280def B_BENDIAN_TO_HOST_FLOAT(arg): return (float)(arg) 
     281 
     282def B_BENDIAN_TO_HOST_INT64(arg): return (uint64)(arg) 
     283 
     284def B_BENDIAN_TO_HOST_INT32(arg): return (uint32)(arg) 
     285 
     286def B_BENDIAN_TO_HOST_INT16(arg): return (uint16)(arg) 
     287 
     288def B_SWAP_DOUBLE(arg): return __swap_double(arg) 
     289 
     290def B_SWAP_FLOAT(arg): return __swap_float(arg) 
     291 
     292def B_SWAP_INT64(arg): return __swap_int64(arg) 
     293 
     294def B_SWAP_INT32(arg): return __swap_int32(arg) 
     295 
     296def B_SWAP_INT16(arg): return __swap_int16(arg) 
     297 
     298def htonl(x): return B_HOST_TO_BENDIAN_INT32(x) 
     299 
     300def ntohl(x): return B_BENDIAN_TO_HOST_INT32(x) 
     301 
     302def htons(x): return B_HOST_TO_BENDIAN_INT16(x) 
     303 
     304def ntohs(x): return B_BENDIAN_TO_HOST_INT16(x) 
     305 
     306AF_INET = 1 
     307INADDR_ANY = 0x00000000 
     308INADDR_BROADCAST = 0xffffffff 
     309INADDR_LOOPBACK = 0x7f000001 
     310SOL_SOCKET = 1 
     311SO_DEBUG = 1 
     312SO_REUSEADDR = 2 
     313SO_NONBLOCK = 3 
     314SO_REUSEPORT = 4 
     315MSG_OOB = 0x1 
     316SOCK_DGRAM = 1 
     317SOCK_STREAM = 2 
     318IPPROTO_UDP = 1 
     319IPPROTO_TCP = 2 
     320IPPROTO_ICMP = 3 
     321B_UDP_MAX_SIZE = (65536 - 1024) 
     322FD_SETSIZE = 256 
     323FDSETSIZE = FD_SETSIZE 
     324NFDBITS = 32 
     325def _FDMSKNO(fd): return ((fd) / NFDBITS) 
     326 
     327def _FDBITNO(fd): return ((fd) % NFDBITS) 
  • Lib/plat-haiku1/regen

    diff -ruN Python-2.6.4/Lib/plat-haiku1/regen Python-2.6.4-haiku/Lib/plat-haiku1/regen
    old new  
     1#! /bin/sh 
     2 
     3H2PY=../../Tools/scripts/h2py.py 
     4HEADERS=/boot/develop/headers 
     5 
     6set -v 
     7python $H2PY -i '(u_long)' $HEADERS/posix/netinet/in.h 
  • Modules/resource.c

    diff -ruN Python-2.6.4/Modules/resource.c Python-2.6.4-haiku/Modules/resource.c
    old new  
    8686                        PyFloat_FromDouble(doubletime(ru.ru_utime))); 
    8787        PyStructSequence_SET_ITEM(result, 1, 
    8888                        PyFloat_FromDouble(doubletime(ru.ru_stime))); 
     89#ifndef __HAIKU__ 
    8990        PyStructSequence_SET_ITEM(result, 2, PyInt_FromLong(ru.ru_maxrss)); 
    9091        PyStructSequence_SET_ITEM(result, 3, PyInt_FromLong(ru.ru_ixrss)); 
    9192        PyStructSequence_SET_ITEM(result, 4, PyInt_FromLong(ru.ru_idrss)); 
    … …  
    100101        PyStructSequence_SET_ITEM(result, 13, PyInt_FromLong(ru.ru_nsignals)); 
    101102        PyStructSequence_SET_ITEM(result, 14, PyInt_FromLong(ru.ru_nvcsw)); 
    102103        PyStructSequence_SET_ITEM(result, 15, PyInt_FromLong(ru.ru_nivcsw)); 
     104#endif 
    103105 
    104106        if (PyErr_Occurred()) { 
    105107                Py_DECREF(result); 
  • Modules/socketmodule.c

    diff -ruN Python-2.6.4/Modules/socketmodule.c Python-2.6.4-haiku/Modules/socketmodule.c
    old new  
    46404640#ifndef __BEOS__ 
    46414641/* We have incomplete socket support. */ 
    46424642        PyModule_AddIntConstant(m, "SOCK_RAW", SOCK_RAW); 
     4643#ifndef __HAIKU__ 
    46434644        PyModule_AddIntConstant(m, "SOCK_SEQPACKET", SOCK_SEQPACKET); 
     4645#endif 
    46444646#if defined(SOCK_RDM) 
    46454647        PyModule_AddIntConstant(m, "SOCK_RDM", SOCK_RDM); 
    46464648#endif 
  • Modules/socketmodule.h

    diff -ruN Python-2.6.4/Modules/socketmodule.h Python-2.6.4-haiku/Modules/socketmodule.h
    old new  
    4747#  undef AF_NETLINK 
    4848#endif 
    4949 
     50#if defined(__HAIKU__) 
     51#undef HAVE_BLUETOOTH_BLUETOOTH_H 
     52#endif 
     53 
    5054#ifdef HAVE_BLUETOOTH_BLUETOOTH_H 
    5155#include <bluetooth/bluetooth.h> 
    5256#include <bluetooth/rfcomm.h> 
  • Modules/spwdmodule.c

    diff -ruN Python-2.6.4/Modules/spwdmodule.c Python-2.6.4-haiku/Modules/spwdmodule.c
    old new  
    7979 
    8080        SETS(setIndex++, p->sp_namp); 
    8181        SETS(setIndex++, p->sp_pwdp); 
     82#ifndef __HAIKU__ 
    8283        SETI(setIndex++, p->sp_lstchg); 
     84#endif 
    8385        SETI(setIndex++, p->sp_min); 
    8486        SETI(setIndex++, p->sp_max); 
    8587        SETI(setIndex++, p->sp_warn); 
  • Modules/timemodule.c

    diff -ruN Python-2.6.4/Modules/timemodule.c Python-2.6.4-haiku/Modules/timemodule.c
    old new  
    968968                return -1; 
    969969        } 
    970970        Py_END_ALLOW_THREADS 
    971 #elif defined(__BEOS__) 
     971#elif defined(__BEOS__) || defined(__HAIKU__) 
    972972        /* This sleep *CAN BE* interrupted. */ 
    973973        { 
    974974                if( secs <= 0.0 ) { 
    975                         return; 
     975                        return 0; 
    976976                } 
    977977 
    978978                Py_BEGIN_ALLOW_THREADS 
  • Parser/asdl_c.py

    diff -ruN Python-2.6.4/Parser/asdl_c.py Python-2.6.4-haiku/Parser/asdl_c.py
    old new  
    1 #! /usr/bin/env python 
     1#! /bin/env python 
    22"""Generate C code from an ASDL description.""" 
    33 
    44# TO DO 
  • Tools/scripts/h2py.py

    diff -ruN Python-2.6.4/Tools/scripts/h2py.py Python-2.6.4-haiku/Tools/scripts/h2py.py
    old new  
    1 #! /usr/bin/env python 
     1#! /bin/env python 
    22 
    33# Read #define's and translate to Python code. 
    44# Handle #include statements. 
    … …  
    5050        searchdirs=os.environ['INCLUDE'].split(';') 
    5151    except KeyError: 
    5252        try: 
    53             if  sys.platform.find("beos") == 0: 
     53            if  sys.platform.find("beos") == 0 or sys.platform.find("haiku1") == 0: 
    5454                searchdirs=os.environ['BEINCLUDES'].split(';') 
    5555            elif sys.platform.startswith("atheos"): 
    5656                searchdirs=os.environ['C_INCLUDE_PATH'].split(':') 
  • configure.in

    diff -ruN Python-2.6.4/configure.in Python-2.6.4-haiku/configure.in
    old new  
    715715          RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} 
    716716          INSTSONAME="$LDLIBRARY".$SOVERSION 
    717717          ;; 
    718     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) 
     718    Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|Haiku*) 
    719719          LDLIBRARY='libpython$(VERSION).so' 
    720720          BLDLIBRARY='-L. -lpython$(VERSION)' 
    721721          RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} 
    … …  
    793793AC_SUBST(LN) 
    794794if test -z "$LN" ; then 
    795795        case $ac_sys_system in 
    796                 BeOS*) LN="ln -s";; 
     796                BeOS*|Haiku*) LN="ln -s";; 
    797797                CYGWIN*) LN="ln -s";; 
    798798                atheos*) LN="ln -s";; 
    799799                *) LN=ln;; 
    … …  
    17661766                        fi 
    17671767                fi 
    17681768                ;; 
    1769         Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';; 
     1769        Linux*|GNU*|QNX*|Haiku*) LDSHARED='$(CC) -shared';; 
    17701770        BSD/OS*/4*) LDSHARED="gcc -shared";; 
    17711771        FreeBSD*) 
    17721772                if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]] 
    … …  
    18201820                 then CCSHARED="-fPIC"; 
    18211821                 else CCSHARED="+z"; 
    18221822                 fi;; 
    1823         Linux*|GNU*) CCSHARED="-fPIC";; 
     1823        Linux*|GNU*|Haiku*) CCSHARED="-fPIC";; 
    18241824        BSD/OS*/4*) CCSHARED="-fpic";; 
    18251825        FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; 
    18261826        OpenUNIX*|UnixWare*) 
    … …  
    18531853            LINKFORSHARED="-Wl,-E -Wl,+s";; 
    18541854#           LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; 
    18551855        BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; 
    1856         Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; 
     1856        Linux*|GNU*|Haiku*) LINKFORSHARED="-Xlinker -export-dynamic";; 
    18571857        # -u libsys_s pulls in all symbols in libsys 
    18581858        Darwin/*)  
    18591859                # -u _PyMac_Error is needed to pull in the mac toolbox glue, 
    … …  
    19721972BeOS*) 
    19731973AC_CHECK_LIB(net, socket, [LIBS="-lnet $LIBS"], [], $LIBS) # BeOS 
    19741974;; 
     1975Haiku*) 
     1976AC_CHECK_LIB(network, socket, [LIBS="-lnetwork $LIBS"], [], $LIBS) # Haiku 
     1977;; 
    19751978esac 
    19761979 
    19771980AC_MSG_CHECKING(for --with-libs) 
    … …  
    31903193AC_SUBST(LIBM) 
    31913194case $ac_sys_system in 
    31923195Darwin) ;; 
    3193 BeOS) ;; 
     3196BeOS|Haiku) ;; 
    31943197*) LIBM=-lm 
    31953198esac 
    31963199AC_MSG_CHECKING(for --with-libm=STRING) 
  • Python-2.6.

    diff -ruN Python-2.6.4/setup.py Python-2.6.4-haiku/setup.py
    old new  
    382382            inc_dirs += ['/system/include', '/atheos/autolnk/include'] 
    383383            inc_dirs += os.getenv('C_INCLUDE_PATH', '').split(os.pathsep) 
    384384 
     385        if platform == 'haiku1': 
     386            inc_dirs += ['/boot/develop/headers/posix', '/boot/develop/headers/3rdparty'] 
     387            lib_dirs += ['/boot/system/lib'] 
     388 
    385389        # OSF/1 and Unixware have some stuff in /usr/ccs/lib (like -ldb) 
    386390        if platform in ['osf1', 'unixware7', 'openunix8']: 
    387391            lib_dirs += ['/usr/ccs/lib'] 
    … …  
    405409 
    406410        # Check for MacOS X, which doesn't need libm.a at all 
    407411        math_libs = ['m'] 
    408         if platform in ['darwin', 'beos', 'mac']: 
     412        if platform in ['darwin', 'beos', 'haiku1', 'mac']: 
    409413            math_libs = [] 
    410414 
    411415        # XXX Omitted modules: gl, pure, dl, SGI-specific modules 
    … …  
    10651069                missing.append('resource') 
    10661070 
    10671071            # Sun yellow pages. Some systems have the functions in libc. 
    1068             if platform not in ['cygwin', 'atheos', 'qnx6']: 
     1072            if platform not in ['cygwin', 'atheos', 'qnx6', 'haiku1']: 
    10691073                if (self.compiler.find_library_file(lib_dirs, 'nsl')): 
    10701074                    libs = ['nsl'] 
    10711075                else: 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

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