Apache OpenOffice (AOO) Bugzilla – Issue 111496
[meta] allow building with internal python on Mac OS X
Last modified: 2023-05-21 16:47:32 UTC
Got hacky patch to that makes it work on Mac, but affects other platforms, especially python/prj/d.lst This is a meta-issue tracking open questions on how to solve these (code/style) conflicts.
Patches to create a working build with OOo internal python attached to the depending issues. Both running macros from within OOo as well as using the shipped python to control OOo from the outside works. ToDo: * decide what to do with the ugly d.lst * python scripts in bin directory within framework reference build (python's installation destination) directory in shebang (remove or change?) * adapt scp2 patch to not hardcode version, but use define for major.minor * make name of the framework a variable (well, only necessary if Oracle cannot live with OOoPython.framework in their tree :-)) - by configure/set_soenv or in solenv?
forgot to mention the most important ToDo: need to run install_name_tool to relocate the framework.
Removing me.
d.list has been shrinked down considerably. As I moved the creation of the zip to python directly, there's no need to copying the whole thing to solver. Header and the actual framework binary is enough. (the d.list entries for the other OS still copy lots of files in addition though) Also the install_name_tool usage has been added to the patches as well. Now python keeps working, even if you dare to erase your build tree :-))
Done from my side. ToDo: * decide whether OOo-internal python should be default for Mac in future Maybe: Make the framework-name (currently OOoPython.framework) a variable. and of course: Give it a spin on various versions of Mac OSX
Created attachment 69534 [details] combined patch of the individual issues for convenience
Created attachment 71485 [details] modified against m86
Patches work for me, macros still work :) and import uno also works with the internal python. Though I am not really happy about the added disk space usage (ca. 75MB-80MB for the framework)...
Set type from "task" to "patch" Does any developer know if this patch can be pushed into AOO 4.x? this would be very useful as python 2.7 is no longer provided under MacOS.