Commit Graph
38 Commits
Author SHA1 Message Date
Thorsten Behrens 4ea9061d54 Update config.guess & .sub to latest
General updates & streamlining, plus addition of loongarch32 and
managarm as probably most relevant additions here.

Change-Id: Iff94f05c5e9240204eb3f844a05a7cad519522a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143988
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-12-12 15:46:46 +00:00
Thorsten Behrens 599f9836a6 Add oox to build side, for cross compilation
With ce4c154e8b, cui now depends on oox
generated headers, so we need to build oox too, for cross builds.

Change-Id: I1af3116ab35c5094c23db3ed3dccd90c80080cef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143975
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-12-12 09:55:28 +00:00
Thorsten Behrens b60dfc2928 Replace backslashes in config params before usage in cxx files
With cbfac11330, LOKit tries to pass
full configure line on via JSON - which, on Windows, might contain
backslashes and other nasties, so we better try to clean that up here.

Change-Id: I8314783fc6f49e9b2b374d94448ed735de39bf81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143940
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-12-11 01:30:50 +00:00
Thorsten Behrens ce60a3dd4d Add LOKit functions and whitelist export for it to WASM
For calling into LOWA from native JS, make lokit functions available

Change-Id: I6458806f33131e48692f35f2a2438b35efb1f06c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143497
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-11-30 23:57:54 +01:00
Thorsten Behrens baf7b40445 WASM: need sw/../translatehelper.cxx back
..since that now contains helper methods like PasteHTMLToPaM

Change-Id: Ib8752e93ca52b17c173d0e18dd727a426fde893e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143483
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-11-30 23:57:31 +01:00
Thorsten Behrens 62967366c3 WASM: conditionalize one more Deepl usage in sw
Change-Id: I7aa6bb5a2bc1f64ed17911d777921fbc8be92ddc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143484
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Jenkins
2022-11-30 14:42:04 +01:00
Thorsten Behrens dff1d7526f Don't use pthread for cairo
For cross builds, odd cases of cairo configure picking up wrong librt
and then missing pthread functions - so lets just disable it, we're
not using cairo multi-threaded anyway.

Change-Id: Id8b6426203859e7bf082d71ad8cf4548928d6acc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143390
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-11-29 01:55:50 +01:00
Thorsten Behrens b40f46548f Disable languagetool for WASM build
Change-Id: Icd0face05c33bbb1b56230a59015402d5f565422
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143385
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-11-28 16:46:58 +01:00
Thorsten Behrens 23118ce68a [COVER] add first set of ODF feature test files
For providing coverage data of features in the LibreOffice code base,
here's a set of files with orthogonal, high-level ODF features like
bold & italic text, an image, a table in several variants etc.

Use `make coverage` or `make sw.coverage` to generate coverage data
for the entire code base, or subsets thereof.

Change-Id: If27f720e8728788c421e16a3abbc1cf39521a2fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139765
Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-09-11 21:32:07 +02:00
Thorsten Behrens 7716a43e76 Make parallelism configurable for BZ attachment fetchers
Both forum and BZ document fetchers use a hardcoded size for their
threadpools. Use the habitual env var PARALLELISM to override that
optionally.

Change-Id: I374a33ab0cfe481e0940a1f4d5d9a53ae647f135
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137888
Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-08-06 00:53:47 +02:00
Thorsten Behrens 00014558d6 Disable abisource from BZ attachment fetcher
Expired TLS cert since a while, worth checking if it comes back.

Change-Id: I4bd98d847ede6ac25d6d4a3361d7365396ad40fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137887
Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-08-06 00:53:21 +02:00
Thorsten Behrens 47f1602b26 Fix with-vendor for cross-build targets some more
Regression from be2252c8d3 where spaces
in --with-vendor end up being poorly quoted.

Opted to pass down --with-vendor to sub-configure unconditionally even
if empty, due to the need of word splitting generally being needed for
the sub_conf_opts variable.

Change-Id: Id3740255bc8fbf98adf7464de7e2836fcde9f2fd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135826
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-06-15 08:41:55 +02:00
Thorsten Behrens c9d018df61 make_installer: convert Win to Unix path for cygwin
Usual cygwin auto-conversion magic doesn't work for PATH variable,
which requires proper /cygdrive/foo/bar entries.

Change-Id: Ic07ffcdf7cb28c5e5702964c331f337ee811c063
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135032
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-05-27 09:33:45 +02:00
Thorsten Behrens aee953d7b6 Reduce cmd line length for make_installer calls
Seems on Windows, we're hitting the 8k character max cmd line length,
on setups with slightly deeper src tree path locations. Shorten length
of expanded call_installer calls by putting shell script into PATH
locally.

Change-Id: If1cddab9e4e07a7c5ebfae7a4e88e43b1bc8b907
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134938
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-05-26 01:09:55 +02:00
Thorsten Behrens 6204336cc7 Get make_installer calls to run in parallel
If available, use GNU parallel to run N make_installer.pl scripts in
parallel, to scale packaging LibreOffice up with the rest of gbuild.

* fallback if no GNU parallel found - run make_installer sequentially
  as before
* push most of the make_installer.pl input param tweaks from gbuild
  down into a shared call_installer.sh script
* call gnu parallel with generated number of
  "templ:lang:prodname:ext:pkgfmt:strip-flag" tuples, one for each
  package to build (empty templ for non-windows, to save on cmd line
  length)
* such that we can run all those in parallel (taking into account
  the build's PARALLELISM parameter)
* there's still the main package build running epm sequentially for
  umpteen sub-packages from within _one_ make_installer.pl instance, but
  that's much harder to parallelize from inside Perl (so we punt on
  that here)

Change-Id: Ie7d3084ed60d003d587c5e64dc9fb1809b23e409
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133957
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-05-22 21:35:42 +02:00
Thorsten Behrens b7a37d6fb9 Fix system-nss: add hasht.h header back
Revert part of 02e1be8883 which broke
with-system-nss builds - the hasht.h header was actually needed.

Change-Id: Ida36bc6cd91f0a9b26a2029f1cab835f90f40dde
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133571
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-04-28 23:23:08 +02:00
Thorsten Behrens e1db8c2787 Resolves: tdf#143615 clamp relative times to 1.0
User input permits zero-length animations, so whenever we calculate
relative position within the animation time frame, the case
mnMinSimpleDuration == 0.0 means: we're already at the end of the
animation, i.e. set relative time to 1.0

Change-Id: I0e8c1e29f47bd9fa16f04115cf52d3a176e13fb0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133005
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-04-14 19:29:03 +02:00
Thorsten Behrens 6156ea35f7 Fix [-Wignored-qualifiers]
Change-Id: Iba8b8536be38f99b7b7447d96abad61db7b7269f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129517
Tested-by: Jenkins
Tested-by: Justin Luth <jluth@mail.com>
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-02-05 15:29:19 +01:00
Thorsten Behrens d140817428 Avoid calling AVX code in library static initialization
Despite 26072b8db7 and
12c6b1ef6a, Linux builds using
RH devtoolset-7 gcc7 still hit occasional unit test crashes
with illegal instructions.

Backtrace is always:

> #0  __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at core/sc/source/core/tool/arraysumAVX.cxx:20
> #1  _GLOBAL__sub_I_arraysumAVX.cxx(void) () at core/sc/source/core/tool/arraysumAVX.cxx:112
>

So lets make sure initializer is run only on function entry.

Change-Id: I69f5cb725e4d72fb346166b21870612473f974b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129246
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-02-01 00:16:20 +01:00
Thorsten Behrens b8278d93bb Make installer compression tool configurable
So we can use pigz or other parallelizable tools if available. Shaves
off noticeable build time when packaging install sets.

- figure out if pigz is available (fallback to gzip otherwise)
- pass compression tool down into make_installer
- and handle as one of many global options there

Change-Id: Ia9d1ea27a9f990874238b6f0be3e1fd30a662ec6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128469
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-01-22 10:14:23 +01:00
Thorsten Behrens c367a2781f WASM UNO: add a minimal dummy bridge
... and use the same fake exception rethrowing code then the
mobile platforms.

Change-Id: Ic90de1cfd1e0092d6064d041a613d60d9f5f76b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128596
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2022-01-19 14:26:09 +01:00
Thorsten Behrens 78dae8b20b Update gpgme to 1.16.0
* remove GPGME_CAN_EXPORT_MINIMAL_KEY, upstream now has support for
  key export flags in c++ wrapper (gpgmepp >= 1.14)
* therefore, external/gpgmepp/add-minimal-keyexport.patch now fully
  obsolete, tweaked xmlsecurity code to use upstream function
* bits of external/gpgmepp/find-libgpg-error-libassuan.patch are
  upstream now (configure and makefile pieces, though we keep
  configure.ac changes for the while - to not pick up system versions
  too easily)
* external/gpgmepp/gpgme.git-fe2892618c20cd40c342cce26ffb6ac4644fd3c3.patch.1
  was from upstream anyway, removed

Change-Id: I991c20c0eeff0f9135e97c991afcb905be55a959
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127665
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-01-05 09:53:07 +01:00
Thorsten Behrens 568a5bba2a Update libassuan to 2.5.5
Change-Id: Icd1034f4c6b43605f5d43fe28f7e0d191311daf0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127664
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-01-05 09:52:51 +01:00
Thorsten Behrens 7d50d74d0a Update libgpg-error to 1.43
Change-Id: Iecd4a131f9c5b43bb03c5f9c4b6c7efe36e443aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127663
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-01-05 09:52:35 +01:00
Thorsten Behrens 660e538ee7 Disable broken part of ScFiltersTest2::testTdf126116
Fails since New Year with:
 Test name: ScFiltersTest2::testTdf126116
 equality assertion failed
 - Expected: 03/03/21
 - Actual  : 03/03/22

Change-Id: Ic5c259e6bf1f184ceb7cf15e1ba7a83dac729c2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127879
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2022-01-03 04:35:35 +01:00
Thorsten Behrens 1bb0e17712 Fix autoconf>=2.70 gcc-wrapper breakage
Re-generated configure file gets confused & claims not finding C89-
compatible compiler for gcc-wrapper-building libassuan with msvc
underneath.

Work-around the problem by telling toolchain right off that this
_is_ a std c compliant compiler.

Change-Id: I4fa23673b790bc70a9294951df545c27f5236f81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127641
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-12-28 21:14:58 +01:00
Thorsten Behrens 5df3540549 Recent XOOXMLDocumentPropertiesImporter changes went into 7.3
Adjust @since statement to new realities

Change-Id: I8a65b4bdd2ef2ffab95f8a934ff5e5e8ffb90f03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127282
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2021-12-22 15:43:21 +01:00
Thorsten Behrens 1d21a51d81 ucb: webdav-curl: update README
Change-Id: I3b72183fc367875f8ebce6f3fffc7efc32ca6c0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127285
Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-12-22 01:10:47 +01:00
Thorsten Behrens 243c05ac27 Retire build-nocheck
Build target was kept for backward compat in 'rework the default make
target', so lets retire it after 1.5 years.

Use 'make build' instead (which is since the default target anyway).

Change-Id: I93d5237dce2abf2536a4d847d79d33d5b6d6cec9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126362
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-12-06 20:54:26 +01:00
Thorsten Behrens a323857126 No auto-usage of [s]ccache on Windows for PCH builds
Since that's a pessimisation. Any manual override
(--enable-ccache, or --disable-pch) will again make configure
auto-enable [s]ccache if binaries are found.

Change-Id: I4c0773300c792ebb1807d092d3622d90dfac7d5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125073
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-11-13 16:39:40 +01:00
Thorsten Behrens 133352645a Teach symstore more duplicated DLLs
Amending commit b4dfba9477 with
adding the copied DLLs here, too (symstore complains otherwise)

Change-Id: If5cc155cf2fe11b0f97cd152993609fd2c835316
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120686
Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-08-18 22:51:15 +02:00
Thorsten Behrens da36d65560 Always provision PATH the cygwin way under Windows
With PATH essentially serving the role of LD_LIBRARY_PATH under
Windows, there was the notion that this needs to be provided in
Windows notation, for win32 gnumake.

That was perhaps once true; currently we're always evaluating PATH
inside a shell, not the Makefile. So this since a while only worked
accidentally, due to cygwin transparently converting between DOS and
UNIX PATH vars. It did break though for corner-cases, e.g.
SRCDIR!=BUILDDIR, and BUILDDIR e.g. D:\FOO.

With that simplification, also GNUMAKE_WIN_NATIVE can go.

Change-Id: Ied5a0443dc70e7dc629c0c0620e6ce911d9a73d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119941
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-08-04 11:08:29 +02:00
Thorsten Behrens 1bc454a2c0 Handle fancy webdav URI schemes on all platforms
Change-Id: I5cc16b0fdaf032e90aa0361df6f33c04a615abab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108016
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-06-24 20:24:22 +02:00
Thorsten Behrens 80c9e7fe53 Some more vtables are still needed outside mergedlib
Fixup 99af09bf36 with a few more
methods - otherwise BColorModifierTest.cxx doesn't link for
release builds.

Change-Id: I13f0d57e56ba4344564e2534c0ee4e4883ec4d23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115294
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-05-10 07:19:11 +02:00
Thorsten Behrens d7e5d19e46 WASM: add distro config, amend readme
Let's move common configury to distro config, so people get
necessary changes across updates w/o manual intervention.

Change-Id: Ic27db86e7681bcef0632ed6b5fdd2fe8df0fdba3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114629
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-05-05 21:16:02 +02:00
Thorsten Behrens 18cc01b639 Add initial support for sccache builds on WNT
- gets auto-detected if an sccache binary is in the path
- currently external projects using gcc-wrapper are _not_
  cached - this needs fixing in the gcc-wrapper
- current sccache versions won't work with -Fp (precompiled
  headers), so while sccache gets called, nothing really
  is cached. Best build with --enable-pch=no therefore.

Change-Id: I78dd7e08ea20ae888236c8c8e8e7a25a405f23b5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113530
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-04-03 21:17:48 +02:00
Thorsten Behrens db8fb941ec Fix ARM64 build after postgres upgrade to 13.1
Change-Id: I12bdda6aedd9b7b15423f997fe8c6910d9c9e9d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112464
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-03-14 18:29:58 +01:00
Thorsten Behrens aecdb54255 emplace_back: use perfect forwarding if possible
When using that new-ish method, try giving the compiler a chance to
construct in-place. Left out harder cases using initializer lists,
and might have missed slightly less obvious places.

Change-Id: Ifcc3a6d4599474457e37dd17a35c41fc73e7a17e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111980
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2021-03-05 11:51:32 +01:00