diff --git a/dev-lang/python/patches/python-2.6.4.patch b/dev-lang/python/patches/python-2.6.4.patch index c94920038..5c879630a 100644 --- a/dev-lang/python/patches/python-2.6.4.patch +++ b/dev-lang/python/patches/python-2.6.4.patch @@ -1,6 +1,6 @@ -diff -urN Python-2.6.4/Lib/plat-haiku1/IN.py Python-2.6.4-haiku/Lib/plat-haiku1/IN.py ---- Python-2.6.4/Lib/plat-haiku1/IN.py 1970-01-01 00:00:00.000000000 +0000 -+++ Python-2.6.4-haiku/Lib/plat-haiku1/IN.py 2009-05-14 08:56:04.000000000 +0000 +diff -ruN Python-2.6.4/Lib/plat-haiku1/IN.py Python-2.6.4-haiku/Lib/plat-haiku1/IN.py +--- Python-2.6.4/Lib/plat-haiku1/IN.py 1969-12-31 17:00:00.000000000 -0700 ++++ Python-2.6.4-haiku/Lib/plat-haiku1/IN.py 2009-10-27 13:31:08.000000000 -0600 @@ -0,0 +1,327 @@ +# Generated by h2py from /boot/develop/headers/be/net/netinet/in.h + @@ -329,9 +329,9 @@ diff -urN Python-2.6.4/Lib/plat-haiku1/IN.py Python-2.6.4-haiku/Lib/plat-haiku1/ +def _FDMSKNO(fd): return ((fd) / NFDBITS) + +def _FDBITNO(fd): return ((fd) % NFDBITS) -diff -urN Python-2.6.4/Lib/plat-haiku1/regen Python-2.6.4-haiku/Lib/plat-haiku1/regen ---- Python-2.6.4/Lib/plat-haiku1/regen 1970-01-01 00:00:00.000000000 +0000 -+++ Python-2.6.4-haiku/Lib/plat-haiku1/regen 2009-05-14 08:56:04.000000000 +0000 +diff -ruN Python-2.6.4/Lib/plat-haiku1/regen Python-2.6.4-haiku/Lib/plat-haiku1/regen +--- Python-2.6.4/Lib/plat-haiku1/regen 1969-12-31 17:00:00.000000000 -0700 ++++ Python-2.6.4-haiku/Lib/plat-haiku1/regen 2009-10-27 13:31:08.000000000 -0600 @@ -0,0 +1,7 @@ +#! /bin/sh + @@ -340,9 +340,9 @@ diff -urN Python-2.6.4/Lib/plat-haiku1/regen Python-2.6.4-haiku/Lib/plat-haiku1/ + +set -v +python $H2PY -i '(u_long)' $HEADERS/posix/netinet/in.h -diff -urN Python-2.6.4/Modules/resource.c Python-2.6.4-haiku/Modules/resource.c ---- Python-2.6.4/Modules/resource.c 2009-05-14 08:59:56.000000000 +0000 -+++ Python-2.6.4-haiku/Modules/resource.c 2009-05-14 08:56:28.000000000 +0000 +diff -ruN Python-2.6.4/Modules/resource.c Python-2.6.4-haiku/Modules/resource.c +--- Python-2.6.4/Modules/resource.c 2009-05-08 14:59:57.000000000 -0600 ++++ Python-2.6.4-haiku/Modules/resource.c 2009-10-27 13:31:08.000000000 -0600 @@ -86,6 +86,7 @@ PyFloat_FromDouble(doubletime(ru.ru_utime))); PyStructSequence_SET_ITEM(result, 1, @@ -359,10 +359,10 @@ diff -urN Python-2.6.4/Modules/resource.c Python-2.6.4-haiku/Modules/resource.c if (PyErr_Occurred()) { Py_DECREF(result); -diff -urN Python-2.6.4/Modules/socketmodule.c Python-2.6.4-haiku/Modules/socketmodule.c ---- Python-2.6.4/Modules/socketmodule.c 2009-05-14 08:59:52.000000000 +0000 -+++ Python-2.6.4-haiku/Modules/socketmodule.c 2009-05-14 08:56:28.000000000 +0000 -@@ -4637,7 +4637,9 @@ +diff -ruN Python-2.6.4/Modules/socketmodule.c Python-2.6.4-haiku/Modules/socketmodule.c +--- Python-2.6.4/Modules/socketmodule.c 2009-09-19 01:46:24.000000000 -0600 ++++ Python-2.6.4-haiku/Modules/socketmodule.c 2009-10-27 13:31:08.000000000 -0600 +@@ -4640,7 +4640,9 @@ #ifndef __BEOS__ /* We have incomplete socket support. */ PyModule_AddIntConstant(m, "SOCK_RAW", SOCK_RAW); @@ -372,9 +372,9 @@ diff -urN Python-2.6.4/Modules/socketmodule.c Python-2.6.4-haiku/Modules/socketm #if defined(SOCK_RDM) PyModule_AddIntConstant(m, "SOCK_RDM", SOCK_RDM); #endif -diff -urN Python-2.6.4/Modules/socketmodule.h Python-2.6.4-haiku/Modules/socketmodule.h ---- Python-2.6.4/Modules/socketmodule.h 2009-05-14 08:59:48.000000000 +0000 -+++ Python-2.6.4-haiku/Modules/socketmodule.h 2009-05-14 08:56:28.000000000 +0000 +diff -ruN Python-2.6.4/Modules/socketmodule.h Python-2.6.4-haiku/Modules/socketmodule.h +--- Python-2.6.4/Modules/socketmodule.h 2008-06-14 02:36:07.000000000 -0600 ++++ Python-2.6.4-haiku/Modules/socketmodule.h 2009-10-27 13:31:08.000000000 -0600 @@ -47,6 +47,10 @@ # undef AF_NETLINK #endif @@ -386,9 +386,9 @@ diff -urN Python-2.6.4/Modules/socketmodule.h Python-2.6.4-haiku/Modules/socketm #ifdef HAVE_BLUETOOTH_BLUETOOTH_H #include #include -diff -urN Python-2.6.4/Modules/spwdmodule.c Python-2.6.4-haiku/Modules/spwdmodule.c ---- Python-2.6.4/Modules/spwdmodule.c 2009-05-14 08:59:57.000000000 +0000 -+++ Python-2.6.4-haiku/Modules/spwdmodule.c 2009-05-14 08:56:28.000000000 +0000 +diff -ruN Python-2.6.4/Modules/spwdmodule.c Python-2.6.4-haiku/Modules/spwdmodule.c +--- Python-2.6.4/Modules/spwdmodule.c 2008-06-08 22:58:54.000000000 -0600 ++++ Python-2.6.4-haiku/Modules/spwdmodule.c 2009-10-27 13:31:08.000000000 -0600 @@ -79,7 +79,9 @@ SETS(setIndex++, p->sp_namp); @@ -399,9 +399,9 @@ diff -urN Python-2.6.4/Modules/spwdmodule.c Python-2.6.4-haiku/Modules/spwdmodul SETI(setIndex++, p->sp_min); SETI(setIndex++, p->sp_max); SETI(setIndex++, p->sp_warn); -diff -urN Python-2.6.4/Modules/timemodule.c Python-2.6.4-haiku/Modules/timemodule.c ---- Python-2.6.4/Modules/timemodule.c 2009-05-14 08:59:52.000000000 +0000 -+++ Python-2.6.4-haiku/Modules/timemodule.c 2009-05-14 08:56:28.000000000 +0000 +diff -ruN Python-2.6.4/Modules/timemodule.c Python-2.6.4-haiku/Modules/timemodule.c +--- Python-2.6.4/Modules/timemodule.c 2008-07-05 13:19:50.000000000 -0600 ++++ Python-2.6.4-haiku/Modules/timemodule.c 2009-10-27 13:31:08.000000000 -0600 @@ -968,11 +968,11 @@ return -1; } @@ -416,18 +416,18 @@ diff -urN Python-2.6.4/Modules/timemodule.c Python-2.6.4-haiku/Modules/timemodul } Py_BEGIN_ALLOW_THREADS -diff -urN Python-2.6.4/Parser/asdl_c.py Python-2.6.4-haiku/Parser/asdl_c.py ---- Python-2.6.4/Parser/asdl_c.py 2009-05-14 08:59:39.000000000 +0000 -+++ Python-2.6.4-haiku/Parser/asdl_c.py 2009-05-14 08:56:28.000000000 +0000 +diff -ruN Python-2.6.4/Parser/asdl_c.py Python-2.6.4-haiku/Parser/asdl_c.py +--- Python-2.6.4/Parser/asdl_c.py 2008-11-07 01:56:27.000000000 -0700 ++++ Python-2.6.4-haiku/Parser/asdl_c.py 2009-10-27 13:31:08.000000000 -0600 @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /bin/env python """Generate C code from an ASDL description.""" # TO DO -diff -urN Python-2.6.4/Tools/scripts/h2py.py Python-2.6.4-haiku/Tools/scripts/h2py.py ---- Python-2.6.4/Tools/scripts/h2py.py 2009-05-14 08:59:42.000000000 +0000 -+++ Python-2.6.4-haiku/Tools/scripts/h2py.py 2009-05-14 09:36:12.000000000 +0000 +diff -ruN Python-2.6.4/Tools/scripts/h2py.py Python-2.6.4-haiku/Tools/scripts/h2py.py +--- Python-2.6.4/Tools/scripts/h2py.py 2004-08-09 11:27:55.000000000 -0600 ++++ Python-2.6.4-haiku/Tools/scripts/h2py.py 2009-10-27 13:31:08.000000000 -0600 @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /bin/env python @@ -443,10 +443,10 @@ diff -urN Python-2.6.4/Tools/scripts/h2py.py Python-2.6.4-haiku/Tools/scripts/h2 searchdirs=os.environ['BEINCLUDES'].split(';') elif sys.platform.startswith("atheos"): searchdirs=os.environ['C_INCLUDE_PATH'].split(':') -diff -urN Python-2.6.4/configure.in Python-2.6.4-haiku/configure.in ---- Python-2.6.4/configure.in 2009-05-14 08:59:39.000000000 +0000 -+++ Python-2.6.4-haiku/configure.in 2009-05-14 08:56:28.000000000 +0000 -@@ -706,7 +706,7 @@ +diff -ruN Python-2.6.4/configure.in Python-2.6.4-haiku/configure.in +--- Python-2.6.4/configure.in 2009-09-29 07:01:59.000000000 -0600 ++++ Python-2.6.4-haiku/configure.in 2009-10-27 13:31:08.000000000 -0600 +@@ -715,7 +715,7 @@ RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} INSTSONAME="$LDLIBRARY".$SOVERSION ;; @@ -455,7 +455,7 @@ diff -urN Python-2.6.4/configure.in Python-2.6.4-haiku/configure.in LDLIBRARY='libpython$(VERSION).so' BLDLIBRARY='-L. -lpython$(VERSION)' RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} -@@ -784,7 +784,7 @@ +@@ -793,7 +793,7 @@ AC_SUBST(LN) if test -z "$LN" ; then case $ac_sys_system in @@ -464,7 +464,7 @@ diff -urN Python-2.6.4/configure.in Python-2.6.4-haiku/configure.in CYGWIN*) LN="ln -s";; atheos*) LN="ln -s";; *) LN=ln;; -@@ -1681,7 +1681,7 @@ +@@ -1766,7 +1766,7 @@ fi fi ;; @@ -473,7 +473,7 @@ diff -urN Python-2.6.4/configure.in Python-2.6.4-haiku/configure.in BSD/OS*/4*) LDSHARED="gcc -shared";; FreeBSD*) if [[ "`$CC -dM -E -