X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=python%2Fpatches%2F00155-avoid-ctypes-thunks.patch;fp=python%2Fpatches%2F00155-avoid-ctypes-thunks.patch;h=92dd66855ffbcbb16775550d7a5e971ada52d6bd;hb=48d9a6a01196688b2ab80df7fb014e476a404d2f;hp=0000000000000000000000000000000000000000;hpb=6bc6f781d7ab9d7164b6bd09a17222f8afbc0155;p=people%2Fms%2Fipfire-3.x.git diff --git a/python/patches/00155-avoid-ctypes-thunks.patch b/python/patches/00155-avoid-ctypes-thunks.patch new file mode 100644 index 000000000..92dd66855 --- /dev/null +++ b/python/patches/00155-avoid-ctypes-thunks.patch @@ -0,0 +1,15 @@ +diff -up Python-2.7.3/Lib/ctypes/__init__.py.rhbz814391 Python-2.7.3/Lib/ctypes/__init__.py +--- Python-2.7.3/Lib/ctypes/__init__.py.rhbz814391 2012-04-20 14:51:19.390990244 -0400 ++++ Python-2.7.3/Lib/ctypes/__init__.py 2012-04-20 14:51:45.141668316 -0400 +@@ -272,11 +272,6 @@ def _reset_cache(): + # _SimpleCData.c_char_p_from_param + POINTER(c_char).from_param = c_char_p.from_param + _pointer_type_cache[None] = c_void_p +- # XXX for whatever reasons, creating the first instance of a callback +- # function is needed for the unittests on Win64 to succeed. This MAY +- # be a compiler bug, since the problem occurs only when _ctypes is +- # compiled with the MS SDK compiler. Or an uninitialized variable? +- CFUNCTYPE(c_int)(lambda: None) + + try: + from _ctypes import set_conversion_mode