2016-04-29 10:16:29 -05:00
|
|
|
--disable-odk
|
|
|
|
--enable-release-build
|
2018-01-02 09:57:44 -06:00
|
|
|
--with-ant-home=/run/build/libreoffice/ant
|
2018-06-25 06:16:06 -05:00
|
|
|
--with-extra-buildid=Flatpak
|
Enable --help=html for flatpak
To not increase the size of the main org.libreoffice.LibreOffice app further,
the plan was to realize this as an org.libreoffice.LibreOffice.Help extension.
Ideally, this would be a localized extension, so that, by default, only a
relevant subset of the extension would be downloaded and installed. (But see
below.)
There are multiple technical problems, as discussed at <https://github.com/
flathub/org.libreoffice.LibreOffice/issues/35#issuecomment-447295308> "Add
integrated LibreOffice Help offline":
* LO can't pass a file URL with query part to xdg-open, so uses a temporary
wrapper .html file that redirects to the target URL. But for the flatpak case
this wrapper can't be in /tmp (which isn't visible from outside the flatpak
sandbox), but is instead stored in a new temp dir under $XDG_CACHE_HOME (which
is always set for flatpaks and /is/ visible form the outside) that is
removed on LO exit.
* The file URL stored in the temp file must be rewritten from the internal path
(/app/libreoffice/help/...) to the path as seen outside the flatpak sandbox.
While the path for the org.libreoffice.LibreOffice /app is stored in
/.flatpak-info, the external path for the org.libreoffice.LibreOffice.Help
extension is different and not stored there. So use a hack trying to
construct that path from what information is available in /.flatpak-info.
* But the help content consists of locale-specific and shared files, and those
reference each other with relative links. But a localized flatpak extension
cannot contain shared files, it can only contain per-language sub-dirs. And
if the shared help files were kept out of the extension, as part of the app
itself, the relative paths among these files inside the flatpak sandbox would
differ from those outside of it, so would be broken when viewing the content
in the external browser. A solution would either (a) need to somehow rewrite
the content of all the help files being served from LO to the external
browser, or (b) replicate the shared help files in all the extension's per-
language sub-dirs (and if some localization uses en-US content as a fallback
for only part of its translated content, e.g., in the case of media files,
would need to also replicate that en-US content), or (c) use a non-localized
extension that always contains the content for all localizations.
For now, I chose the third approach. This makes the
org.libreoffice.LibreOffice.Help extension relatively large (the current
/app/libreoffice/help tree has a size of ca. 100MB), so that I decided to not
have it downloaded and installed automatically ("no-autodownload": true in
solenv/flatpak-manifest.in). (I checked with Flatpak 1.0.6 that if the
extension should be changed to a localized one with the same name in the future,
updating from an older version would work. If the old extension was not
installed, just the relevant localizations of the new version will be downloaded
and installed. If the old extension was installed, the full set of
localizations of the new version will be downloaded and installed.)
(As also mentioned at <https://github.com/flathub/org.libreoffice.LibreOffice/
issues/35#issuecomment-447295308>: "A second, minor, nuisance is that, for
security reasons, an `xdg-open file:///...html` call from a flatpak leads to an
intermediate popup dialog letting the user chose which application to use to
open the URI, while e.g. an `xdg-open http:///...html` is allowed to go directly
to the user's preferred browser. So accessing help content from LO flatpak
would present that popup dialog first, forcing the user to select a browser to
proceed.")
Change-Id: I35f5a23947dd551dc1b9bff1dd2abd6710073b5f
Reviewed-on: https://gerrit.libreoffice.org/65451
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2018-12-12 10:13:03 -06:00
|
|
|
--with-help=html
|
2024-04-10 01:52:21 -05:00
|
|
|
--with-jdk-home=/usr/lib/sdk/openjdk21/jvm/openjdk-21
|
2016-04-29 10:16:29 -05:00
|
|
|
--with-lang=ALL
|
|
|
|
--with-system-libs
|
|
|
|
--with-vendor=The Document Foundation
|
2018-01-02 09:57:44 -06:00
|
|
|
--without-export-validation
|
|
|
|
--without-junit
|
2018-03-15 03:56:32 -05:00
|
|
|
--without-lxml
|
2021-11-26 04:17:20 -06:00
|
|
|
--without-system-abseil
|
2024-01-12 02:41:28 -06:00
|
|
|
--without-system-argon2
|
2018-01-02 09:57:44 -06:00
|
|
|
--without-system-beanshell
|
2016-04-29 10:16:29 -05:00
|
|
|
--without-system-bluez
|
|
|
|
--without-system-boost
|
2020-07-01 03:53:26 -05:00
|
|
|
--without-system-box2d
|
2016-04-29 10:16:29 -05:00
|
|
|
--without-system-clucene
|
|
|
|
--without-system-coinmp
|
|
|
|
--without-system-cppunit
|
2022-05-18 01:15:09 -05:00
|
|
|
--without-system-dragonbox
|
2016-04-29 10:16:29 -05:00
|
|
|
--without-system-firebird
|
2023-07-10 06:54:35 -05:00
|
|
|
--without-system-frozen
|
2016-04-29 10:16:29 -05:00
|
|
|
--without-system-glm
|
2017-04-10 11:14:39 -05:00
|
|
|
--without-system-gpgmepp
|
2018-01-02 09:57:44 -06:00
|
|
|
--without-system-jfreereport
|
2016-04-29 10:16:29 -05:00
|
|
|
--without-system-libabw
|
2019-01-28 02:13:33 -06:00
|
|
|
--without-system-libatomic_ops
|
2016-04-29 10:16:29 -05:00
|
|
|
--without-system-libcdr
|
|
|
|
--without-system-libcmis
|
|
|
|
--without-system-libebook
|
2017-08-18 06:56:38 -05:00
|
|
|
--without-system-libepubgen
|
2016-04-29 10:16:29 -05:00
|
|
|
--without-system-libetonyek
|
|
|
|
--without-system-libexttextcat
|
2022-05-18 01:15:09 -05:00
|
|
|
--without-system-libfixmath
|
2016-04-29 10:16:29 -05:00
|
|
|
--without-system-libfreehand
|
|
|
|
--without-system-liblangtag
|
|
|
|
--without-system-libmspub
|
|
|
|
--without-system-libmwaw
|
2018-05-15 04:39:30 -05:00
|
|
|
--without-system-libnumbertext
|
2016-04-29 10:16:29 -05:00
|
|
|
--without-system-libodfgen
|
|
|
|
--without-system-libpagemaker
|
2024-01-15 09:00:53 -06:00
|
|
|
--without-system-libpng
|
2017-09-07 04:11:06 -05:00
|
|
|
--without-system-libqxp
|
2016-04-29 10:16:29 -05:00
|
|
|
--without-system-librevenge
|
2017-02-02 07:04:30 -06:00
|
|
|
--without-system-libstaroffice
|
|
|
|
--without-system-libtommath
|
2016-04-29 10:16:29 -05:00
|
|
|
--without-system-libvisio
|
|
|
|
--without-system-libwpd
|
|
|
|
--without-system-libwpg
|
|
|
|
--without-system-libwps
|
2017-02-02 07:04:30 -06:00
|
|
|
--without-system-libzmf
|
2016-04-29 10:16:29 -05:00
|
|
|
--without-system-lpsolve
|
2018-09-03 03:50:36 -05:00
|
|
|
--without-system-mariadb
|
2016-04-29 10:16:29 -05:00
|
|
|
--without-system-mdds
|
|
|
|
--without-system-odbc
|
|
|
|
--without-system-openldap
|
|
|
|
--without-system-orcus
|
|
|
|
--without-system-poppler
|
|
|
|
--without-system-postgresql
|
|
|
|
--without-system-redland
|
2024-06-06 02:55:20 -05:00
|
|
|
--without-system-rhino
|
2016-04-29 10:16:29 -05:00
|
|
|
--without-system-sane
|
2017-06-28 07:51:44 -05:00
|
|
|
--without-system-xmlsec
|
2023-11-24 06:18:27 -06:00
|
|
|
--without-system-zxcvbn
|
2021-05-18 04:38:59 -05:00
|
|
|
--without-system-zxing
|