40 Commits
Author SHA1 Message Date
Xisco Fauli c64f9804ac expat: upgrade to 2.9.0
With this new version, the build started to fail with
error: ‘XML_Size XML_GetCurrentColumnNumber(XML_Parser)’ is deprecated: please use XML_GetCurrentColumnNumber64 instead [-Werror=deprecated-declarations]
so we need to check the expat version in case the system expat
is older than 2.9

Also add 0001-fix-XML_GE-is-not-defined-evaluates-to-0-Werror-unde.patch
to fix
error: "XML_GE" is not defined, evaluates to 0 [-Werror=undef]
1087 | # if XML_GE == 1
| ^~~~~~
cc1plus: all warnings being treated as errors

Change-Id: If4f1d652941b7766ed94b65a6eaa018f37c89387
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211867
Tested-by: Jenkins
Tested-by: René Engelhard <rene@debian.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-10-06 22:29:58 +02:00
Xisco Fauli 0a081d94c8 expat: simplify a bit
Change-Id: I7f09a1e5cfd2cc3c534c26b931aef64472af58b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207662
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-07-06 20:57:50 +02:00
Xisco Fauli 50b7e289f5 expat: upgrade to 2.8.2
Downloaded from https://github.com/libexpat/libexpat/releases/download/R_2_8_2/expat-2.8.2.tar.xz

With this upgrade, building expat started to fail with

error: #error You do not have support for any sources of high quality entropy enabled. For end user security, that is probably not what you want. Your options include: * Linux >=3.17 + glibc >=2.25 (getrandom): HAVE_GETRANDOM, * Linux >=3.17 + glibc (including <2.25) (syscall SYS_getrandom): HAVE_SYSCALL_GETRANDOM, * BSD / macOS >=10.7 / glibc >=2.36 (arc4random_buf): HAVE_ARC4RANDOM_BUF, * BSD / macOS (including <10.7) / glibc >=2.36 (arc4random): HAVE_ARC4RANDOM, * BSD / macOS >=10.12 / glibc >=2.25 (getentropy): HAVE_GETENTROPY, * Linux (including <3.17) / BSD / macOS (including <10.7) / Solaris >=8 (/dev/urandom): XML_DEV_URANDOM, * Windows >=Vista (rand_s): _WIN32. If you insist on not using any of these, bypass this error by defining XML_POOR_ENTROPY and be vulnerable to hash flooding; you have been warned. If you have reasons to patch this detection code away or need changes to the build system, please open a bug. Thank you!
  154 | #  error You do not have support for any sources of high quality entropy \

so use the different entropies available in each OS

Change-Id: I95cc761c17b61f8d1684d3af482a3e296025e22c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207318
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-07-01 11:25:57 +02:00
Xisco Fauli 41d54fa557 expat: fix WASM build
it fails with
/home/tdf/lode/jenkins/workspace/lo_gerrit/tb/build_master/workdir/UnpackedTarball/expat/lib/random_getrandom.c:78:14: error: call to undeclared function 'syscall'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   78 |         (int)syscall(SYS_getrandom, currentTarget, bytesToWrite,
      |              ^
/home/tdf/lode/jenkins/workspace/lo_gerrit/tb/build_master/workdir/UnpackedTarball/expat/lib/random_getrandom.c:78:22: error: use of undeclared identifier 'SYS_getrandom'
   78 |         (int)syscall(SYS_getrandom, currentTarget, bytesToWrite,
      |                      ^~~~~~~~~~~~~
2 errors generated.

Change-Id: I994f10533315c055e1da07fad982a6100e1856ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204732
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-04 20:34:06 +02:00
Julien Nabet d6a551d89f Fix WASM TB undeclared function 'rand_s' in expat lib
Change-Id: I3fd7cb8072083a77982a2beb469a44ea4618316e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204509
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-04-28 20:33:13 +02:00
Xisco Fauli 1a5964b12f expat: upgrade to 2.8.0
Downloaded from https://github.com/libexpat/libexpat/releases/download/R_2_8_0/expat-2.8.0.tar.xz

Change-Id: Ic02835de4a5fe7fe09948f07405c10f73cc077da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/204257
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-04-26 23:03:39 +02:00
Xisco Fauli 79631c2369 expat: upgrade to 2.7.4
Downloaded from https://github.com/libexpat/libexpat/releases/download/R_2_7_4/expat-2.7.4.tar.xz

Change-Id: I7058df85bf0fbac6608b83967b635382859e4db6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198521
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-02-02 11:39:39 +01:00
Xisco Fauli 953f1da927 expat: upgrade to 2.7.2
Downloaded from https://github.com/libexpat/libexpat/releases/download/R_2_7_2/expat-2.7.2.tar.xz

Change-Id: Icf4b730291dfecc039024360b36c2fe8adb247fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191047
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-09-16 23:05:16 +02:00
Christian Lohmaier 9e348f9c5b no longer add the 64bit windows explorer extensions to the 32bit build
those were from a time where there was 64bit Windows, but no 64bit
builds of LibreOffice/OpenOffice.org - now the only usecase for 32bit
LibreOffice is to use it on 32bit-only machines…

Change-Id: Icf1eacafd9e157788e8ec5a035716327492f5c2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185565
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-05-24 23:40:41 +02:00
Xisco Fauli 3709789a58 gbuild: set default patchlevel to 1
Change-Id: I195dbafff63e21a22edf438f5b9ed5beee4dac03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183784
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-04-08 09:24:08 +02:00
Christian Lohmaier 875a1bf2e1 makefile simplification: replace $(call gb_UnpackedTarball_get_dir,foo)
…by a simple/static $(gb_UnpackedTarball_workdir)/foo
see also 0c4c84a14b

Change-Id: I8e6aa55c85534c4446556548910c950ddbe7c6fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167163
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2024-05-06 11:40:45 +02:00
Taichi Haradaguchi 370ca73a45 Expat: upgrade to release 2.6.2
Fixes CVE-2024-28757

Change-Id: Id85044fa9d8eda922425e580e9d6979f6563e98a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165129
Tested-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2024-03-22 15:57:29 +01:00
Taichi Haradaguchi b7e4078033 Expat: upgrade to release 2.6.0
Fixes CVE-2023-52425 and CVE-2023-52426.

Change-Id: Id135bbaea893a83129bdbee44948c09322a64c07
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163146
Tested-by: Jenkins
Reviewed-by: Taichi Haradaguchi <20001722@ymail.ne.jp>
2024-02-15 09:48:37 +01:00
Taichi Haradaguchi 30fba094c4 upgrade Expat to 2.5.0
Fixes CVE-2022-43680

Change-Id: I5bf8d1ab0ac352833c76a7edfc1d8eb78dd03e10
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142042
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-11-04 14:14:00 +01:00
Jan-Marek Glogowski 4537886ec1 externals: always provide platform configure flags
No idea why we just provided the platform flags when cross-
compiling. In the curious case, where the host platform is
detected as x86_64-pc-mingw32 per default and we actually
want to override it with x86_64-pc-cygwin, we don't do a
cross compile, but must override the host platform.

But there is additional special handling needed for the omitted
cross-platform build in the special case of --host=i686-pc-cygwin
and --build=x86_64-pc-cygwin, where we deliberatly ignore cross
building; Windows is already a slow build, so try to keep this
optimization (AMD64 can execute x86 binaries).

There is the theoretical case, where the externals config.guess
would have detected something else and that "magically" even
worked, while the LO detected triplet would fail, but this
should be fixed in the external in any way.

Change-Id: Ib7a9719e0e406fe90334b7611dc3f01b51692bfa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129153
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2022-01-31 10:31:04 +01:00
Caolán McNamara 3bc0cebd7b upgrade to expat 2.4.4
Change-Id: Ie141268793dc4332d8c253bec4e986894682c7a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129179
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-01-31 09:51:02 +01:00
Caolán McNamara 43d04b91e5 upgrade expat to 2.4.3 + CVE-2022-23852 and CVE-2022-23990
wget https://github.com/libexpat/libexpat/pull/550.patch -O CVE-2022-23852.patch
wget https://github.com/libexpat/libexpat/pull/551.patch -O CVE-2022-23990.patch

Change-Id: I1f2694abd9f577e0b4fedbf27118b52be8a1a688
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129124
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-01-28 21:50:46 +01:00
Caolán McNamara c55e7bd903 upgrade to Expat 2.4.1
drop ubsan patch in favour of fix applied as
https://github.com/libexpat/libexpat/pull/398

Change-Id: I59eb9e24206b9a4cf323b7f7d48d8df0792a1c46
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116092
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-05-25 14:26:18 +02:00
Jan-Marek Glogowski 8a4173987e WASM: add initial support for Emscripten cross build
- configure with:
- --host=wasm64-local-emscripten
- had to make a few externals optional, so adding:
  - --disable-nss
  - --disable-cmis
  - --disable-curl

Change-Id: I48d1c73d2675ad2e2beaf2c341578199efbd24ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111130
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2021-05-05 21:14:54 +02:00
Luboš Luňák 0adc9b615f GBUILD_TRACE, support for finding out where the build time is spent
See instructions in solenv/gbuild/Trace.mk . This generates a file than
can be viewed e.g. in the Chromium tracing view.

Change-Id: I5f90647c58ca729375525b6daed2d4918adc8188
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88754
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-02-16 14:49:45 +01:00
Stephan Bergmann ad53c152cc external/expat: Avoid -fsanitizenullptr-with-offset
...(new with Clang 10 trunk), where adding even an offset of 0 to a null pointer
is UB in C.  Seen when building CustomTarget_writerfilter/source:

> [PY ] CustomTarget/writerfilter/source/ooxml/resourceids.hxx
> workdir/UnpackedTarball/expat/lib/xmlparse.c:6488:23: runtime error: applying zero offset to null pointer
>  #0 in hashTableIterInit at workdir/UnpackedTarball/expat/lib/xmlparse.c:6488:23
>  #1 in dtdDestroy at workdir/UnpackedTarball/expat/lib/xmlparse.c:6130:3
>  #2 in XML_ParserFree at workdir/UnpackedTarball/expat/lib/xmlparse.c:1368:5
>  #3 in xmlparse_dealloc at workdir/UnpackedTarball/python3/Modules/pyexpat.c:1222:9
>  #4 in insertdict at workdir/UnpackedTarball/python3/Objects/dictobject.c:807:9
>  #5 in _PyObjectDict_SetItem at workdir/UnpackedTarball/python3/Objects/dictobject.c:3927:19
>  #6 in _PyObject_GenericSetAttrWithDict at workdir/UnpackedTarball/python3/Objects/object.c:1159:19
>  #7 in PyObject_SetAttr at workdir/UnpackedTarball/python3/Objects/object.c:930:15
>  #8 in PyEval_EvalFrameEx at workdir/UnpackedTarball/python3/Python/ceval.c:2310:19
[...]

Change-Id: I152ddb20c726dbeb638c5fab4403423f5c6da7b5
Reviewed-on: https://gerrit.libreoffice.org/81284
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-10-22 07:19:30 +02:00
Caolán McNamara 6d15dcd129 latest expat
Change-Id: Ia98c9718ccd8e18b5f56851027bde944164f05c4
Reviewed-on: https://gerrit.libreoffice.org/78976
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-09-16 11:22:06 +02:00
Luboš Luňák cb7a39ac64 disable warnings in external libs
As in, really disable, so that they do not even show. This moreover
avoids tons of D9025 warnings from MSVC about overriding -W4 with -w.

Change-Id: Ia2e72fd72d883d91bdd89e467ee42f259e2ae033
Reviewed-on: https://gerrit.libreoffice.org/72899
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2019-05-24 13:46:03 +02:00
David Tardon 34a7a9fd76 upload expat 2.2.5
Change-Id: Ic92002ec4f5edc48ca1bb3ac84836c4e6d19833c
Reviewed-on: https://gerrit.libreoffice.org/44552
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-11-10 14:03:51 +01:00
David Tardon 1bae5c02ef use gbuild way to update config.*, continued
Change-Id: I9abf1742c213f47c576ffbb7dafd33087f7037e5
Reviewed-on: https://gerrit.libreoffice.org/43307
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-10-10 12:53:45 +02:00
Caolán McNamara f680e5a441 CVE-2017-11742: Expat 2.2.3
Change-Id: I1a1de789eaa5a78d2dc0e41ef861d10fa97b689b
Reviewed-on: https://gerrit.libreoffice.org/40718
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-08-03 20:52:13 +02:00
Christian Lohmaier 94a475bdec Revert "expat-2.2.1 patch to allow compile on macOS and others"
This reverts commit 346121398b.

upstream fix is to fix configure to do a link check instead of
compile-only for getrandom.
See f78ed1ec52

Change-Id: Ia9a3f1c2091048778e2bf4773f9e31ae4700ce0c
2017-07-13 15:29:08 +02:00
Christian Lohmaier f78ed1ec52 fix getrandom check in expat's configure
https://github.com/libexpat/libexpat/issues/52

fixes /usr/include/sys/random.h:37:22: error: expected ')'
misdetection of random.h feature, already fixed upstream:
https://github.com/libexpat/libexpat/commit/602e6c78ca750c082b72f8cdf4a38839b312959f

Change-Id: I65e4aebaa838d2931a60cb34806d87b88861c4d8
2017-07-13 15:24:33 +02:00
jan Iversen 346121398b expat-2.2.1 patch to allow compile on macOS and others
xmlparse.c has a
 #define buffer something

later
 #include something

that happens to use buffer as a parameter.

Change-Id: I7378aa9481b30364097c70317c794c0bcca2f05c
Reviewed-on: https://gerrit.libreoffice.org/39109
Reviewed-by: jan iversen <jani@libreoffice.org>
Tested-by: jan iversen <jani@libreoffice.org>
2017-06-22 18:28:02 +02:00
jan Iversen e1b98561d3 iOS, patch for expat
Support for arm64

Change-Id: Iedac1ee7d1b2ba7976ae56fdf24dd66d99f16264
2017-06-11 11:02:30 +02:00
Stephan Bergmann 8646ab97dc Remove MinGW support
In OOo times, there'd originally been efforts to allow building on Windows with
MinGW.  Later, in LO times, this has been shifted to an attempt of cross-
compiling for Windows on Linux.  That attempt can be considered abandoned, and
the relevant code rotting.

Due to this heritage, there are now three kinds of MinGW-specific code in LO:

* Code from the original OOo native Windows effort that is no longer relevant
  for the LO cross-compilation effort, but has never been removed properly.

* Code from the original OOo native Windows effort that is re-purposed for the
  LO cross-compilation effort.

* Code that has been added specifially for the LO cross-compilation effort.

All three kinds of code are removed.

(An unrelated, remaining use of MinGW is for --enable-build-unowinreg, utilizing
--with-mingw-cross-compiler, MINGWCXX, and MINGWSTRIP.)

Change-Id: I49daad8669b4cbe49fa923050c4a4a6ff7dda568
Reviewed-on: https://gerrit.libreoffice.org/34127
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-02-10 18:01:27 +00:00
Jochen Nitschke d2f4700331 expat moved to github
see https://sourceforge.net/p/expat/code_git/ci/master/tree/MIGRATED_TO_GITHUB.txt

Change-Id: I9f0351debb69f7aae2b066ad90e983cb6259bff5
Reviewed-on: https://gerrit.libreoffice.org/34041
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2017-02-09 11:08:01 +00:00
David Tardon 4c28c8051a tdf#100807 upload expat 2.2.0
Change-Id: Ic059d9cc94d4a5cf016dcf63cf5a8bf9c05d8c8a
Reviewed-on: https://gerrit.libreoffice.org/27037
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2016-07-08 14:41:14 +00:00
Caolán McNamara b33fb0a8a0 CVE-2016-0718 and CVE-2015-1283 expat woes
Change-Id: I83691e616bf964db2cb1e708b57f65b92ea2697e
Reviewed-on: https://gerrit.libreoffice.org/25401
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-05-24 13:23:27 +00:00
Peter Foley 2c5f892734 Android autoconf fixes
Change-Id: I3429f6a80dd7e080e8f2634ca744d1dac5ea1865
Reviewed-on: https://gerrit.libreoffice.org/21558
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-01-29 10:23:51 +00:00
David Tardon cad68c6559 relax deps of link target on external projects
Compilation of the link target's source files does not require the
external project to be built, just unpacked, unless the project
generates some needed headers during configure/build.

Change-Id: I2c9947cf13ce86878d2649829052551fc54f3883
2015-10-07 10:11:39 +02:00
Michael Stahl 6d0a9ccffe expat: remove duplicate patch
Change-Id: Ie813234b78b9f8d2c61c9640546317d754f66004
2015-06-26 14:31:39 +02:00
Michael Stahl d729d169de normalize values of CROSS_COMPILING
Change-Id: I0cc43cef91e3fcd82a3558a16ab0afbd4d56b141
2014-02-27 18:09:01 +01:00
Khaled Hosny cc4aca0c9f Fix building from inside modules moved to external
Change-Id: Id6023dc3751fe70984f489682be17d1ab1855f71
2013-10-18 21:52:01 +02:00
Khaled Hosny 3c61695a82 fdo#70393: move expat to a subdir of external
Change-Id: I4735c3b10081ac62b4620ff5180f12c30b077627
Reviewed-on: https://gerrit.libreoffice.org/6300
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-10-18 06:52:15 +00:00