libera-core 0.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. libera_core-0.7/.gitignore +46 -0
  2. libera_core-0.7/PKG-INFO +10 -0
  3. libera_core-0.7/README.md +1 -0
  4. libera_core-0.7/build/docker/Dockerfile +239 -0
  5. libera_core-0.7/build/engine/build.sh +608 -0
  6. libera_core-0.7/build/engine/check-patches.sh +52 -0
  7. libera_core-0.7/build/engine/common.sh +364 -0
  8. libera_core-0.7/build/engine/dist.sh +303 -0
  9. libera_core-0.7/build/engine/doctrenderer-jsc.sh +136 -0
  10. libera_core-0.7/build/engine/icu-data-filter.json +26 -0
  11. libera_core-0.7/build/engine/payload.sh +377 -0
  12. libera_core-0.7/build/engine/smoke-pdf/changes0.txt +1 -0
  13. libera_core-0.7/build/engine/smoke-pdf/encrypted.pdf +74 -0
  14. libera_core-0.7/build/engine/smoke-pdf/hybrid.pdf +47 -0
  15. libera_core-0.7/build/engine/smoke-pdf/protected.pdf +85 -0
  16. libera_core-0.7/build/engine/smoke-pdf/sample.pdf +32 -0
  17. libera_core-0.7/build/engine/smoke.sh +293 -0
  18. libera_core-0.7/build/engine/toolchain.sh +475 -0
  19. libera_core-0.7/build/src/libera_build/__init__.py +5 -0
  20. libera_core-0.7/build/src/libera_build/__main__.py +14 -0
  21. libera_core-0.7/build/src/libera_build/artifacts.py +36 -0
  22. libera_core-0.7/build/src/libera_build/bench.py +320 -0
  23. libera_core-0.7/build/src/libera_build/buildbox.py +385 -0
  24. libera_core-0.7/build/src/libera_build/cli.py +971 -0
  25. libera_core-0.7/build/src/libera_build/components.py +220 -0
  26. libera_core-0.7/build/src/libera_build/containers.py +212 -0
  27. libera_core-0.7/build/src/libera_build/fidelity.py +266 -0
  28. libera_core-0.7/build/src/libera_build/flatpak.py +376 -0
  29. libera_core-0.7/build/src/libera_build/hosts.py +237 -0
  30. libera_core-0.7/build/src/libera_build/inventory.py +144 -0
  31. libera_core-0.7/build/src/libera_build/linux.py +254 -0
  32. libera_core-0.7/build/src/libera_build/matrix.py +162 -0
  33. libera_core-0.7/build/src/libera_build/origin/__init__.py +21 -0
  34. libera_core-0.7/build/src/libera_build/origin/cdn.py +114 -0
  35. libera_core-0.7/build/src/libera_build/origin/check.py +156 -0
  36. libera_core-0.7/build/src/libera_build/origin/collect.py +159 -0
  37. libera_core-0.7/build/src/libera_build/origin/place.py +59 -0
  38. libera_core-0.7/build/src/libera_build/origin/publish.py +249 -0
  39. libera_core-0.7/build/src/libera_build/origin/status.py +132 -0
  40. libera_core-0.7/build/src/libera_build/origin/verbs.py +68 -0
  41. libera_core-0.7/build/src/libera_build/process.py +54 -0
  42. libera_core-0.7/build/src/libera_build/release/__init__.py +10 -0
  43. libera_core-0.7/build/src/libera_build/release/builds.py +148 -0
  44. libera_core-0.7/build/src/libera_build/release/context.py +33 -0
  45. libera_core-0.7/build/src/libera_build/release/on.py +99 -0
  46. libera_core-0.7/build/src/libera_build/release/phases/__init__.py +7 -0
  47. libera_core-0.7/build/src/libera_build/release/phases/builders.py +130 -0
  48. libera_core-0.7/build/src/libera_build/release/phases/here.py +128 -0
  49. libera_core-0.7/build/src/libera_build/release/phases/publishing.py +68 -0
  50. libera_core-0.7/build/src/libera_build/release/phases/update.py +74 -0
  51. libera_core-0.7/build/src/libera_build/release/plan.py +208 -0
  52. libera_core-0.7/build/src/libera_build/release/precheck.py +104 -0
  53. libera_core-0.7/build/src/libera_build/release/ship.py +103 -0
  54. libera_core-0.7/build/src/libera_build/released_gui.py +90 -0
  55. libera_core-0.7/build/src/libera_build/repo.py +98 -0
  56. libera_core-0.7/build/src/libera_build/report.py +31 -0
  57. libera_core-0.7/build/src/libera_build/tidy.py +91 -0
  58. libera_core-0.7/build/src/libera_build/versions.py +69 -0
  59. libera_core-0.7/build/upstream/patches/core/0009-v8-allow-the-build-job-count-to-be-overridden.patch +34 -0
  60. libera_core-0.7/build/upstream/patches/core/0010-v8-allow-keeping-the-build-directory-between-runs.patch +39 -0
  61. libera_core-0.7/build/upstream/patches/core/0018-openjpeg-use-posix_memalign-on-macOS.patch +35 -0
  62. libera_core-0.7/build/upstream/patches/core/0022-boost-build-the-Boost.Build-engine-with-a-named-tool.patch +78 -0
  63. libera_core-0.7/build/upstream/patches/core/0023-3dparty-let-the-environment-ask-the-builders-to-stre.patch +35 -0
  64. libera_core-0.7/build/upstream/patches/core/0024-cmake-let-EO_CORE_OPENSSL_DIR-point-at-an-OpenSSL-bu.patch +56 -0
  65. libera_core-0.7/build/upstream/patches/core/0025-cryptopp-stop-using-the-stdext-namespace-MSVC-has-re.patch +57 -0
  66. libera_core-0.7/build/upstream/patches/core/0026-doctrenderer-build-against-an-OpenSSL-without-MD2.patch +77 -0
  67. libera_core-0.7/build/upstream/patches/core/0028-cmake-build-every-Windows-module-against-the-DLL-CRT.patch +98 -0
  68. libera_core-0.7/build/upstream/patches/core/0029-csv-do-not-skip-the-character-after-each-500000-char.patch +45 -0
  69. libera_core-0.7/build/upstream/patches/core/0030-unicode-size-the-UTF-16-buffer-for-characters-outsid.patch +49 -0
  70. libera_core-0.7/build/upstream/patches/core/0031-csv-a-UTF-8-CSV-no-longer-gains-an-empty-row-at-the-.patch +41 -0
  71. libera_core-0.7/build/upstream/patches/core/0032-graphics-bind-hypotf-to-its-old-glibc-version-on-Lin.patch +72 -0
  72. libera_core-0.7/build/upstream/patches/core/0033-RtfFile-write-the-last-section-when-the-body-has-no-.patch +56 -0
  73. libera_core-0.7/build/upstream/patches/core/0034-doctrenderer-let-DOCTRENDERER_CACHE_DIR-hold-the-V8-.patch +51 -0
  74. libera_core-0.7/build/upstream/patches/core/0101-OdfFile-do-not-read-current_font_size.back-on-an-emp.patch +54 -0
  75. libera_core-0.7/build/upstream/patches/core/0102-OdfFile-give-a-date-content-control-a-value-its-type.patch +86 -0
  76. libera_core-0.7/build/upstream/patches/core/0103-OdfFile-w-outlineLvl-is-zero-based-and-text-level-mu.patch +134 -0
  77. libera_core-0.7/build/upstream/patches/core/0104-OdfFile-carry-the-document-metadata-OOXML-actually-p.patch +84 -0
  78. libera_core-0.7/build/upstream/patches/core/0105-OdfFile-declare-the-ODF-version-on-the-manifest-and-.patch +76 -0
  79. libera_core-0.7/build/upstream/patches/core/0106-OdfFile-write-text-label-followed-by-and-stop-discar.patch +86 -0
  80. libera_core-0.7/build/upstream/patches/core/0107-OdfFile-stop-overruling-the-note-style-s-indent-and-.patch +73 -0
  81. libera_core-0.7/build/upstream/patches/core/0108-OdfFile-drop-a-content-control-s-trailing-newline-no.patch +42 -0
  82. libera_core-0.7/build/upstream/patches/core/0109-OdfFile-writer-master-page-headers-before-footers.patch +38 -0
  83. libera_core-0.7/build/upstream/patches/core/0110-OdfFile-writer-spreadsheet-header-text-outside-any-r.patch +71 -0
  84. libera_core-0.7/build/upstream/patches/core/0111-OdfFile-writer-booleans-as-true-false-unset-optional.patch +421 -0
  85. libera_core-0.7/build/upstream/patches/core/0112-OdfFile-writer-no-text-span-inside-text-only-fields.patch +41 -0
  86. libera_core-0.7/build/upstream/patches/core/0113-OdfFile-writer-declare-ODF-1.3.patch +103 -0
  87. libera_core-0.7/build/upstream/patches/core/0114-OdfFile-writer-master-page-notes-after-the-shapes-an.patch +44 -0
  88. libera_core-0.7/build/upstream/patches/core/0115-OdfFile-writer-chart-properties-first-in-a-style.patch +80 -0
  89. libera_core-0.7/build/upstream/patches/core/0116-OdfFile-writer-tab-leader-type-from-the-type-not-the.patch +36 -0
  90. libera_core-0.7/build/upstream/patches/core/0117-OdfFile-writer-one-character-in-text-bullet-char-the.patch +43 -0
  91. libera_core-0.7/build/upstream/patches/core/0118-OdfFile-writer-validation-help-message-before-the-er.patch +44 -0
  92. libera_core-0.7/build/upstream/patches/core/0119-OdfFile-writer-draw-display-name-not-draw-display_na.patch +71 -0
  93. libera_core-0.7/build/upstream/patches/core/0120-OdfFile-writer-chart-treat-empty-cells-from-c-dispBl.patch +97 -0
  94. libera_core-0.7/build/upstream/patches/core/0121-OdfFile-writer-AM-PM-in-a-time-style-is-number-am-pm.patch +118 -0
  95. libera_core-0.7/build/upstream/patches/core/0122-OdfFile-writer-a-slide-s-body-placeholder-is-present.patch +38 -0
  96. libera_core-0.7/build/upstream/patches/core/0123-OdfFile-writer-no-negative-text-min-label-width-for-.patch +37 -0
  97. libera_core-0.7/build/upstream/patches/core/0124-OdfFile-writer-form-controls-carry-xml-id-as-well-as.patch +33 -0
  98. libera_core-0.7/build/upstream/patches/core/0125-OdfFile-writer-a-DOCX-table-without-grid-columns-get.patch +113 -0
  99. libera_core-0.7/build/upstream/patches/core/0126-OdfFile-presentation-master-page-names-are-NCNames-s.patch +94 -0
  100. libera_core-0.7/build/upstream/patches/core/0127-OdfFile-writer-a-chart-series-writes-its-domain-befo.patch +49 -0
  101. libera_core-0.7/build/upstream/patches/core/0128-OdfFile-writer-no-graphic-properties-in-a-table-row-.patch +66 -0
  102. libera_core-0.7/build/upstream/patches/core/0129-OdfFile-an-index-entry-s-text-reaches-text-string-va.patch +121 -0
  103. libera_core-0.7/build/upstream/patches/core/0130-OdfFile-writer-a-field-that-starts-inside-a-span-sta.patch +49 -0
  104. libera_core-0.7/build/upstream/patches/core/0131-OdfFile-writer-a-chart-s-axes-come-before-its-series.patch +53 -0
  105. libera_core-0.7/build/upstream/patches/core/0132-OdfFile-writer-a-table-cell-writes-its-annotation-be.patch +85 -0
  106. libera_core-0.7/build/upstream/patches/core/0133-OdfFile-reader-whitespace-in-a-note-body-is-not-text.patch +46 -0
  107. libera_core-0.7/build/upstream/patches/core/0134-OdfFile-writer-a-DOCX-grid-column-is-as-wide-as-it-s.patch +79 -0
  108. libera_core-0.7/build/upstream/patches/core/0135-OdfFile-writer-office-text-opens-with-forms-tracked-.patch +45 -0
  109. libera_core-0.7/build/upstream/patches/core/0136-OdfFile-writer-each-piece-of-a-tracked-change-is-a-r.patch +66 -0
  110. libera_core-0.7/build/upstream/patches/core/0137-OdfFile-writer-a-link-on-a-drawing-opens-in-place-no.patch +33 -0
  111. libera_core-0.7/build/upstream/patches/core/0138-OdfFile-writer-a-master-page-s-shapes-from-master-an.patch +82 -0
  112. libera_core-0.7/build/upstream/patches/core/0139-OdfFile-writer-a-combo-box-writes-its-items-after-it.patch +40 -0
  113. libera_core-0.7/build/upstream/patches/core/0140-OdfFile-reader-a-chapter-field-is-STYLEREF-not-BIBLI.patch +87 -0
  114. libera_core-0.7/build/upstream/patches/core/0141-OdfFile-writer-a-named-range-without-a-sheet-keeps-t.patch +54 -0
  115. libera_core-0.7/build/upstream/patches/core/0142-OdfFile-reader-deleted-text-in-a-deleted-frame-is-we.patch +36 -0
  116. libera_core-0.7/build/upstream/patches/core/0143-OdfFile-writer-a-connector-has-the-viewBox-the-schem.patch +66 -0
  117. libera_core-0.7/build/upstream/patches/core/0144-OdfFile-writer-an-axis-writes-its-categories-before-.patch +46 -0
  118. libera_core-0.7/build/upstream/patches/core/0145-OdfFile-writer-a-slide-with-a-draw-id-has-the-xml-id.patch +32 -0
  119. libera_core-0.7/build/upstream/patches/core/0146-OdfFile-writer-a-click-action-belongs-to-the-frame-a.patch +82 -0
  120. libera_core-0.7/build/upstream/patches/core/0147-OdfFile-writer-a-sheet-name-with-a-space-is-quoted-i.patch +57 -0
  121. libera_core-0.7/build/upstream/patches/core/0148-OdfFile-writer-a-cell-without-a-value-has-no-type-th.patch +54 -0
  122. libera_core-0.7/build/upstream/patches/core/0149-OdfFile-writer-a-media-object-s-preview-is-embedded-.patch +83 -0
  123. libera_core-0.7/build/upstream/patches/core/0150-OdfFile-writer-an-image-with-neither-a-link-nor-data.patch +38 -0
  124. libera_core-0.7/build/upstream/patches/core/0151-OdfFile-writer-a-bitmap-tile-s-size-is-a-percentage-.patch +86 -0
  125. libera_core-0.7/build/upstream/patches/core/0152-OdfFile-writer-no-soft-page-break-directly-in-a-list.patch +47 -0
  126. libera_core-0.7/build/upstream/patches/core/0153-OdfFile-writer-each-table-closes-its-own-header-rows.patch +71 -0
  127. libera_core-0.7/build/upstream/patches/core/0154-OdfFile-writer-one-line-numbering-configuration-for-.patch +34 -0
  128. libera_core-0.7/build/upstream/patches/core/0155-OdfFile-writer-an-image-the-source-does-not-hold-is-.patch +67 -0
  129. libera_core-0.7/build/upstream/patches/core/0156-OdfFile-reader-a-standard-connector-comes-back-bent-.patch +43 -0
  130. libera_core-0.7/build/upstream/patches/core/0157-OdfFile-a-page-s-fill-goes-in-a-drawing-page-style-a.patch +148 -0
  131. libera_core-0.7/build/upstream/patches/core/0158-OdfFile-a-form-control-s-value-only-where-the-contro.patch +94 -0
  132. libera_core-0.7/build/upstream/patches/core/0159-OdfFile-writer-an-XLSX-pivot-table-becomes-a-data-pi.patch +344 -0
  133. libera_core-0.7/build/upstream/patches/core/0160-OdfFile-reader-an-XLSX-package-s-core-properties-hav.patch +35 -0
  134. libera_core-0.7/build/upstream/patches/core/0161-OdfFile-reader-numFmts-gives-its-count-as-count-not-.patch +35 -0
  135. libera_core-0.7/build/upstream/patches/core/0162-OdfFile-reader-a-sheet-selection-names-its-pane-with.patch +31 -0
  136. libera_core-0.7/build/upstream/patches/core/0163-OdfFile-reader-XLSX-border-and-tab-colours-are-ARGB.patch +44 -0
  137. libera_core-0.7/build/upstream/patches/core/0164-OdfFile-reader-an-XLSX-underline-is-written-by-name.patch +32 -0
  138. libera_core-0.7/build/upstream/patches/core/0165-OdfFile-reader-the-default-tab-stop-is-in-whole-twip.patch +30 -0
  139. libera_core-0.7/build/upstream/patches/core/0166-OdfFile-reader-the-default-run-properties-go-in-w-rP.patch +96 -0
  140. libera_core-0.7/build/upstream/patches/core/0167-OdfFile-reader-a-section-s-properties-are-written-in.patch +125 -0
  141. libera_core-0.7/build/upstream/patches/core/0168-OdfFile-reader-escape-text-in-formulas-filters-comme.patch +124 -0
  142. libera_core-0.7/build/upstream/patches/core/0169-OdfFile-reader-read-the-styles-of-a-document-with-no.patch +37 -0
  143. libera_core-0.7/build/upstream/patches/core/0170-v8-clone-the-8.9.45-tag-alone.patch +41 -0
  144. libera_core-0.7/build/upstream/patches/core/0171-openssl-configure-without-the-tests.patch +43 -0
  145. libera_core-0.7/build/upstream/patches/core/0172-cmake-let-EO_CORE_LIBXML2_DIR-point-at-a-libxml2-che.patch +52 -0
  146. libera_core-0.7/build/upstream/patches/core/0173-xls-check-an-ActiveX-control-s-data-without-an-overf.patch +38 -0
  147. libera_core-0.7/build/upstream/patches/core/0174-svg-draw-only-the-pictures-an-SVG-carries-in-itself.patch +137 -0
  148. libera_core-0.7/build/upstream/patches/core/0175-ooxml-read-a-linked-picture-from-a-web-address-only.patch +104 -0
  149. libera_core-0.7/build/upstream/patches/core/0176-pdf-leave-the-XFA-out-of-a-form-saved-as-an-incremen.patch +35 -0
  150. libera_core-0.7/build/upstream/patches/core/0177-pdf-keep-the-Creator-of-a-PDF-saved-as-an-incrementa.patch +32 -0
  151. libera_core-0.7/build/upstream/patches/core/0178-pdf-a-moved-page-keeps-what-it-inherits-from-its-own.patch +35 -0
  152. libera_core-0.7/build/upstream/patches/core/0179-pdf-write-a-form-field-s-value-on-the-field.patch +39 -0
  153. libera_core-0.7/build/upstream/patches/core/0180-build-define-the-headers-constant-tables-once-as-inl.patch +243 -0
  154. libera_core-0.7/build/upstream/patches/core/0181-pdf-keep-an-encrypted-PDF-s-file-ID-at-its-own-lengt.patch +152 -0
  155. libera_core-0.7/build/upstream/patches/core/0182-pdf-an-incremental-update-that-cannot-start-writes-n.patch +50 -0
  156. libera_core-0.7/build/upstream/patches/core/0183-x2t-refuse-an-encrypted-OOXML-file-whose-integrity-c.patch +41 -0
  157. libera_core-0.7/build/upstream/patches/core/0184-odf-pad-an-encrypted-part-that-fills-its-last-block.patch +30 -0
  158. libera_core-0.7/build/upstream/patches/core/0185-pdf-stop-a-stream-at-its-end-when-changing-a-passwor.patch +41 -0
  159. libera_core-0.7/build/upstream/patches/core/0186-pdf-say-in-Perms-that-metadata-is-encrypted.patch +31 -0
  160. libera_core-0.7/build/upstream/patches/core/0187-pdf-leave-the-old-encryption-dictionary-out-when-cha.patch +40 -0
  161. libera_core-0.7/build/upstream/patches/core/0188-xmlsec-name-the-signer-by-the-certificate-s-subject-.patch +82 -0
  162. libera_core-0.7/build/upstream/patches/core/0189-xmlsec-end-a-certificate-s-dates-on-its-own-day.patch +27 -0
  163. libera_core-0.7/build/upstream/patches/core/0190-xmlsec-add-libera-sign-which-signs-and-checks-OOXML-.patch +350 -0
  164. libera_core-0.7/build/upstream/patches/libxml2/0001-build-the-version-header-core-compiles-against.patch +511 -0
  165. libera_core-0.7/build/upstream/patches/libxml2/0002-error-write-nothing-when-built-with-XML_ERROR_DISABL.patch +44 -0
  166. libera_core-0.7/build/upstream/patches/sdkjs/0001-build-let-BUILD_JOBS-cap-how-many-tasks-a-phase-runs.patch +90 -0
  167. libera_core-0.7/build/upstream/patches/sdkjs/0002-feat-libfont-substitute-missing-fonts-the-way-Word-d.patch +292 -0
  168. libera_core-0.7/build/upstream/patches/sdkjs/0003-feat-libfont-map-symbol-font-codes-to-Unicode-when-t.patch +206 -0
  169. libera_core-0.7/build/upstream/patches/sdkjs/0004-fix-word-Markdown-keeps-its-headings-through-a-save.patch +93 -0
  170. libera_core-0.7/build/upstream/patches/sdkjs/0005-fix-pdf-CPDFDoc-no-longer-assigns-the-fields-its-pro.patch +35 -0
  171. libera_core-0.7/build/upstream/patches/web-apps/0001-build-substitute-theme-tokens-when-deploying-HTML.patch +107 -0
  172. libera_core-0.7/build/upstream/patches/web-apps/0002-config-no-upstream-tips-helpdesk-or-go-back-in-the-d.patch +40 -0
  173. libera_core-0.7/build/upstream/patches/web-apps/0003-fix-ui-stop-unsized-language-icons-rendering-at-300x.patch +47 -0
  174. libera_core-0.7/build/upstream/patches/web-apps/0004-config-the-wrapper-page-is-not-ONLYOFFICE-Documents.patch +27 -0
  175. libera_core-0.7/build/upstream/patches/web-apps/0005-build-let-BUILD_JOBS-cap-how-many-tasks-a-phase-runs.patch +80 -0
  176. libera_core-0.7/build/upstream/patches/web-apps/0006-brand-drop-the-ONLYOFFICE-favicon.patch +477 -0
  177. libera_core-0.7/build/upstream/patches/web-apps/0007-brand-keep-About-reachable-in-the-desktop-build.patch +133 -0
  178. libera_core-0.7/build/upstream/patches/web-apps/0008-build-spawn-npm-and-webpack-through-node-for-Windows.patch +65 -0
  179. libera_core-0.7/build/upstream/patches/web-apps/0009-config-no-macros-in-the-desktop-editor.patch +34 -0
  180. libera_core-0.7/build/upstream/patches/web-apps/0010-build-make-the-sprites-before-the-tasks-that-read-th.patch +62 -0
  181. libera_core-0.7/build/upstream/patches/web-apps/0011-security-show-a-tracked-change-s-font-and-style-name.patch +48 -0
  182. libera_core-0.7/build/upstream/patches/web-apps/0012-security-show-the-Formula-Wizard-s-values-and-result.patch +68 -0
  183. libera_core-0.7/build/upstream/pins.toml +30 -0
  184. libera_core-0.7/build/windows/associations.py +100 -0
  185. libera_core-0.7/build/windows/entry.py +61 -0
  186. libera_core-0.7/build/windows/gui-test.sh +78 -0
  187. libera_core-0.7/build/windows/libera.iss +132 -0
  188. libera_core-0.7/build/windows/libera.spec +77 -0
  189. libera_core-0.7/build/windows/msvc-env.sh +160 -0
  190. libera_core-0.7/build/windows/vcpkg.sh +98 -0
  191. libera_core-0.7/build/windows/windows-app.sh +161 -0
  192. libera_core-0.7/build/windows/windows-setup.ps1 +276 -0
  193. libera_core-0.7/hatch_build.py +41 -0
  194. libera_core-0.7/pyproject.toml +49 -0
  195. libera_core-0.7/src/libera/__init__.py +8 -0
  196. libera_core-0.7/src/libera/manifest.py +227 -0
  197. libera_core-0.7/src/libera/payload/__init__.py +44 -0
  198. libera_core-0.7/src/libera/payload/fonts.py +416 -0
  199. libera_core-0.7/src/libera/payload/generate.py +130 -0
  200. libera_core-0.7/src/libera/payload/leftovers.py +48 -0
  201. libera_core-0.7/src/libera/payload/locate.py +410 -0
  202. libera_core-0.7/src/libera/payload/payload.version +7 -0
  203. libera_core-0.7/src/libera_core/__init__.py +1 -0
@@ -0,0 +1,46 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ dist/
5
+ wheels/
6
+ *.egg-info
7
+
8
+ # Virtual environments
9
+ .venv
10
+ .python-version
11
+
12
+ # The pulled Euro-Office payload the POC used. Nothing reads it any more;
13
+ # everything comes from build/ now.
14
+ vendor/
15
+
16
+ # build/ is our Euro-Office build script and patch queue, not an artefact
17
+ # directory -- uv_build never writes one. Un-ignore it: the usual global
18
+ # gitignore carries /build/ from the setuptools era, which would swallow it.
19
+ !/build/
20
+ /etc/
21
+
22
+ # Generated by `INSTALL_MANIFEST=1 build/engine/dist.sh`, and deliberately not
23
+ # committed until there is an origin to fetch from: its hashes cover artifacts
24
+ # that exist only on the machine that built them. A release commits it, from a
25
+ # clean tree, with every platform's core present.
26
+ src/libera/manifest.json
27
+
28
+ # Built documentation (docs/Makefile)
29
+ /docs/site/
30
+ # Generated by docs/preprocess.py
31
+ /docs/src/news/
32
+ /docs/i18n/*/news/
33
+ /docs/i18n/*/assets/
34
+ /docs/zensical.*.toml
35
+ /docs/.cache/
36
+ /notes/pdf/
37
+
38
+ # The macOS application bundle (build/macos/macos-app.sh)
39
+ /build/out/
40
+
41
+ # Written by `uv run pytest --cov=libera`, and committed once by accident.
42
+ .coverage
43
+
44
+ # An inventory of build hosts (build/builders.toml.example is the template).
45
+ build/builders.toml
46
+ .hop3-local.toml
@@ -0,0 +1,10 @@
1
+ Metadata-Version: 2.5
2
+ Name: libera-core
3
+ Version: 0.7
4
+ Summary: Libera Suite's document converter, built from Euro-Office sources
5
+ Project-URL: Source, https://github.com/abilian/libera-suite
6
+ License-Expression: AGPL-3.0-only
7
+ Requires-Python: >=3.12
8
+ Description-Content-Type: text/markdown
9
+
10
+ Part of [Libera Suite](https://pypi.org/project/libera/), installed with it: `pip install libera`. Built from [Euro-Office](https://github.com/Euro-Office) sources, which are AGPL v3, with Libera Suite's patches; the pinned sources and the patch queue are in [the repository](https://github.com/abilian/libera-suite/tree/main/build/upstream).
@@ -0,0 +1 @@
1
+ Part of [Libera Suite](https://pypi.org/project/libera/), installed with it: `pip install libera`. Built from [Euro-Office](https://github.com/Euro-Office) sources, which are AGPL v3, with Libera Suite's patches; the pinned sources and the patch queue are in [the repository](https://github.com/abilian/libera-suite/tree/main/build/upstream).
@@ -0,0 +1,239 @@
1
+ # Build environment for Euro-Office core on Linux.
2
+ #
3
+ # Nothing is copied in: build/src/libera_build/buildbox.py bind-mounts this repository and the
4
+ # local upstream mirror, and keeps $BUILD_ROOT in a named volume. V8 alone takes
5
+ # half an hour, so the volume is what makes a second run cheap.
6
+ #
7
+ # Everything that can drift is pinned, for the same reason build/upstream/pins.toml pins
8
+ # the sources by SHA: a patch queue is only meaningful against a fixed base, and
9
+ # "it built last week" has to still be true next year.
10
+ #
11
+ # the base image by digest, because a tag is a branch with better marketing
12
+ # every apt package by archive snapshot date (APT_SNAPSHOT)
13
+ # Node by version and SHA-256, from nodejs.org
14
+ #
15
+ # Moving the toolchain means bumping one of those three ARGs deliberately.
16
+ # Nothing else in here decides what gets installed.
17
+ #
18
+ # **One release, two compilers, and the reason is V8 at both ends.**
19
+ #
20
+ # Common/3dParty/v8/nc-build.py checks the compiler only on Linux arm64, and
21
+ # checks it exactly:
22
+ #
23
+ # if nc.is_linux() and targetarch == "arm64":
24
+ # if not version.startswith( "13." ): abort
25
+ #
26
+ # Ubuntu dropped clang-13 after 22.04, so an arm64 build has to be on jammy.
27
+ # amd64 has no such gate, only a ceiling: V8 8.9 stops compiling at clang 16.
28
+ #
29
+ # amd64 used to build on noble anyway, because that is upstream's own CI base
30
+ # (docker-ci/ds-base), and the binaries it produced needed GLIBC 2.38 and
31
+ # GLIBCXX 3.4.32. Measured in a clean container of each release, the shipped
32
+ # x2t then refused to load on Ubuntu 22.04 and on Debian 12, while the
33
+ # jammy-built arm64 core ran on both. So both architectures build on jammy now
34
+ # and only CLANG_VERSION differs; build/src/libera_build/buildbox.py picks it.
35
+ #
36
+ # Everything that can drift is still pinned per release, and the checks further
37
+ # down run on both, so a toolchain that is wrong for one of them fails here
38
+ # rather than forty minutes into a build.
39
+ ARG UBUNTU_RELEASE=22.04
40
+ ARG UBUNTU_CODENAME=jammy
41
+ ARG BASE_DIGEST=sha256:829f6df217bcbae2b371026e81711d1a787c61b2967ad09d015063663ebafbf7
42
+ FROM ubuntu:${UBUNTU_RELEASE}@${BASE_DIGEST}
43
+
44
+ # Re-declared because an ARG from before FROM is out of scope after it.
45
+ ARG UBUNTU_RELEASE
46
+ ARG UBUNTU_CODENAME
47
+ ARG BASE_DIGEST
48
+ ARG APT_SNAPSHOT=20260901T000000Z
49
+ ARG CLANG_VERSION=14
50
+ ARG NODE_VERSION=20.20.2
51
+ ARG NODE_SHA256_AMD64=df770b2a6f130ed8627c9782c988fda9669fa23898329a61a871e32f965e007d
52
+ ARG NODE_SHA256_ARM64=73093db209e4e9e09dd7d15a47aeaab1b74833830df03efa5f942a1122c5fa71
53
+
54
+ ENV DEBIAN_FRONTEND=noninteractive
55
+
56
+ # ca-certificates first, and from the stock archive: snapshot.ubuntu.com is
57
+ # https-only (plain http 301s to it) and the base image carries no CA bundle, so
58
+ # this one package cannot itself come from the snapshot. It is reinstalled from
59
+ # the snapshot below, so the finished image has nothing unpinned in it.
60
+ RUN apt-get update \
61
+ && apt-get install -y --no-install-recommends ca-certificates
62
+
63
+ # Then point apt at the archive as it stood on APT_SNAPSHOT, and check that it
64
+ # landed. `apt-get update` exits 0 when every index fails to download -- it
65
+ # falls back to whatever is already in /var/lib/apt/lists and mentions it in a
66
+ # W: line -- so an unreachable snapshot would otherwise install today's packages
67
+ # and look exactly like success.
68
+ #
69
+ # Two spellings, because the sources file changed shape between the releases:
70
+ # noble ships deb822 in /etc/apt/sources.list.d/ubuntu.sources, jammy the
71
+ # one-line format in /etc/apt/sources.list. Rewriting the wrong one succeeds
72
+ # and changes nothing, which is exactly the silent failure the check below is
73
+ # for.
74
+ #
75
+ # Both land on .../ubuntu/, including on arm64, where the stock sources point
76
+ # at ports.ubuntu.com/ubuntu-ports instead. snapshot.ubuntu.com has no
77
+ # ubuntu-ports -- it answers 401 -- and does not need one: its /ubuntu/ Release
78
+ # lists amd64 arm64 armhf i386 ppc64el riscv64 s390x. Rewriting ports to a
79
+ # ubuntu-ports path on that host is how this failed the first time.
80
+ RUN set -eu; \
81
+ if [ -f /etc/apt/sources.list.d/ubuntu.sources ]; then \
82
+ sed -i -E "s|^URIs: .*|URIs: https://snapshot.ubuntu.com/ubuntu/${APT_SNAPSHOT}|" \
83
+ /etc/apt/sources.list.d/ubuntu.sources; \
84
+ else \
85
+ sed -i -E "s|https?://[^ ]+/(ubuntu\|ubuntu-ports)/?|https://snapshot.ubuntu.com/ubuntu/${APT_SNAPSHOT}/|g" \
86
+ /etc/apt/sources.list; \
87
+ fi; \
88
+ apt-get update; \
89
+ apt-cache policy | grep -q "snapshot.ubuntu.com/ubuntu" || { \
90
+ echo "FATAL: apt is not resolving against snapshot ${APT_SNAPSHOT}." >&2; \
91
+ echo " Check that the date exists: https://snapshot.ubuntu.com/ubuntu/${APT_SNAPSHOT}/dists/${UBUNTU_CODENAME}/Release" >&2; \
92
+ exit 1; \
93
+ }
94
+
95
+ # Three groups: the C++ toolchain, what the 3dParty scripts need to build boost,
96
+ # ICU, OpenSSL and V8 from source, and the tools the payload half wants. Keep
97
+ # this list and docs/src/develop/build.md's Linux section saying the same thing
98
+ # -- together they are the only statement anywhere of what a bare Linux box
99
+ # needs.
100
+ #
101
+ # clang and lld are not optional on Linux even though everything else builds
102
+ # with gcc: nc-build.py's check_prequisites aborts with "Tool not found: clang"
103
+ # before it compiles anything, its gn args set is_clang=true and use_lld=true,
104
+ # and it runs ninja with CC=clang CXX=clang++. build-essential provides neither.
105
+ #
106
+ # llvm on top of those two, for one file: is_clang=true makes gcc_toolchain.gni
107
+ # set ar to llvm-ar, which Ubuntu ships in `llvm` and not in `clang`. It fails
108
+ # at the first AR step, a hundred compiles in, with "/usr/bin/llvm-ar: not
109
+ # found" -- a path in the message and no package name anywhere.
110
+ #
111
+ # CLANG_VERSION is 14 and not noble's default 18, because V8 8.9 does not
112
+ # compile under clang 16 or later: -Wenum-constexpr-conversion became an error,
113
+ # and src/base/bit-field.h line 43 trips it in every torque-generated file.
114
+ # Clang is used for V8 and nothing else -- core is a gcc build -- so this pins
115
+ # one dependency's compiler rather than the image's. The unversioned names are
116
+ # what nc-build.py and gn look for, hence update-alternatives.
117
+ #
118
+ # Changing this invalidates V8's object tree, and ninja will not notice: it
119
+ # keys on the command line, and /usr/bin/clang++ is the same string either way.
120
+ # Delete $BUILD_ROOT/out/core/third_party/work/v8/v8/v8/out.gn by hand.
121
+ #
122
+ # build-essential covers libstdc++.a, which ICU links against statically and
123
+ # Fedora splits into a package of its own -- see the assertion below.
124
+ #
125
+ # libglib2.0-dev because V8's Linux gn args set use_sysroot=false
126
+ # (Common/3dParty/v8/nc-build.py, get_gn_args_file_content), so it compiles
127
+ # against the host's glib rather than a downloaded sysroot: //build/config/linux
128
+ # pkg_configs glib-2.0, gmodule-2.0, gobject-2.0 and gthread-2.0 unconditionally
129
+ # and gn gen fails outright without them.
130
+ #
131
+ # python-is-python3 because boost's nc-build.py runs bare `python` to drive
132
+ # boostdep's depinst.py (Common/3dParty/boost/nc-build.py, around line 52).
133
+ # Ubuntu has had no /usr/bin/python since 20.04; Fedora ships one in
134
+ # python-unversioned-command. Without it boost fails with FileNotFoundError on
135
+ # 'python' and nothing in the message says which script wanted it.
136
+ RUN apt-get install -y --no-install-recommends --reinstall \
137
+ ca-certificates \
138
+ build-essential \
139
+ cmake \
140
+ ninja-build \
141
+ clang-${CLANG_VERSION} \
142
+ lld-${CLANG_VERSION} \
143
+ llvm-${CLANG_VERSION} \
144
+ git \
145
+ curl \
146
+ pkg-config \
147
+ libglib2.0-dev \
148
+ file \
149
+ python3 \
150
+ python3-venv \
151
+ python-is-python3 \
152
+ autoconf \
153
+ automake \
154
+ libtool \
155
+ perl \
156
+ xz-utils \
157
+ zip \
158
+ unzip \
159
+ lsb-release \
160
+ patch \
161
+ patchelf \
162
+ && update-alternatives \
163
+ --install /usr/bin/clang clang /usr/bin/clang-${CLANG_VERSION} 100 \
164
+ --slave /usr/bin/clang++ clang++ /usr/bin/clang++-${CLANG_VERSION} \
165
+ --slave /usr/bin/ld.lld ld.lld /usr/bin/ld.lld-${CLANG_VERSION} \
166
+ --slave /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-${CLANG_VERSION} \
167
+ && rm -rf /var/lib/apt/lists/*
168
+
169
+ # Node from nodejs.org rather than NodeSource. `curl | bash` of setup_20.x adds
170
+ # an apt repository carrying whatever 20.x is current that week, so the same
171
+ # Dockerfile built twice gets two different Nodes -- and the setup script itself
172
+ # is unpinned code fetched at build time. A tarball is one version and one hash.
173
+ RUN set -eu; \
174
+ arch="$(dpkg --print-architecture)"; \
175
+ case "$arch" in \
176
+ amd64) node_arch=x64; node_sha="${NODE_SHA256_AMD64}" ;; \
177
+ arm64) node_arch=arm64; node_sha="${NODE_SHA256_ARM64}" ;; \
178
+ *) echo "FATAL: no pinned Node checksum for $arch" >&2; exit 1 ;; \
179
+ esac; \
180
+ tarball="node-v${NODE_VERSION}-linux-${node_arch}.tar.xz"; \
181
+ curl -fsSLO "https://nodejs.org/dist/v${NODE_VERSION}/${tarball}"; \
182
+ echo "${node_sha} ${tarball}" | sha256sum -c -; \
183
+ tar -xJf "$tarball" -C /usr/local --strip-components=1 \
184
+ --exclude CHANGELOG.md --exclude LICENSE --exclude README.md; \
185
+ rm -f "$tarball"
186
+
187
+ # git am makes a commit per patch, and applying the queue is the first thing the
188
+ # build does; without an identity it fails at the first commit and leaves the
189
+ # tree mid-am, which reads as a rejected patch rather than an unconfigured box.
190
+ # safe.directory because the repository arrives as a bind mount owned by the
191
+ # host user, which git otherwise refuses to touch.
192
+ RUN git config --system user.email "build@libera.invalid" \
193
+ && git config --system user.name "Libera build" \
194
+ && git config --system --add safe.directory '*'
195
+
196
+ # Prove the toolchain here, where it costs a second, instead of finding out
197
+ # twenty minutes into a build. What each check is for is in the script, which
198
+ # `build.sh configure` also runs on a native Linux build -- the image and the
199
+ # host need the same things, and two copies of that list is a list that drifts.
200
+ #
201
+ # The two assertions that stay here are the ones about *this image* rather than
202
+ # about a toolchain: node and clang are pinned by ARG, so they are checked
203
+ # against the ARG.
204
+ # common.sh beside it, because toolchain.sh sources it from its own directory.
205
+ COPY engine/toolchain.sh engine/common.sh /usr/local/bin/
206
+ RUN set -eu; \
207
+ sh /usr/local/bin/toolchain.sh check; \
208
+ [ "v${NODE_VERSION}" = "$(node --version)" ] || { \
209
+ echo "FATAL: wanted node v${NODE_VERSION}, got $(node --version)" >&2; exit 1; }; \
210
+ clang --version | grep -q "clang version ${CLANG_VERSION}\." || { \
211
+ echo "FATAL: wanted clang ${CLANG_VERSION}, got $(clang --version | head -1)" >&2; exit 1; }
212
+
213
+ # What this image is, for the record. `lb payload container --versions` prints the
214
+ # first; the second is every package and version, for when that is the question.
215
+ RUN set -eu; \
216
+ { \
217
+ echo "base: ubuntu:${UBUNTU_RELEASE}@${BASE_DIGEST}"; \
218
+ echo "arch: $(dpkg --print-architecture)"; \
219
+ echo "apt-snapshot: ${APT_SNAPSHOT}"; \
220
+ echo "clang: ${CLANG_VERSION} (V8 only; core builds with gcc)"; \
221
+ echo "built: $(date -u +%Y-%m-%dT%H:%M:%SZ)"; \
222
+ echo; \
223
+ gcc --version | head -1; \
224
+ g++ --version | head -1; \
225
+ clang --version | head -1; \
226
+ ld.lld --version | head -1; \
227
+ cmake --version | head -1; \
228
+ echo "ninja $(ninja --version)"; \
229
+ python3 --version; \
230
+ perl -e 'print "perl $^V\n"'; \
231
+ echo "node $(node --version)"; \
232
+ echo "npm $(npm --version)"; \
233
+ echo "git $(git --version | awk '{print $3}')"; \
234
+ } > /etc/libera-build-image.txt; \
235
+ dpkg-query -W -f '${Package}=${Version}\n' | sort > /etc/libera-build-packages.txt; \
236
+ cat /etc/libera-build-image.txt
237
+
238
+ WORKDIR /repo
239
+ ENTRYPOINT ["/bin/sh"]