Commit graph

469 commits

Author SHA1 Message Date
Stephan Bergmann
fc1e12bb2d distro-configs/LibreOfficeFlatpak.conf lacks --without-system-java-websocket
...after 3de3f660af "add a
--with-system-java-websocket"

Change-Id: If96dafacbc33746934a2d388b11436c797290559
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177275
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-11-25 18:24:40 +01:00
Caolán McNamara
3de3f660af add a --with-system-java-websocket
there was a system Java-WebSocket in Fedora 35, f.e. but unaware
if this is actively packaged standalone in contemporary distros,
but useful for the coverity build case.

Change-Id: Id6393dbfb1c449b75391752a8bb5e5ea4481a084
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173725
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-09-20 17:43:42 +02:00
Caolán McNamara
cd8ad433f0 tdf#161941 add --with-docrepair-fonts option
to enabling bundling or not bundling the docrepair fonts of
https://github.com/docrepair-fonts

(which provide replacments for: Agency FB, Baskerville Old Face,
Berlin Sans FB, Cooper Black, Lucida Calligraphy, Lucida Grande,
Lucida Handwriting)

Change-Id: I4ea442fa54d21f213ccbdccba9aea1b9c0675c90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172337
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-08-25 21:45:06 +02:00
Stephan Bergmann
b740afe2fe Add --with-package-format=emscripten to distro-configs/LibreOfficeWASM32.conf
Change-Id: Ic5f07aa77b7c073264326dcbac56e6d2593bdc96
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171281
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-08-01 08:52:18 +02:00
Caolán McNamara
b53ea34333 ofz#70572 build failure
Change-Id: Id52104ee937306fc628d99c6f9dc6083fb054ffc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170814
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-21 15:30:22 +02:00
Stephan Bergmann
6b80e0554e Adapt flatpak build to upstream changes
<4bed50e14d>
"gvfs: Update gvfs-1.54.1.tar.xz to 1.54.2 (#295)"

<88a0d0718a>
"--enable-ext-nlpsolver (#297)"

Change-Id: Ie39c22c2611a31a8e2a82ae200b7a3836393dff3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170177
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-07-09 11:08:43 +02:00
Stephan Bergmann
1383303f28 Flatpak build needs an explicit --without-system-rhino now
...after
<https://git.libreoffice.org/core/+/479a39cbf0f4564abe93066d7a3f6b2e82de0e76%5E!/>
"clean up after removal of patched rhino" made it default to --with-system-jars
(which in turn defaults to --with-system-libs)

Change-Id: Ie2656c4af8d7fc5175cec317eadbf120132cfdf3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168490
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-06-06 11:52:34 +02:00
Caolán McNamara
2e50b3850b add --enable-hardening-flags to enable compiler hardening flags
distros typically have their own set via C[XX]FLAGS, so make
this an optional argument

some notes on the options:

-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2
https://www.redhat.com/en/blog/enhance-application-security-fortifysource
(I see Fedora has recently bumped to to 3 since Jan 2024
https://fedoraproject.org/wiki/Changes/Add_FORTIFY_SOURCE%3D3_to_distribution_build_flags
but here use 2 for now instead)

-Wp,-D_GLIBCXX_ASSERTIONS
https://fedoraproject.org/wiki/Changes/HardeningFlags28

-fstack-protector-strong
(We already apply this by default)

-fstack-clash-protection
https://fedoraproject.org/wiki/Changes/HardeningFlags28

-fcf-protection
https://fedoraproject.org/wiki/Changes/HardeningFlags28
https://cgit.freedesktop.org/libreoffice/core/commit/?id=af55dc3891f7950d392175004b2090cb0e54828e

and record the compiler flags in debuginfo
-grecord-gcc-switches

Change-Id: Ib05387bad8324b188bd4ed0ee327d6a7cf83973b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163312
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 33483058f6)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166289
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-04-19 21:01:53 +02:00
Stephan Bergmann
8559e6b5a5 Adapt flatpak build to upstream changes
<29463ebd29>
"Merge pull request #288 from
EliasTheGrandMasterOfMistakes/EliasTheGrandMasterOfMistakes-patch-2: Update JDK,
GVFS and ANT"

Change-Id: I021ddb9ca6b1fbec6cfe22784a9d023db2fa737c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165920
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-04-10 12:05:32 +02:00
Noel Grandin
d36b7b2628 move Windows amd macOS builds to mergelibs=more
Linux is stuck with normal mergelibs because Debian wants it like
that, but we can use mergelibs=more on Windows and macOS to
further reduce startup time there

Change-Id: I3a2716f877bb54b51486da127bf5ed4ee59075b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164171
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-03-04 18:04:23 +01:00
Michael Stahl
6f6364e572 tdf#159502 remove --without-system-libxml from LibreOfficeLinux.conf
configure.ac explicitly excludes libxml from --without-system-libs but
this distro-config "helpfully" adds it explicitly, when the system
already contains a usable libxml/libxslt anyway.

Change-Id: I79d65d9ed9185277ffde8624efc152b290a6ffb3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163438
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-02-16 10:38:21 +01:00
Noel Grandin
e6e22bee15 use --enable-mergelibs for the macos build
Change-Id: I4c3ce5247e42155d7c53c288ee68bacfa4db8103
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162876
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-02-11 18:58:13 +01:00
Xisco Fauli
593124f6ef distro-configs: use internal python in bisect repos
Change-Id: Ie5f980f93cb05501b1036c5c81dc67425b64ea14
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162564
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-01-29 09:59:48 +01:00
Patrick Luby
12b33dce25 Eliminate hang in iOS app (and maybe the Android app) during export
When exporting a document via this path, such as exporting to PDF
via the .uno:ExportToPDF command, any exceptions thrown while saving
the current document will leave the app in a blocked state if a
"PENDING" message has been sent.

The iOS app (and maybe the Android app) fails to set the URL to
save to so we need to set it to a temporary file.
Note: the iOS app is responsible for deleting the temporary file.

Also, enable building iOS with TLS=OPENSSL by default.

Signed-off-by: Patrick Luby <plubius@libreoffice.org>
Change-Id: Ibc070bed4e792bb0a481d2b900d12d214e3c519f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161692
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162125
Tested-by: Jenkins
2024-01-17 17:31:07 +01:00
Stephan Bergmann
848d035d86 Remove unused make upload-update-info
Change-Id: Ifdec48aaf53b0444c2d7ceef554f64795e2f2c38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162172
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-01-16 19:50:58 +01:00
Stephan Bergmann
2799b94bf9 Flatpak: Work around patched libpng in org.freedesktop.Sdk
see
<7c79189f67>
"Work around patched libpng in org.freedesktop.Sdk":

...which carries
<873b284504>
"elements/base/libpng.bst: Add support for animated PNGs", thus handles "acTL"
chunks by itself, thus doesn't call the LibreOffice handle_unknown_chunk
function (in vcl/source/filter/png/PngImageReader.cxx) for such chunks, thus
never sets APNGInfo::mbIsApng to true, so causes CppunitTest_vcl_png_test to
fail with

> PngFilterTest.cxx:382:Assertion
> Test name: PngFilterTest::testApng
> assertion failed
> - Expression: aGraphic.IsAnimated()

(<https://buildbot.flathub.org/#/builders/6/builds/92958>) since
<https://git.libreoffice.org/core/+/bf944e33569e4a1d6236a54671b7320cdc6ffaf6%5E%21>
"tdf#104877 Add basic APNG format support".

The patch appears to originate from
<https://sourceforge.net/projects/libpng-apng/>, and it might be possible to
adapt the LibreOffice code to also work with such a patched libpng (whose png.h
defines PNG_APGN_SUPPORTED).  However, for now just use LibreOffice's own
external/libpng instead of the patched one.

Change-Id: Ib67056d11dfa6456920a18216a3b2bbec45f3662
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162112
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-01-15 17:29:00 +01:00
Stephan Bergmann
d8133badce Adapt Flatpak build to new external/argon2
Change-Id: I584956151b036e1ba781439205a76f579f32c064
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161955
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-01-12 15:18:51 +01:00
Stephan Bergmann
de98291912 Fix make create-partial-info (for Windows, at least)
I got lost trying to figure out how the original
bin/update/create_partial_update.py code was meant to obtain old and new
installation trees to diff, so I simplified that down to the create-partial-info
make target now expecting an ONLINEUPDATE_MAR_OLDARCHIVE make variable that
points at the old archive install set.  (And the
--with-online-update-mar-serverurl configure option is gone for good again.)
The remaining changes are similar to what was needed in
28bad382fa "Fix `make create-update-info` (for
Windows, at least)".  (And the mbsdiff and mar tools expect Windows-style
pathnames, but mktemp returns a Unix-style pathname in cygwin shell scripts, so
this needed an additional Windows-only external/onlineupdate/cygpath.patch.)

Change-Id: I40690210d62e3f26fb2d574914a0dd4323e6cd62
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161924
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-01-11 21:01:51 +01:00
Stephan Bergmann
6910b1e351 Hard-code --with-online-update-mar-channel=LOOnlineUpdater
(An upcoming change will add an instset/update-settings.ini file containing that
value, but using a GeneratedPackage for a single file instead of a directory
seems unsupported, so it will use the hard-coded value and a plain Package
instead.)

Change-Id: I12ffef4db71ce36be9096df674588b39c660e4de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161545
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-01-02 21:23:39 +01:00
Stephan Bergmann
a731395303 Set --with-online-update-mar-channel for distro-configs/LibreOfficeWin64.conf
(Somewhat randomly setting it to the same name that is used, via
-DMAR_CHANNEL_ID=\"LOOnlineUpdater\" in external/onlineupdate/Executable_mar.mk,
as the default channel name in the mar executable tool that we build.)

Change-Id: Ia77e3e841139947dad894efa81f011cafd6c7539
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161049
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-20 14:10:04 +01:00
Stephan Bergmann
189d827b99 Split --with-update-config=... into many --with-online-update-mar-...=...
...and allow each of them to be left off, for debug purposes, even if that may
render the resulting --enable-online-update-mar feature non-functional.

This change tracked each item that was potentially read from the
--with-update-config ini file, and turned each of them into a new
--with-online-update-mar-... option.  The only exception and remaining TODO is
bin/update/upload_build_config.py (called from Makefile.gbuild).

distro-configs/Jenkins/LibreOfficeLinuxUpdater.conf (which might well be dead)
set --with-update-config=~/updater.ini with an ini file of unknown content.  So
that no items are silently missing if we ever resurrect that distro-config, I
set all of the new options to =TODO there for now.

Change-Id: I17a13e0d190a868436bac10c1b0a6675d8c704c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160622
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-12 20:43:57 +01:00
Thorsten Behrens
caea33a11a Turn on MAR-based updater for Win64
But make it default-off for the while.

Change-Id: I54e2fb8544ceb5ffe88053504294e2f3d5df50d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160436
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2023-12-07 18:20:02 +01:00
Stephan Bergmann
b17d051ad5 Make --enable-online-update and --enable-online-update=mar orthogonal
...by turning the latter into its own option --enable-online-update-mar.  (The
intention is to potentially have the experimental --enable-online-update-mar
configured in alongside any traditional --enable-online-update, and have it
disabled by default at runtime---for which some configuration is needed and
which is forthcoming.)

Change-Id: Id53b4f52b310da472b305c8b23c1e2ba1931296d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160424
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-07 13:42:15 +01:00
Stephan Bergmann
4333186f8c Update solenv/flatpak-manifest.in
* Incorporate
  <e8d48d8a15>
  "Update runtime to 23.08"

* Adapt to recent FONT_NOTO_* change

* Adapt to 3d5cafbe17 "tdf#157518: external:
  bundle zxcvbn-c"

Change-Id: Ia956a35c99f487b56a0f58bb591bea366faddbce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159926
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-11-25 19:31:25 +01:00
Michael Weghorn
63b44ef768 distro-configs: Switch from JDK 11 to 17
... to prepare for the upcoming
Change-Id I18251151392ca5edec8ca3d5cffd192d5f9f38b1
("Bump Java build baseline from JDK 11 to 17").

Change-Id: I3bedc42fd8e05c1e5c61e0b2c9e8eefce31d0fae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155377
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-09-01 17:21:51 +02:00
Stephan Bergmann
085d25d9ca Drop --with-system-mariadb from Linux_ubsan_master.conf
It had been there ever since 2b9a57482b "file for
ci-based ubsan build", but the reason appears lost to history, and it now
started to cause issues for <https://ci.libreoffice.org/job/lo_ubsan/2868/>,

> configure: error: mysql_config is missing. Install MySQL client library development package.

Change-Id: Ie4ffca5990c029a5df9e9c0814d09cc025162942
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155347
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-08-04 17:09:17 +02:00
Christian Lohmaier
488e83ad90 new baseline uses gcc-toolset-12 (and sets that globally)
source /opt/rh/gcc-toolset-12/enable is part of the shell startup

Change-Id: Idf20d911c920c3a6c5837cc12da5654db3f0bffa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155086
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2023-07-31 16:50:50 +02:00
Colomban Wendling
3426dcfec2 vcl gtk3: Introduce AT-SPI2 tests for the GTK3 accessibility layer
Add tests for the GTK3 accessibility platform layer.  These tests
compare the internal LO representation with what is visible to the
platform, and thus the user's accessibility tools.

In most cases the tests are fairly trivial as LO's internals are not
far off AT-SPI2's expectations.  There are however notable exceptions
like for example the text attributes, that have a wildly different
representation and require more complex checks matching what LO's
platform layer does, the other way around.

These tests use libatspi2 directly, but as the C API is awful to work
with regarding resource management, there are wrappers to handle the
complexity using RAII.  The resulting API is fairly trivial to use.

As these tests require using the GTK3 VCL plugin and for the a11y tree
to be visible to AT-SPI2, they are run under XVFB using a separate dbus
session through dbus-launch.

Working on this has already lead to reporting and/or solving some
issues:

* https://gerrit.libreoffice.org/c/core/+/151303
* https://gerrit.libreoffice.org/c/core/+/151650
* https://gerrit.libreoffice.org/c/core/+/152456
* https://gerrit.libreoffice.org/c/core/+/152457
* https://bugs.documentfoundation.org/show_bug.cgi?id=155625
* https://bugs.documentfoundation.org/show_bug.cgi?id=155705
* https://gerrit.libreoffice.org/c/core/+/152748

Only a subset of the a11y APIs are covered for the moment, but the
current state should make it easy to extend upon.

Change-Id: I1a047864ce8dc1f1bc3056ad00159f7fd5e5b7d3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153069
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-07-27 20:01:17 +02:00
Stephan Bergmann
fcbae818b7 Flatpak build needs external/frozen
Change-Id: I701bf6999d29b54438c7cb47f73453aae3fbb457
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154246
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-07-10 22:55:16 +02:00
Caolán McNamara
22ab4f30ac add an --enable-cairo-rgba to set the order of pixels for internal cairo
Change-Id: Ieab2ef59f63a7722bffea3273d2eeefadef47b56
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153628
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-06-27 10:04:36 +02:00
Caolán McNamara
9bb6f3083b update LibreOfficeCoverity.conf
Change-Id: I61b62814b39d18c589e447c6518b7011f0b9bf26
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153536
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2023-06-23 21:35:24 +02:00
Stephan Bergmann
6a4015b636 Re-enable Skia in Flatpak builds
...as requested at
<https://github.com/flathub/org.libreoffice.LibreOffice/issues/213> "Can Skia be
reenabled in the Flatpak build?" and implemented on Flathub for now with
<372d036e91>
"Re-enable Skia".  (This partially reverts
9d88f11de5 "Flatpak: Upgrade to 21.08 runtime,
disable Skia".)

Change-Id: I50039d431fd3e6ba4c0d859d71e42e744433806b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148054
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2023-03-01 16:26:32 +00:00
Christian Lohmaier
5de206e549 ignore bidi-chars warning in callgrind config
gcc from devtoolset-11 would complain about
svx/source/tbxctrls/layctrl.cxx:        aText = u"\u202D" + aText;

See also https://gcc.gnu.org/pipermail/gcc-patches/2021-November/585777.html

Change-Id: I040371673dd8d5e023092c53791e9b666bace7a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147511
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2023-02-23 10:48:50 +00:00
Khaled Hosny
a881850d58 vcl: Avoid the need to patch HarfBuzz
Reverts parts of d552b4a549 and
97e2e73e87.

Instead of patching HarfBuzz, lets make use of the already mmap’ed file
we use with FreeType.

Change-Id: Ia81222118162a30cadb8c988bc477ad3ce36166d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147410
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-02-22 09:02:40 +00:00
Caolán McNamara
97e2e73e87 with-system-libs doesn't seem to mean that anymore for harfbuzz
since:

commit d552b4a549
Date:   Tue Sep 20 16:07:14 2022 +0300

    Enable opening of downloaded fonts only in ForKit in Online

which silently disabled that from working for harfbuzz and graphite,
but just for Linux.

Change-Id: I13a67e3ad53a8d4c1833df19dd9f96b0b7366774
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147316
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2023-02-20 11:07:05 +00:00
Michael Weghorn
a6b369c59a android: Support NDK 24.x and 25.x, use NDK 25 for Jenkins
NDK 24 dropped support for API versions < 19,
quoting [1]:

> * Jelly Bean (APIs 16, 17, and 18) is no longer supported. The minimum OS
>   supported by the NDK is KitKat (API level 19).

Therefore, use API level 19 for these (and unknown) NDKs unless
anything greater has explicitly been specified using the
`--with-android-api-level=<VERSION>` autogen switch
(or is default for the architecture, s. above).

Update the Jenkins config to use NDK 25 for the Android
builds as discussed in the ESC meeting on 2023-01-26 [2].

[1] https://developer.android.com/ndk/downloads/revision_history
[2] https://lists.freedesktop.org/archives/libreoffice/2023-January/089878.html

Change-Id: Ib8e65f433ee89ff1bc12432722570bf8f9f7ed85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146135
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2023-02-16 20:33:07 +00:00
Michael Weghorn
c11701c212 android: Switch from GNU binutils to support NDK 23.x, require 21.x
Relevant announcement from revision history for NDK 23 [1]:

> * GNU binutils, excluding the GNU Assembler (GAS), has been removed. GAS
>   will be removed in the next release. If you are building with
>   -fno-integrated-as, file bugs if anything is preventing you from
>   removing that flag.

Therefore, switch from uses of GNU binutils to the
corresponding LLVM tools instead.

NDK 20.x doesn't provide `llvm-ranlib` yet, so bump the minimum
version to 21.x.

Also drop the previous uses of `ANDROID_BINUTILS_PREBUILT_ROOT`,
which appear to no longer be relevant by now.

    commit 4082a18406
    Date:   Wed Nov 22 23:08:06 2017 +0100

        android: use unified headers and llvm-c++ STL (x86) with NDK 16

        gnustl (and others) are to be removed in future versions of the ndk
        also bump gradle and build-tools to current versions along with it

        arm unfortunately crashes with llvm-c++, so keep with gnustl for now/fix
        that later

that introduced one of those uses mentions issues on ARM, but building
and running the app at least on my 32-bit ARM device (Samsung Galaxy S4 I9505,
LineageOS 17.1/Android 10) didn't show any issues in a quick test
with this change in place.

Update the Jenkins config to switch from the now no longer
supported NDK 20.1.5948944 to 23.2.8568313 for which building and
running the app has been tested on devices for all of the four
supported architectures with upcoming change
Change-Id I9ea714255faf29d50bb5f8e206f13495637da867
"android: Require NDK 23 and use default linker lld" in place
on top, s. that one's commit message for more details.
Note however that the NDK version will be further updated to use
NDK 25 in upcoming change
Change-Id Ib8e65f433ee89ff1bc12432722570bf8f9f7ed85
("android: Support NDK 24.x and 25.x, use NDK 25 for Jenkins").

[1] https://developer.android.com/ndk/downloads/revision_history
[2] https://lists.freedesktop.org/archives/libreoffice/2023-January/089878.html

Change-Id: I7645f8025d42f0fa384b5bceb31bb4b1c0a44cb5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146118
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Michael Weghorn <m.weghorn@posteo.de>
2023-02-16 20:31:39 +00:00
Tor Lillqvist
27746ff5d5 Need --disable-gen for the Qt5-based WASM LibreOffice now
Otherwise we get the slightly mysterious "Can't select gen VCL plugin,
if --without-x is used!" error from configure.ac.

Change-Id: I3ffda8f7306ff48a619052df25186f0989370d95
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143707
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2022-12-06 10:39:52 +00:00
Tor Lillqvist
11e72e61b6 Move Qt5 and scripting options for Emscripten to the distro-configs file
The resulting config_host.mk from running autogen.sh with just
--with-distro=LibreOfficeWASM32 is identical, so this should be safe.

Change-Id: I68ab81ba4e48c18d135a824c6158d725eb3f94da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143395
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2022-11-30 12:27:24 +01:00
Xisco Fauli
4b6082a657 add bisect configs
Change-Id: I1588bd8c1ea844bfe997941554f0b8ed2cf21909
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141532
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2022-10-24 15:11:51 +02:00
Tor Lillqvist
d4b33bda73 Add distro-configs/CPLinux-LOKit from the co-22.05 vendor branch
For now, just comment out those lines that don't match the configury
options here in master.

Change-Id: I38819e54e2f4ff3851c167603a1084072ef62700
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141756
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2022-10-24 14:08:19 +02:00
Christian Lohmaier
4c96abd814 explicitly build for x86_64 in jenkins' mac-tinderbox configs
Change-Id: I04511d12b1c6e500790448343320944eeb97a142
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138519
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-08-20 01:22:37 +02:00
Xisco Fauli
938c899831 tdf#150452: Revert "tdf#130795 use concurrent hashmap in SharedStringPool"
This commit reverts 3749d9af37
which removes the dependency on the external library cuckoo

Without using cuckoo the same file in tdf#130795 takes

real	0m4,892s
user	0m5,298s
sys	0m0,449s

With it, it takes

real	0m4,914s
user	0m5,276s
sys	0m0,444s

pretty much the same time

Change-Id: I4cc9000ac5bf26de22bb9835283ae8d5b3230196
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138435
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2022-08-17 16:59:14 +02:00
Caolán McNamara
66b849eab0 stop using removed ---with-idlc-cpp=cpp argument
Change-Id: I8ff0dd5314027e136782c236faebddd1077b180d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135830
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-06-14 15:19:38 +02:00
Stephan Bergmann
f8512cf3a8 Adapt flatpak build to recently introduced dependencies
Change-Id: I48ffef665514378740b4146e2368f65930f74270
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134502
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-05-18 09:10:59 +02:00
Gabor Kelemen
f0ba8e43da Drop unused LanguageTool extension
Do not bundle LanguageTool which is at a 10 year old version (1.7)
while upstream has a lot of new releases (now at version 5.5.x)
It is not bundled by any downstream distributions
so it makes no much sense to keep it integrated here.

Change-Id: Icd2ef151b1b8d0252ffa3db0caaba576f2783fa9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133356
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-04-26 10:08:54 +02:00
Gabor Kelemen
437b3b9d4f Drop unused CT2N extension
It is not bundled by any downstream distributions
so it makes no much sense to keep it integrated here.

Change-Id: I80180e53e050b8b3cd1b173ef01b51e8d706f295
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133355
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-04-26 10:08:30 +02:00
Stephan Bergmann
a59cf3db70 Reduce variance in what Jenkins Gerrit builders pick up from their environment
e.g., <https://ci.libreoffice.org/job/gerrit_linux_gcc_release/114702/> on tb91
apparently picked up --enable-dconf and --enable-python=system (and failed, for
unclear reasons), while a corresponding
<https://ci.libreoffice.org/job/gerrit_linux_gcc_release/114728/> on tb89 didn't
(and succeeded)

Change-Id: I9ddd66ff7f1c6595a6cce65365f1cb0a07b6d67e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132216
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-03-28 20:33:18 +02:00
Caolán McNamara
0527446d05 --without-system-libfixmath for coverity build
Change-Id: I28ba6fd50d2c97bcdb1f9b56eb416f01813bd175
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132131
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-03-26 15:18:37 +01:00
Stephan Bergmann
a45f057d9d Remove COMPILER_PLUGINS_CXX from distro-configs/Jenkins/linux_clang_dbgutil_64
It had originally been added with e754d0931c
"Remove CXXFLAGS_CXX11 from Clang plugin compilation", so "if
COMPILER_PLUGINS_CXX is not set, simply default it to g++ instead of trying to
construct an acceptable CLANGCXX value from CXX (which would be Clang).  (The
problem with using Clang without CXXFLAGS_CXX11 is that Clang, unlike GCC,
typically defaults to C++03, but building compilerplugins requires C++11 at
least.  That would cause e.g. the Gerrit/Jenkins linux_clang_dbgutil_64 builds
to fail---but which also needs COMPILER_PLUGINS_CXX to be explicitly set to 'g++
-std=c++11' as GCC on those machines is still 4.8.5 defaulting to C++03."  But
that should no longer be an issue with contemporary Clang, which defaults to >=
C++11 for quite a while now.

On the other hand, when trying to update the Clang used by
<https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/> from 5.0.2 to
12.0.1, and adding

> export COMPILER_PLUGINS_CXX="ccache $LODE_HOME"/opt_private/gcc-7.3.0/bin/g++

to
<https://git.libreoffice.org/lode/+/refs/heads/master/bin/linux_clang_dbgutil_64.env>
(where this setting arguably belongs, rather than in
distro-configs/Jenkins/linux_clang_dbgutil_64, anyway), which is needed
because that version of Clang (and thus loplugin built against it)
cannot be built with the baseline CentOS 7 GCC 4.8.5, that setting of
COMPILER_PLUGINS_CXX got overriden by the one in
distro-configs/Jenkins/linux_clang_dbgutil_64, and configure failed due to

> configure:21069: checking clang/Basic/SourceLocation.h usability
> configure:21069: ccache g++ -std=c++11 -c -I/home/tdf/sberg/lode/opt_private/clang-llvmorg-12.0.1/include -std=c++14   -fno-exceptions -fno-rtti -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/\
> tdf/sberg/lode/packages/llvm-llvmorg-12.0.1.src/clang/include -I/home/tdf/sberg/lode/opt_private/clang-llvmorg-12.0.1/include -std=c++14   -fno-exceptions -fno-rtti -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_L\
> IMIT_MACROS -I/home/tdf/sberg/lode/packages/llvm-llvmorg-12.0.1.src/clang/include conftest.cpp >&5
> g++: error: unrecognized command line option '-std=c++14'
> g++: error: unrecognized command line option '-std=c++14'
> configure:21069: $? = 1

Change-Id: Ic33b116090f648ef645febb4fbb28ceb6a2a7cae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129692
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-02-08 23:55:50 +01:00