On 06/15/2012 06:59 PM, Norbert Thiebaud wrote:
about your fix http://cgit.freedesktop.org/libreoffice/core/commit/?id=fa2006828ff69509e1ead755af906dcd35a992bf after your fixe: n_th@tpamac /Volumes/TBRAM/core $file solver/unxmacxi.pro/lib/pyuno.so solver/unxmacxi.pro/lib/pyuno.so: Mach-O dynamically linked shared library i386 on 3.-5 n_th@tpamac /Volumes/Raid0/rel $file solver/unxmacxi.pro/lib/pyuno.so solver/unxmacxi.pro/lib/pyuno.so: Mach-O bundle i386 Is that normal/expected ?
Good catch. The hand-crafted command line to build pyuno.so ($(PYUNO_MODULE)) at the end of old pyuno/source/module/makefile.mk explicitly contained -bundle for MACOXS, while the new pyuno/Library_pyuno_wrapper.mk implicitly uses the generic -dynamiclib instead.
The old use of -bundle got introduced with <http://cgit.freedesktop.org/libreoffice/core/commit/?id=b80fd9956bb01b3224fd61140e0e6aec1a45b9ae> "INTEGRATION: CWS pj49 (1.12.2); FILE MERGED" as a fix for <https://issues.apache.org/ooo/show_bug.cgi?id=61137> "pyuno.so must be a bundle" which states: "The -bundle option is mandatory on MacOS X <= 10.3."
Unfortunately, that issue does not give a description how to reproduce the problem. But maybe it is indeed no longer relevant for Mac OS X > 10.3. At least on a Mac OS X 10.7 machine, both "Tools - Macros - Run Macro... - LibreOffice Macros - HelloWorld - HelloWorldPython - Run" from within LO Writer and ".../LibreOffice.app/Contents/MacOS/python -c 'import uno'" work fine with the new build (using --enable-python=internal).
Stephan