summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-02-22 09:58:16 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-02-22 10:51:32 +0100
commit2484811c3a004d531a6c216c0cd8ff34f6fad68c (patch)
tree0e08ed01881e99c8d065cdcfd17f1126d3bd8d91 /python
parentb96b5aff2bfb4b0c4545e0a7f52679301dfcdb52 (diff)
Revert "add dylib to the list of native python modules for Mac (for pyuno.dylib)"
This reverts those parts of commit f892f979ce17c70ccff5c802db17f24129628504 that add .dylib as an extension for native Python modules, which in turn was obsoleted by 2ea723e8ce4077c7efa957d278637c4d9f32cf14 "Revert 'Mac OS X uses .dylib and not .so for python modules.'" (and I verified on Mac OS X 10.6.8 that both LO's internal Pyton 2.6.1 and MacPort's python3.2 indeed import a pyuno.so just fine). There were additional modifications regarding pyversion stuff in the original commit f892f979ce17c70ccff5c802db17f24129628504 that appear unrelated and which I left intact.
Diffstat (limited to 'python')
-rw-r--r--python/Python-2.6.1-dylib_dynload.patch14
-rw-r--r--python/makefile.mk2
2 files changed, 1 insertions, 15 deletions
diff --git a/python/Python-2.6.1-dylib_dynload.patch b/python/Python-2.6.1-dylib_dynload.patch
deleted file mode 100644
index 3e44502e389c..000000000000
--- a/python/Python-2.6.1-dylib_dynload.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-add dylib to the extensions, to be able to load pyuno.dylib via "import pyuno"
---- misc/Python-2.6.1/Python/dynload_shlib.c 2006-01-04 02:30:17.000000000 +0100
-+++ misc/build/Python-2.6.1/Python/dynload_shlib.c 2011-06-11 19:42:09.000000000 +0200
-@@ -46,6 +46,10 @@
- {"module.exe", "rb", C_EXTENSION},
- {"MODULE.EXE", "rb", C_EXTENSION},
- #else
-+#ifdef __APPLE__
-+ {".dylib", "rb", C_EXTENSION},
-+ {"module.dylib", "rb", C_EXTENSION},
-+#endif
- {".so", "rb", C_EXTENSION},
- {"module.so", "rb", C_EXTENSION},
- #endif
diff --git a/python/makefile.mk b/python/makefile.mk
index 4f50ed3bcccf..be7fcbb125e8 100644
--- a/python/makefile.mk
+++ b/python/makefile.mk
@@ -90,7 +90,7 @@ CONFIGURE_ACTION += --disable-ipv6
.ENDIF
.IF "$(OS)" == "MACOSX"
-PATCH_FILES+=Python-2.6.1-py8067.patch Python-2.6.1-dylib_dynload.patch
+PATCH_FILES+=Python-2.6.1-py8067.patch
# don't build dual-arch version as OOo itself is not universal binary either
PATCH_FILES+=Python-2.6.1-arch_$(eq,$(CPU),I i386 ppc).patch