1602 Commits

Author SHA1 Message Date
Stephan Bergmann
a9124aceb9 external/pdfium: Work around -fsanitize=shift
...during CppunitTest_sd_export_tests

Change-Id: Id253fd83a6056783a55f9496ac850dc00e89253d
2017-02-14 09:11:07 +01:00
Caolán McNamara
163435fa23 use alternative optimizations for buffer creation bottleneck
Change-Id: I9f29e8d3e5e97fe403a3e0d7d03c6ac01c7689c4
2017-02-12 21:16:59 +00:00
Caolán McNamara
804287e4ab Resolves: tdf#105426 helpful to actually let the compiler optimize hunspell
*facepalm*

Change-Id: I5f6d6cb94e1a80d2d7ae96900517aae3c8f39f08
Reviewed-on: https://gerrit.libreoffice.org/34176
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-02-12 21:12:26 +00: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
Caolán McNamara
55e203a0c6 add --disable-pdfium
Change-Id: I9137dc0030c3c752ffc0931721bf6b0013309d39
2017-02-10 14:03:37 +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
Miklos Vajna
b668b90dee pdfium: work around macOS 10.9 build
I assume this is a compiler bug, the patch can be dropped when we don't
build on this baseline anymore.

Change-Id: Ic65f830b888864db075efefd5b2e5d2520d9213e
Reviewed-on: https://gerrit.libreoffice.org/34033
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-02-08 18:23:15 +00:00
Miklos Vajna
b6f9eeb9b5 external: bundle pdfium
Initial use case is to avoid creating a whole Draw document + a poppler
process for each and every PDF image we load in a document.

The MSVC patch is only to support MSVC 2013, as upstream already moved
to MSVC 2015.

Change-Id: I3c9dbac3e3de9f2e874ca4cfec0a9dd8a388b87c
Reviewed-on: https://gerrit.libreoffice.org/34022
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-02-08 12:33:11 +00:00
Michael Stahl
12b865c028 gbuild, python3: stop defining SOLARIS, and remove SOLARIS patch
It's faster to change our code not to rely on -DSOLARIS than to
wait for python developers to remove such nonsense from their public
headers.

Change-Id: I3ab05d41bbb51b91a2add599339ce334b5099330
2017-02-08 12:58:38 +01:00
Caolán McNamara
e86a8f5c53 try to fix arm build
Change-Id: I866d741f35925ba00b60b2beeb5d9ee7de8b0d94
2017-02-05 12:10:16 +00:00
Caolán McNamara
5a0aabe7b3 circular freetype and harfbuzz dependency
harfbuzz needs freetype, freetype wants harfbuzz but can live
without it

Change-Id: I4b5dbd937ccfc9af46c86be5ae1d3f8eeb14e86b
2017-02-05 08:35:38 +00:00
Caolán McNamara
0d016fc9e7 arm libpng build fix
Change-Id: I904424251a7d6a84a97e61d18c1a731c66866fae
Reviewed-on: https://gerrit.libreoffice.org/33917
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-02-05 08:32:30 +00:00
Caolán McNamara
dbc6d0e070 add freeype to cairo's use externals
Change-Id: I408c48ce0b28534b232b5d401ed13f7af76ed2ed
Reviewed-on: https://gerrit.libreoffice.org/33915
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-02-04 17:05:19 +00:00
Katarina Behrens
c6315e162a gpg4libre: Download external gpgme and dependent libs
in particular, libgpg-error and libassuan
This only downloads and unpacks the tarball. Building them needs
some work still

Change-Id: I562fd01571929ddfb47a319038f88ea8dbfb4bdd
Reviewed-on: https://gerrit.libreoffice.org/33712
Reviewed-by: Siegmund Gorr <siegmund.gorr@cib.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-02-03 14:15:38 +00:00
David Tardon
2c1ae44189 upload boost 1.63.0
Change-Id: I7f896bb9650f68626b4bcfe96c9c41fafeab436a
Reviewed-on: https://gerrit.libreoffice.org/33827
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-02-03 08:17:06 +00:00
David Tardon
23f7e82c7b drop bundled ooo2gd (Google Docs) extension
LibreOffice has had direct support for Google Drive since (I think) 5.1,
via libcmis.

Change-Id: I7587923b3fd7dd505124b790066cdaa99a858af1
Reviewed-on: https://gerrit.libreoffice.org/33822
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-02-02 19:13:54 +00:00
David Tardon
a7b9eb7e0f workaround libtool library name subst.
When libtool links a library with another libtool-based library, it
replaces -lfoo by path to installed foo, like $foo-libdir/libfoo.la.
harfbuzz would be installed to /usr/local/lib by default, therefore
libtool replaces -lharfbuzz by /usr/local/lib/libharfbuzz.la in
libfreetype.la, which causes a failure (nonexistent file) when building
fontconfig...

Change-Id: Ie2510034e69803af084dd90671fdbc8f6863fcf2
2017-02-02 16:22:44 +01:00
David Tardon
a84c22107e build only fontconfig lib
Change-Id: I4fbbd7dfc828e4e38bd59feb93b02fcd6daa74a5
2017-02-02 16:22:44 +01:00
David Tardon
038844ad1a run verbose make for fontconfig
Change-Id: I67055b9cf325b71b0f227b59d94158c334dc724b
2017-02-02 16:22:43 +01:00
David Tardon
e060317a7a fontconfig uses pkg-config to detect freetype now
Change-Id: I12cc3a8a36aeafd5184eee4051bc798c22769d8c
2017-02-02 16:22:41 +01:00
Stephan Bergmann
1462b2784f Adapt the external/redland/raptor/xml2-config.patch to raptor2-2.0.15
The Yocto-based GNOME 3.20 SDK used to build the LO Flatpak has a broken
xml2-config.  I cannot understand why the previous workaround worked fine with
raptor2-2.0.9 in LO 5.2 and fails with raptor2-2.0.15 since LO 5.3, but this
updated workaround keeps raptor's configure happy.

Change-Id: Ibfb2cb8a718f744e1bb4045082520fb186d6062b
2017-02-02 14:11:58 +01:00
David Tardon
ba9b66eecf upload fontconfig 2.12.1
Change-Id: I6f035afbf4a904bed5074d79f467ba43f7d8ed32
Reviewed-on: https://gerrit.libreoffice.org/33813
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-02-02 07:38:01 +00:00
David Tardon
cc96f0c841 upload freetype 2.7.1
Change-Id: I8da4395cefe6bb542ab7cac2a849ec587a63f37c
Reviewed-on: https://gerrit.libreoffice.org/33814
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-02-02 07:37:25 +00:00
David Tardon
750ca7dec9 upload libjpeg-turbo 1.5.1
Change-Id: Ie34f030abad75317b8bd813386e6bbf9439a3d1c
Reviewed-on: https://gerrit.libreoffice.org/33810
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-02-01 20:50:41 +00:00
David Tardon
0e36d7ec60 upload cairo 1.14.8
Change-Id: I3f602b881477653f51025fce72d22a0499e7f077
Reviewed-on: https://gerrit.libreoffice.org/33806
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-02-01 20:49:43 +00:00
David Tardon
a97371bf4d upload openssl 1.0.2k
Change-Id: I26d49db0207b3f4f64aa9698da4cf3567d195834
Reviewed-on: https://gerrit.libreoffice.org/33800
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-02-01 20:48:51 +00:00
David Tardon
0ada594b5c upload lcms2 2.8
Change-Id: I8a3b138c051d3cddf25855a635262311669bdddc
Reviewed-on: https://gerrit.libreoffice.org/33798
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-02-01 20:47:57 +00:00
Stephan Bergmann
b834fad4a5 external/breakpad: Work around -fsanitize=alignment
...as seen in the scenario described in 5997121a51e240c762b4d002d7d16b94ac13d4a1
"Support signal handlers registered with SA_SIGINFO", first

> src/client/linux/minidump_writer/directory_reader.h:82:19: runtime error: member access within misaligned address 0x7f3f8235c2cc for type 'struct kernel_dirent', which requires 8 byte alignment
> 0x7f3f8235c2cc: note: pointer points here
>   10 02 00 00 d8 f8 3b 00  00 00 00 00 01 00 00 00  00 00 00 00 18 00 2e 00  00 00 00 04 02 c7 3b 00

and then

> src/client/linux/minidump_writer/linux_dumper.cc:382:19: runtime error: member access within misaligned address 0x7f96c225d7bc for type 'google_breakpad::MappingInfo', which requires 8 byte alignment
> 0x7f96c225d7bc: note: pointer points here
>   20 0a 32 30 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
>               ^

Change-Id: I7f739567879093a404bee3e351ce9e8257676183
2017-02-01 12:37:54 +01:00
David Tardon
bc4097ed56 upload libmwaw 0.3.10
Change-Id: I1355f60bdaf66aecef22f1093f57369b9fd91972
Reviewed-on: https://gerrit.libreoffice.org/33745
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
2017-01-31 20:08:48 +00:00
Thorsten Behrens
2be42d9480 curl: get winProxy support back
with properly aligned asterisks

Change-Id: I48b31bce45cdce378fa1cfdd9ddde82b9e669cf5
Reviewed-on: https://gerrit.libreoffice.org/33500
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2017-01-26 22:18:25 +00:00
Stephan Bergmann
16bf916eee Pass gb_VISIBILITY_FLAGS into external/breakpad
...to avoid UBSan (on Linux) reporting a ODR violation between
google_breakpad::MinidumpDescriptor::kMicrodumpOnConsole (workdir/
UnpackedTarball/breakpad/src/client/linux/handler/minidump_descriptor.cc)
defined in both the crashreport and sofficeapp dynamic libs.

Change-Id: I686a6e2041c70f0aa17a774d705dc71d95d20183
2017-01-25 16:15:58 +01:00
Caolán McNamara
a3fe4ca1b1 just build the hunspell lib, not the rest
might hack around link failures of the hunspell tools under arm

Change-Id: Ib5db702c2898e909e2bb91f4c4bc6b91bd08f47b
2017-01-24 11:22:03 +00:00
Caolán McNamara
f0b38738d8 Related: tdf#105426 upgrade to hunspell-1.6.0
Change-Id: I275222d1a7d78cbfb1ca046562fc8a3c314b0fae
Reviewed-on: https://gerrit.libreoffice.org/33454
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-01-24 09:34:16 +00:00
Thorsten Behrens
6d9e480380 curl: upgrade to version 7.52.1
- fixes some four CVEs
- and a ton of other fixes & improvements

Change-Id: I2312f30f72c914c7e930c59ddbe44fb8a282c0a5
Reviewed-on: https://gerrit.libreoffice.org/33471
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-01-23 16:43:06 +00:00
Stephan Bergmann
c8bdf901ef Revert "external/firebird: Try track down "Couldn't turn forced writes off" failure"
This reverts commit 128e7ce3ffa50b11b2d5ff9777a27b095a84e5d7 (plus
40b44f7eb25114e5e4e19e571b8781580a938ca6 "Remove line again that was committed
in error" follow-up), now that the cause is found and addressed with
592f4f6a5941e42e6b2b3fa76e74b8ad509724c9 "external/firebird: Backport fix for
CORE-5452 causing spurious SEGV".

Change-Id: I84ddc90707693c2577ad0cd913e987bc9e173e34
Reviewed-on: https://gerrit.libreoffice.org/33229
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2017-01-18 07:41:04 +00:00
Michael Stahl
743f9fc86f python3: upgrade to release 3.5.3
- fixes some minor CVEs
- drop python-vc2013.patch.1
- drop python-3.3.3-py17797.patch.1:
  the bug was fixed in MSVC2015 runtime so not relevant
- drop python-lsan.patch.0:
  fixed upstream
- ubsan.patch.0:
  drop hunks that were fixed upstream
- python-3.5.0-tcltk.disable.patch:
  merge into msvc-disable.patch.1

Change-Id: I2aecae446539d28eaf3eb64ee67581596019335d
Reviewed-on: https://gerrit.libreoffice.org/33225
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-01-17 22:42:01 +00:00
Jochen Nitschke
e87071ac57 replace boost::checked_deleter with std::default_delete
and remove all traces of boost/checked_delete.hpp

Change-Id: I4486d0e07a7197d75f8739c8c6d79670163eaab2
Reviewed-on: https://gerrit.libreoffice.org/33182
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2017-01-17 20:24:17 +00:00
Stephan Bergmann
d0f3363aa8 Fix patch
The original patch caused compilation of x86-ffi64.c to fail, but that
failure was silently ignored by the build.

Change-Id: I93a0cde041b8f9546873d6cc30c1b690da098642
2017-01-17 21:07:01 +01:00
Michael Stahl
0cee740c95 replace #ifdef SOLARIS with #ifdef __sun
Check for a macro that is defined by the compiler, we don't really need
one defined by the build system.

Change-Id: Iccb8e3198396881395c97a6b81690ebe64b7e9d2
2017-01-17 16:38:33 +01:00
Stephan Bergmann
592f4f6a59 external/firebird: Backport fix for CORE-5452 causing spurious SEGV
...while building LO.  Patches from <https://github.com/FirebirdSQL/firebird>'s
B3_0_Release branch; to apply, 0002 needed 0001 first (which looks like a
reasonable thing to include in itself, anyway), plus a trivial whitespace
modification, plus an additional #include for Windows.

Change-Id: Idd2e326432fa52762742a168c7e880a9c6fb650c
Reviewed-on: https://gerrit.libreoffice.org/33186
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2017-01-17 08:47:49 +00:00
Stephan Bergmann
50eb12a8e3 external/boost: Silence -fsanitize=nonnull-attribute
...as reported e.g. during CppunitTest_sw_odfimport:

> /workdir/UnpackedTarball/boost/boost/circular_buffer/debug.hpp:37:17: runtime error: null pointer passed as argument 1, which is declared to never be null
> /usr/include/string.h:62:62: note: nonnull attribute specified here
>     #0 0x2b24bc0e6389 in void boost::cb_details::do_fill_uninitialized_memory<SwFrameFormat*>(SwFrameFormat**, unsigned long) /workdir/UnpackedTarball/boost/boost/circular_buffer/debug.hpp:37:5
>     #1 0x2b24bc0e5b48 in boost::circular_buffer<SwFrameFormat*, std::allocator<SwFrameFormat*> >::allocate(unsigned long) /workdir/UnpackedTarball/boost/boost/circular_buffer/base.hpp:2375:9
>     #2 0x2b24bc0e545a in boost::circular_buffer<SwFrameFormat*, std::allocator<SwFrameFormat*> >::initialize_buffer(unsigned long) /workdir/UnpackedTarball/boost/boost/circular_buffer/base.hpp:2482:18
>     #3 0x2b24bc0cfaa7 in boost::circular_buffer<SwFrameFormat*, std::allocator<SwFrameFormat*> >::circular_buffer(unsigned long, std::allocator<SwFrameFormat*> const&) /workdir/UnpackedTarball/boost/boost/circular_buffer/base.hpp:1036:9
>     #4 0x2b24bc068cd7 in AppendAllObjs(SwFrameFormats const*, SwFrame const*) /sw/source/core/layout/frmtool.cxx:1100:44
...

Change-Id: Id96a6127990548ab0ae2e8a02b7bec2d61094c37
2017-01-08 15:57:23 +01:00
Michael Stahl
abf38a157e breakpad: document how to read mini-dumps locally
Change-Id: I888930079fc93c609769ac31a025c410b9adad96
2017-01-06 17:16:20 +01:00
Michael Stahl
2574757cf0 unixODBC: revert nonsensical trival change 622bb4bc
There is no point to trivial cleanups in external headers.

Change-Id: I9cb7ba135655e1426dcafd3a621ab4eaa7da1011
2017-01-06 14:01:59 +01:00
Matúš Kukan
35bc966856 Remove package with dbghelp.dll
ENABLE_CRASHDUMP is always empty.
dbghelp.dll was removed from scp2 in
8ab4d2f29fdd2c058db23f6ee7b2200655d4c6f6

Change-Id: I5c47ce4b4cafb2f24185ddd9a31eb1a3176fa176
Reviewed-on: https://gerrit.libreoffice.org/32395
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Matúš Kukan <matus@libreoffice.org>
2017-01-02 21:20:21 +00:00
Jochen Nitschke
83a9c8e046 build fix
apparently harfbuzz is not build with std=c++11 everywhere

Change-Id: Ie105706212d9dd32f33bc67c8a878ce8a55e60ef
Reviewed-on: https://gerrit.libreoffice.org/32521
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2016-12-30 23:31:48 +00:00
Stephan Bergmann
ca9a08bbf7 external/harfbuzz: Silence -fsanitize=nonnull-attribute
...as reported during CppunitTest_sw_odfimport

Change-Id: I3c8542d46cf1106c9910a04ed1f953459c7c7ea5
2016-12-30 21:10:44 +01:00
Caolán McNamara
2fb74b1ae9 build hunspell with _GLIBCXX_DEBUG
Change-Id: Ida2ce221f1e35afd946545c2a36b72dd2386e7dd
2016-12-22 13:03:46 +00:00
Caolán McNamara
903dd3fe07 Resolves: ofz#311 fix leak in old fontconfig we're using
I guess we should bump the version of this

Change-Id: I4e0b16fe8483f7c8494bb6ca6c5f87cd3420d721
2016-12-22 11:25:45 +00:00
Stephan Bergmann
4e7f8e5a82 external/hunspell: Work around -Werror,-Wundef with clang-cl
...when lingucomponent/source/spellcheck/spell/sspellimp.cxx includes
hunspell.hxx

Change-Id: Ibb4b2901a9dfbf7e145281bedeaa9d8daf79aba5
2016-12-21 18:13:54 +01:00
Tor Lillqvist
efe9d1df69 Don't add empty TODO functions to libxmlsec, and don't call them
Change-Id: Iaec1de29a0e7f3ea8eb10869382401d121de2c8a
2016-12-21 17:35:24 +02:00