SPB Git

Repository Public License

NOTICE.md 14.0 KB

# LibreOffice

Component LibreOffice (The Document Foundation), used headless as the office-format conversion engine
Version 26.8.3 (build 26.8.3.1), official macOS aarch64 release
Download https://download.documentfoundation.org/libreoffice/stable/26.8.3/mac/aarch64/LibreOffice_26.8.3_MacOS_aarch64.dmg
SHA-256 of the disk image de943203795e5057785f65515063e2db5eb60b0bb6d8e2534fec59e5cc5fb988 (identical to the .sha256 file The Document Foundation publishes next to the image)
Installed as EmbeddedEngines/tools/LibreOffice.app → ORIX Convert.app/Contents/Helpers/LibreOffice.app
Source code https://download.documentfoundation.org/libreoffice/src/26.8.3/ — https://git.libreoffice.org/core (tag libreoffice-26.8.3.1)
License Mozilla Public License 2.0 for LibreOffice itself; bundled third-party components under their own licenses (see below)

Fetched and slimmed by fetch.sh (pinned version and hash; the official signature of the downloaded bundle is verified with codesign --verify --deep --strict before anything is touched).

# How it is used

LibreOffice is run as a separate process, one per conversion (soffice --headless --invisible --norestore --nologo --nodefault --nolockcheck --convert-to … --outdir …), through ProcessRunner, with a throw-away profile (-env:UserInstallation=file://… inside the job's work directory, HOME and TMPDIR pointed there too). The user's own LibreOffice profile and installation are never read or written. No LibreOffice source file is modified and nothing is linked into ORIX Convert.

The profile written for every run (LibreOffice.registryModifications in Packages/EngineDocuments) sets: macro security level 3 + DisableMacrosExecution + DisableActiveContent; BlockUntrustedRefererLinks and "update links: never" for Writer and Calc; hyperlink opening off; an HTTP/HTTPS proxy on a closed local port; update check, crash reporter, first-run wizard, recovery and OpenCL off.

# What the slimming removes (and what was measured)

Sizes are du -sk on APFS, measured by fetch.sh on 2026-11-21. After each stage the 24 reference conversions of the engine (DOCX / ODT / RTF / DOC / TXT / HTML → PDF, DOCX ↔ ODT ↔ DOC ↔ RTF, → TXT / HTML / EPUB, flat ODP → PPTX / ODP / PPT, PPTX / PPT / ODP → PDF, PPTX ↔ ODP ↔ PPT) were run and all 24 passed.

Stage Removed Size after (KiB)
official bundle — 827 784
integration Quick Look plug-ins (Contents/PlugIns), Spotlight importer (Contents/Library); Info.plist: document types, exported/imported UTIs, URL types, services and AppleScript keys removed, LSUIElement = true, bundle identifier ai.spboucher.orix.convert.libreoffice 827 380
help built-in help, readmes, tips of the day 764 596
content galleries, templates, wizards, AutoText 736 984
uithemes all icon themes except Colibre (bitmap) 666 416
extensions NLP solver; spelling and thesaurus data of the dictionaries (hyphenation patterns are kept: they change line breaks) 610 456
python the bundled CPython 3.13 framework, PyUNO, the Python scripting provider and scripts 523 644
java Java UNO bridge, report builder, HSQLDB, Java scripting providers (BeanShell, JavaScript) — no JVM is bundled 513 484
scripting the Basic macro libraries shipped with the suite and the Scripts folder 508 748
vba VBA object-model emulation libraries (libvbaobjlo, libvbaswobjlo) 503 948
database embedded Firebird engine, PostgreSQL and LDAP connectors 492 412
update online update checker 491 912
tools gengal, regview, senddoc, uno, unoinfo, unopkg, uri-encode, xpdfimport (+ its data) 474 680
installed bundle (after re-sealing) 471 472 KiB ≈ 460 MiB, 2 978 files

Result: 827 784 KiB → 471 472 KiB (−43 %). Mach-O files: 218 → 121.

Tried and kept because removing them broke conversions:

  • Resources/config/soffice.cfg (36 MiB of UI descriptions): without it every document fails to load; removing only the .ui dialog files makes conversions hang.
  • libjvmaccesslo, libjvmfwklo, libfbclient: load-time dependencies of libmergedlo.dylib. fetch.sh checks that every @loader_path dependency of every remaining Mach-O file is still present.

Kept on purpose: all bundled fonts (52 MiB: Liberation, Carlito, Caladea, DejaVu, Noto… — they are what gives metric-compatible substitution for Arial / Times New Roman / Calibri / Cambria), Calc and Draw (not used by this engine, possibly useful to others), ICU data, opencltest.

Why the Info.plist is edited: the official bundle declares document types, UTIs and Quick Look / Spotlight plug-ins; nested in another app it would be registered by Launch Services as a handler for office documents. Measured with lsappinfo: the official soffice --headless registers as a Foreground application (a Dock icon appears for every conversion); with LSUIElement it registers as UIElement (no Dock icon).

Side effect measured on the macro test (SafetyTests.autoOpenMacroIsNeverExecuted): a document whose Basic macro is bound to its load event runs that macro in the official bundle with macro security off; in the slimmed bundle it does not run even with macro security off, and with ORIX Convert's profile it does not run in either.

# Licenses and notices that must stay in the app

These files are inside the bundle and are never removed (fetch.sh fails if one is missing):

  • Contents/Resources/LICENSE and LICENSE.html — MPL-2.0 text plus the licenses of every bundled third-party component (ICU, HarfBuzz, Skia, PDFium, libxml2, NSS, curl, Liberation / Carlito / Caladea / DejaVu / Noto fonts, hyphenation dictionaries, etc.);
  • Contents/Resources/NOTICE — attribution notice (Apache OpenOffice heritage);
  • Contents/Resources/CREDITS.fodt — contributors.

Obligations: keep those files; state in the app's acknowledgements that LibreOffice 26.8.3 is included under the MPL-2.0 and where its source is (links above); the MPL requires that recipients can obtain the source of the MPL-covered files — unmodified here, so the upstream source release is the corresponding source. Third-party components keep their own notices (all in LICENSE). "LibreOffice" is a trademark of The Document Foundation: the app must not present itself as LibreOffice or suggest endorsement.

# Code signing — what the release build must do

State of the official bundle: signed by The Document Foundation (Team ID 7P5S3ZLCN7), Hardened Runtime, notarized. Entitlements of the official soffice (codesign -d --entitlements - LibreOffice.app):

text
com.apple.security.automation.apple-events                    true
com.apple.security.cs.allow-jit                               true
com.apple.security.cs.disable-executable-page-protection      true
com.apple.security.cs.disable-library-validation              true
com.apple.security.personal-information.addressbook           true

State after fetch.sh: removing files and editing Info.plist invalidates the official seal, and macOS kills a main executable whose Info.plist no longer matches its signature (observed: Killed: 9). fetch.sh therefore re-seals the bundle with an ad-hoc signature carrying the same five entitlements (no Hardened Runtime), so that it runs on the build machine. The 119 libraries keep their official signatures until the release build replaces them.

Entitlements actually needed — measured on 2026-11-21 by re-signing a private copy ad hoc with the Hardened Runtime (codesign --options runtime) and running the 24 reference conversions:

Entitlements on soffice (Hardened Runtime on) Result
disable-library-validation only 0 / 24 — Fatal exception: Signal 5 at start
disable-library-validation + allow-jit 24 / 24
disable-library-validation + allow-jit + disable-executable-page-protection 24 / 24

So com.apple.security.cs.allow-jit is required. disable-executable-page-protection, apple-events and addressbook were not needed for conversion. disable-library-validation was needed in the rehearsal only because ad-hoc code has no Team ID; when every Mach-O file below is signed with the same Developer ID team it should not be needed — that last point was not tested here (no Developer ID signature was made by this engine's work).

Recommended procedure:

  1. Sign every Mach-O file listed below, libraries first, with codesign --force --options runtime --timestamp --sign "Developer ID Application: …" (no entitlements on libraries).
  2. Sign Contents/MacOS/opencltest, then the bundle (codesign --force --options runtime --timestamp --entitlements libreoffice.entitlements --sign … LibreOffice.app) with com.apple.security.cs.allow-jit (add disable-library-validation only if a library keeps a foreign signature).
  3. Do not use --deep to sign; verify with codesign --verify --deep --strict afterwards. Sign this nested bundle before the outer app.
  4. Re-run swift test of Packages/EngineDocuments with ORIX_CONVERT_TOOLS pointing at the signed helpers: the macro, remote-resource and 130 path tests exercise the signed binaries.

# Mach-O files to sign (121: 2 executables, 119 libraries)

Regenerated by fetch.sh into work/macho-files.txt.

text
Contents/Frameworks/libAppleRemotelo.dylib
Contents/Frameworks/libCbc.3.dylib
Contents/Frameworks/libCbcSolver.3.dylib
Contents/Frameworks/libCgl.1.dylib
Contents/Frameworks/libClp.1.dylib
Contents/Frameworks/libClpSolver.1.dylib
Contents/Frameworks/libCoinMP.1.dylib
Contents/Frameworks/libCoinUtils.3.dylib
Contents/Frameworks/libLanguageToollo.dylib
Contents/Frameworks/libOsi.1.dylib
Contents/Frameworks/libOsiClp.1.dylib
Contents/Frameworks/libPresentationMinimizerlo.dylib
Contents/Frameworks/libabplo.dylib
Contents/Frameworks/libaffine_uno_uno.dylib
Contents/Frameworks/libassuan.9.dylib
Contents/Frameworks/libbinaryurplo.dylib
Contents/Frameworks/libbootstraplo.dylib
Contents/Frameworks/libcairo-lo.2.dylib
Contents/Frameworks/libcalclo.dylib
Contents/Frameworks/libclewlo.dylib
Contents/Frameworks/libclucene.dylib
Contents/Frameworks/libcmdmaillo.dylib
Contents/Frameworks/libcurl.4.dylib
Contents/Frameworks/libdbplo.dylib
Contents/Frameworks/libdeploymentgui.dylib
Contents/Frameworks/libepoxy.dylib
Contents/Frameworks/libetonyek-0.1.1.dylib
Contents/Frameworks/libfbclient.dylib.3.0.14
Contents/Frameworks/libfontconfig.1.dylib
Contents/Frameworks/libfreebl3.dylib
Contents/Frameworks/libgcc3_uno.dylib
Contents/Frameworks/libgpg-error.0.dylib
Contents/Frameworks/libgpgme.11.dylib
Contents/Frameworks/libgpgmepp.6.dylib
Contents/Frameworks/libi18nlangtag.dylib
Contents/Frameworks/libicudata.dylib.78
Contents/Frameworks/libicui18n.dylib.78
Contents/Frameworks/libicuuc.dylib.78
Contents/Frameworks/libintrospectionlo.dylib
Contents/Frameworks/libinvocadaptlo.dylib
Contents/Frameworks/libinvocationlo.dylib
Contents/Frameworks/libiolo.dylib
Contents/Frameworks/libjvmaccesslo.dylib
Contents/Frameworks/libjvmfwklo.dylib
Contents/Frameworks/liblangtag.1.dylib
Contents/Frameworks/liblcms2.2.dylib
Contents/Frameworks/liblocaledata_en.dylib
Contents/Frameworks/liblocaledata_es.dylib
Contents/Frameworks/liblocaledata_euro.dylib
Contents/Frameworks/liblocaledata_others.dylib
Contents/Frameworks/liblog_uno_uno.dylib
Contents/Frameworks/liblpsolve55.dylib
Contents/Frameworks/libmacabdrv1.dylib
Contents/Frameworks/libmacbe1lo.dylib
Contents/Frameworks/libmergedlo.dylib
Contents/Frameworks/libmigrationoo2lo.dylib
Contents/Frameworks/libmigrationoo3lo.dylib
Contents/Frameworks/libmswordlo.dylib
Contents/Frameworks/libmwaw-0.3.3.dylib
Contents/Frameworks/libnamingservicelo.dylib
Contents/Frameworks/libnspr4.dylib
Contents/Frameworks/libnss3.dylib
Contents/Frameworks/libnssckbi.dylib
Contents/Frameworks/libnssdbm3.dylib
Contents/Frameworks/libnssutil3.dylib
Contents/Frameworks/libodfgen-0.1.1.dylib
Contents/Frameworks/liborcus-0.21.0.dylib
Contents/Frameworks/liborcus-parser-0.21.0.dylib
Contents/Frameworks/libpcrlo.dylib
Contents/Frameworks/libpdfimportlo.dylib
Contents/Frameworks/libpdfiumlo.dylib
Contents/Frameworks/libpixman-1.0.dylib
Contents/Frameworks/libplc4.dylib
Contents/Frameworks/libplds4.dylib
Contents/Frameworks/libproxyfaclo.dylib
Contents/Frameworks/libraptor2-lo.0.dylib
Contents/Frameworks/librasqal-lo.3.dylib
Contents/Frameworks/librdf-lo.0.dylib
Contents/Frameworks/libreflectionlo.dylib
Contents/Frameworks/libreglo.dylib
Contents/Frameworks/librevenge-0.0.0.dylib
Contents/Frameworks/libsal_textenclo.dylib
Contents/Frameworks/libscdlo.dylib
Contents/Frameworks/libscfiltlo.dylib
Contents/Frameworks/libsclo.dylib
Contents/Frameworks/libscnlo.dylib
Contents/Frameworks/libscuilo.dylib
Contents/Frameworks/libsddlo.dylib
Contents/Frameworks/libsdlo.dylib
Contents/Frameworks/libsduilo.dylib
Contents/Frameworks/libsingleprovlo.dylib
Contents/Frameworks/libskialo.dylib
Contents/Frameworks/libsmdlo.dylib
Contents/Frameworks/libsmime3.dylib
Contents/Frameworks/libsmlo.dylib
Contents/Frameworks/libsoftokn3.dylib
Contents/Frameworks/libssl3.dylib
Contents/Frameworks/libstaroffice-0.0.0.dylib
Contents/Frameworks/libstocserviceslo.dylib
Contents/Frameworks/libstorelo.dylib
Contents/Frameworks/libsw_writerfilterlo.dylib
Contents/Frameworks/libswdlo.dylib
Contents/Frameworks/libswlo.dylib
Contents/Frameworks/libswuilo.dylib
Contents/Frameworks/libuno_cppu.dylib.3
Contents/Frameworks/libuno_cppuhelpergcc3.dylib.3
Contents/Frameworks/libuno_purpenvhelpergcc3.dylib.3
Contents/Frameworks/libuno_sal.dylib.3
Contents/Frameworks/libuno_salhelpergcc3.dylib.3
Contents/Frameworks/libunoidllo.dylib
Contents/Frameworks/libunopkgapp.dylib
Contents/Frameworks/libunsafe_uno_uno.dylib
Contents/Frameworks/libuuresolverlo.dylib
Contents/Frameworks/libvclplug_osxlo.dylib
Contents/Frameworks/libwpd-0.10.10.dylib
Contents/Frameworks/libwpg-0.3.3.dylib
Contents/Frameworks/libwps-0.4.4.dylib
Contents/Frameworks/libwriterlo.dylib
Contents/Frameworks/libxmlreaderlo.dylib
Contents/MacOS/opencltest
Contents/MacOS/soffice
Files main
Menu

Theme