3 LO needs to build both against MacOSX SDK and not produce universal binaries.
5 diff -ru python3.orig/configure python3/configure
6 --- python3.orig/configure 2015-07-26 17:36:11.808497783 +0200
7 +++ python3/configure 2015-07-26 17:38:49.016508337 +0200
10 case "$UNIVERSAL_ARCHS" in
12 - UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
13 + # LO does not use Universal Binaries (but the only way to set a SDK
14 + # here implies that, so de-universalize here...)
15 + case `/usr/bin/arch` in
17 + UNIVERSAL_ARCH_FLAGS="-arch i386"
20 + UNIVERSAL_ARCH_FLAGS=""
23 + as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
30 diff -ru python3.orig/Mac/Makefile.in python3/Mac/Makefile.in
31 --- python3.orig/Mac/Makefile.in 2015-07-05 18:50:07.000000000 +0200
32 +++ python3/Mac/Makefile.in 2015-07-26 17:40:14.860514100 +0200
34 INSTALL_SCRIPT= @INSTALL_SCRIPT@
35 INSTALL_DATA=@INSTALL_DATA@
41 APPTEMPLATE=$(srcdir)/Resources/app
42 diff -ru python3.orig/Mac/Resources/app/Info.plist.in python3/Mac/Resources/app/Info.plist.in
43 --- python3.orig/Mac/Resources/app/Info.plist.in 2015-07-05 18:50:07.000000000 +0200
44 +++ python3/Mac/Resources/app/Info.plist.in 2015-07-26 17:42:00.974521224 +0200
48 <key>CFBundleExecutable</key>
49 - <string>Python</string>
50 + <string>LibreOfficePython</string>
51 <key>CFBundleGetInfoString</key>
52 <string>%version%, (c) 2001-2023 Python Software Foundation.</string>
53 <key>CFBundleHelpBookFolder</key>
54 diff -ru python3.orig/Mac/Resources/framework/Info.plist.in python3/Mac/Resources/framework/Info.plist.in
55 --- python3.orig/Mac/Resources/framework/Info.plist.in 2015-07-05 18:50:07.000000000 +0200
56 +++ python3/Mac/Resources/framework/Info.plist.in 2015-07-26 17:41:15.996518204 +0200
58 <key>CFBundleDevelopmentRegion</key>
59 <string>English</string>
60 <key>CFBundleExecutable</key>
61 - <string>Python</string>
62 + <string>@PYTHONFRAMEWORK@</string>
63 <key>CFBundleGetInfoString</key>
64 <string>Python Runtime and Library</string>
65 <key>CFBundleIdentifier</key>