1602 Commits

Author SHA1 Message Date
Miklos Vajna
38aa954a0e libxmlsec: initial OOXML RelationshipTransform
Replace the canonicalization with the steps of actions required by ECMA 376,
part 2, pages 49 - 70:

- parse arguments of the transformation, a SourceId whitelist
- add missing TargetMode attributes

The largest part is to actually keep the data unchanged, everything still needs
to be printed, as the source is a parsed XML tree, while the output is a byte
buffer.

With this, the first _rels/.rels stream of the OOXML document validates for a
test document that is supposed to be valid.

Change-Id: Ie996d93de6a7611bac18a8c37c575363552fdab4
Reviewed-on: https://gerrit.libreoffice.org/21832
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2016-01-27 09:26:53 +00:00
Miklos Vajna
93fdb8dc67 tdf#76142 libxmlsec: extend SHA-256 support in the NSS backend
With this, the xmlSecTransformIdListFindByHref() call in
xmlSecTransformNodeRead() recognizes the
http://www.w3.org/2001/04/xmldsig-more#rsa-sha256 string as a valid
signature method as well. Previously SHA-256 was recognized as a digest
method only.

Change-Id: Ib20ab97dd5bc86dff761f0c58a87afdde112e1e8
2016-01-26 13:39:13 +01:00
Miklos Vajna
937eb672f4 libxmlsec: canonize in the OOXML RelationshipTransform
This is still a skeleton, but now we canonize the incoming data, not just
eat it and output nothing -> at the end we don't hit an assertion that
the output of the transform chain is nothing.

Change-Id: I28509b8a493c6bf6cdcbb23b95ae7de8947790c1
2016-01-25 18:26:16 +01:00
Miklos Vajna
33cb676e58 tdf#76142 libxmlsec: implement SHA-256 support in the NSS backend
This way we do not abort a signature verification when we see a

<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>

XML node. Note that this just extends the glue layer, both NSS and
libxmlsec itself already supported SHA-256 already.

Change-Id: I68de99578b839bd7eaa8f21af903aa924c892799
2016-01-25 12:11:02 +01:00
Miklos Vajna
7fb16870bf libxmlsec: recognize OOXML RelationshipTransform
The transform itself doesn't do anything so far, but the verification is
no longer aborted just because we see a transform that we don't know.

Change-Id: Ife89157067f3af3326896df3053065c8302795d1
2016-01-25 12:11:02 +01:00
Armin Le Grand
7d69efd06d Win build: Set default script engine for cscript
When Windows build is executed, cscript is used to execute JavaScript files.
This uses cscript from the system to execute *.js files. cscript is not
only capable of executing JavaScript, but also VBScript. Which engine to
run is usually determined by the file extension, except when any installed
program has added a registered association to the used file type. In that
case, the execution of cscript and thus the build fails. This can be prevented
by directly defining the script engine when calling cscript, using the
/e:javascript parameter for *.js targets.

Change-Id: If717b8ae5335acbe4f11c269d3c98a7247a135e6
Reviewed-on: https://gerrit.libreoffice.org/21717
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2016-01-23 00:11:47 +00:00
Tor Lillqvist
05b44143d2 Revert "More LTO fixes for android"
Seems to cause tinderbox build breakage, sigh.

This reverts commit 1c1b788f38da07aed268be3c515a096594a107dc.

Change-Id: I5a69e186e0f8f71c2fcc81d27bebe2253fd240bb
Reviewed-on: https://gerrit.libreoffice.org/21699
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2016-01-22 06:49:01 +00:00
Peter Foley
1c1b788f38 More LTO fixes for android
Change-Id: Id9b4873b8213d9913d54b3821ba0be6ffa7ac188
Reviewed-on: https://gerrit.libreoffice.org/21612
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
2016-01-22 06:35:41 +00:00
Stephan Bergmann
dda3fc05a2 Fix for Jenkins Gerrit Mac builds
...which choke on

  #pragma GCC diagnostic ignored "-Wpragmas"

Change-Id: I40100b43078320b79cb9e3d4e3fb369db0bed9fe
2016-01-21 07:57:44 +01:00
Miklos Vajna
d4d2c7db76 libxmlsec: respect --enable-debug with GCC
So we compile using either '-O2' or '-O0 -g', instead of '-O2 -g' all
the time.

Change-Id: Iefc22f38be37ea876c713724657af460eb4c1606
2016-01-20 14:52:53 +01:00
Caolán McNamara
82cdcc392a can now drop external dependency vigra
Change-Id: I3babe33ab5be1c3521ccb8bee71239e3d8893a2f
2016-01-20 09:43:28 +00:00
Stephan Bergmann
3179e8f7e6 external/firebird: Adapt to GCC 6
...which switched defaults from C++03 to C++14, so causes some errors now.

Curiously, the throw(std::bad_alloc) vs. throw-anything mismatch between the
global operator new replacements and the standard headers is OK for GCC only
when there is no further declaration in between the standard header and the
replacmenet definition.

Change-Id: Ib54727fecf4ad07426b811a9cc04b08ea80e59dc
2016-01-20 08:41:52 +01:00
Stephan Bergmann
f71a0b44e6 Silence -Werror,-Wunknown-pragmas
Change-Id: If726008f6755db59b01784ad6b479bbfe2d23e96
2016-01-19 12:24:04 +01:00
Stephan Bergmann
356599d2e1 Remove bogus addition from prev commit
Change-Id: I9b1aa86e3cb325b07158e3994a961db8ea4114d8
2016-01-19 12:12:28 +01:00
Stephan Bergmann
2c9d652dc7 Does that help old GCC that don't know -Wplacement-new
...and would thus error out with -Werror=pragmas?

Change-Id: I113c43bed4d6d0c03e4c3c68684c50fd386428d9
2016-01-19 12:01:08 +01:00
Stephan Bergmann
b03879a939 Pass --enable-symbols into external/libetonyek
Change-Id: I60f7817b1d5e32ad642076ea2a9f7b7522ebb1de
2016-01-19 11:48:21 +01:00
Stephan Bergmann
ae4139e220 external/clucene: Silence -Werror=misleading-indentation (GCC 6)
Change-Id: I9a067605f7c477f4e057338577a437cda7f2aa3d
2016-01-19 11:47:18 +01:00
Stephan Bergmann
92969eaa56 external/boost: silence some GCC 6 warnings
Change-Id: I4613f013c39e439dd11d3abc3737511cb8788d4f
2016-01-19 11:45:08 +01:00
Tor Lillqvist
a28fc0ea2f Revert "LTO fixes for android"
Seems to break the tinderbox, needs more work?

This reverts commit 6aaf1ec5a781b50ceda6d0d288a43dba435be2ce.
2016-01-19 00:56:40 +02:00
Peter Foley
6aaf1ec5a7 LTO fixes for android
Change-Id: I2d4cedac4081260c5147d8c11904d042c765e3a6
Reviewed-on: https://gerrit.libreoffice.org/21557
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2016-01-18 22:39:07 +00:00
David Tardon
7d93bb8fcb build liblangtag as shared lib on linux and OS X
Change-Id: I3ae138d1a06d22be42a3cd6f565fba6950208fc6
2016-01-16 16:24:43 +01:00
Christian Lohmaier
eed4cc7933 android x86 doesn't define ffs in libc, use compiler builtin instead
Change-Id: Ifde1184e469fc9a74de007a0caf27750b2ffbcbb
2016-01-16 01:19:10 +01:00
David Tardon
058314d238 upload libetonyek 0.1.6
Change-Id: Ia1cbb24f8c579d1b3b7fe0e916318c8f6fa9430f
2016-01-14 19:46:49 +01:00
Andrea Gelmini
64d624b651 Fix typos
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86
Reviewed-on: https://gerrit.libreoffice.org/21209
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-10 14:17:20 +00:00
Martin Hosken
39b718dd65 Fix applying external dict to icu, and khmer break engine fixes
Change-Id: Ib897e5fa5e80f75f501694dbf874aabd92253b25
Reviewed-on: https://gerrit.libreoffice.org/21247
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Martin Hosken <martin_hosken@sil.org>
2016-01-09 02:24:42 +00:00
Michael Stahl
e9cd508736 configure: hard-code /usr/bin/{sort,find} for Cygwin
... to avoid calling C:/Windows/system32/{sort,find}.exe, if those
happen to be first in PATH.

On a Windows 7 system, the other conflicts appear to be harmless,
we don't use "more", "expand", "timeout", "whoami".

Change-Id: Iceefeb7ee6725291b04c0eba465991bb1df96b57
Reviewed-on: https://gerrit.libreoffice.org/21175
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: Tor Lillqvist <tml@collabora.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
2016-01-07 08:44:28 +00:00
Tomáš Chvátal
817192b3f5 Refresh graphite2.win64.patch.1 to apply using sle11 patch binary.
Change-Id: If43ca99631fab5a3a04e7dead9b694cf52944666
Reviewed-on: https://gerrit.libreoffice.org/20882
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2016-01-06 21:58:32 +00:00
Martin Hosken
fbb00383d8 Use .dict files since below the 500K limit
Change-Id: Iec71ad4918cd333f0a44d372017ecee300e3aca9
Reviewed-on: https://gerrit.libreoffice.org/20748
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Martin Hosken <martin_hosken@sil.org>
2016-01-05 05:38:11 +00:00
David Tardon
027b98f457 upload libodfgen 0.1.6
Change-Id: Ic77d0510801f3655d914aea0e8ce66476853358a
2015-12-31 08:46:17 +01:00
David Tardon
9bfa7afe15 upload libwpd 0.10.1
Change-Id: Iba35a273230c96914d527475a8cefcbfab14c341
2015-12-30 13:23:36 +01:00
Stephan Bergmann
60a51eaf48 external/libvisio: Avoid undefined behavior
Change-Id: Ia86ebe7cd48de3f42dd95a11be7926f1e83d9113
2015-12-27 21:19:04 +01:00
David Tardon
cda2cca1b7 upload libwpg 0.3.1
Change-Id: I27f8039f65777c37ce8191f37dc3daa8728667dd
2015-12-26 21:51:06 +01:00
David Tardon
ff01ea8419 this is not needed anymore
Change-Id: I77ca146b81953c9694497e360660c8161f5e56bf
2015-12-25 09:56:30 +01:00
David Tardon
befb4af709 upload librevenge 0.0.3
Change-Id: I8f2c09b70679aabb5e5f56334e6ba9eedd2d78e1
2015-12-25 09:56:30 +01:00
Stephan Bergmann
171393c7a4 external/libvisio: Avoid undefined behavior
Change-Id: I454cf3b102986f2e3c1905f5fe0e1b2bb427828e
2015-12-24 12:26:54 +01:00
Fridrich Štrba
ce014ac766 Upload libvisio 0.1.4
Change-Id: Ia4cb506a95a150b8106187719e9104760409dea6
2015-12-23 15:31:14 +01:00
Douglas Mencken
9a2fbee575 external/libxslt: run macosx-change-install-names.pl for dylib
libxslt shared library depends on libxml2 library, and for cases when
libxml2 is "external", just-compiled libxslt will have an entry like
/@.__________________________________________________URELIB/lib/libxml2.2.dylib
and the whole LibreOffice application will fail to run

Change-Id: Ifafbdab74151207597ba9bd2e3beb0b8c3aa3ab7
Reviewed-on: https://gerrit.libreoffice.org/20816
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2015-12-20 00:10:32 +00:00
Christian Lohmaier
dad3c6752e Android: cairo build needs fontconfig and png headers
Change-Id: If7c2279281851b3234ab5982e3c34058a7b8f50c
2015-12-17 18:43:21 +01:00
Rene Engelhard
4c18af27bf tdf#96398 kill remaining NPAPI support for plugins _inside_ LO
- probably out of date
- links against Gtk2 and thus causes a GTk2 dependency in core packages
- the only serious usecase (Flash) is doomed anyway

Change-Id: I7264ab5eb04c2f4b6c31a815e45b9818209e5ae2
Reviewed-on: https://gerrit.libreoffice.org/20658
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
Reviewed-by: Bryan Quigley <gquigs@gmail.com>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-12-17 15:31:17 +00:00
Michael Stahl
d8fb3ed5fa boost: suppress auto_ptr deprecation warnings in boost::spirit
Apparently GCC 5.3.1 has turned these annoyances into actual warnings
that convert to errors with -Werror.

Change-Id: Ib1567b3fc2cf33a0f6cffac116a06d73912b84df
2015-12-15 20:18:46 +01:00
Tor Lillqvist
cf029192e4 Add --with-prebuilt-openssl
Don't ask.

Oh well, if you want to know: For some people, like me, Cygwin and its
Perl run into horrible trouble with the fork() emulation when building
OpenSSL. (But my Cygwin works fine for all else in the build. Go
figure.)

So I came up with a way to use prebuilt OpenSSL binaries. Not to be
used for release builds, of course (and the configury checks for
that), as long as our policy is to build all we can from sources.

Change-Id: Ic303bdf0c620c5122aca3d646fa1f0587221e70f
2015-12-10 17:01:19 +02:00
David Tardon
a5533e8a20 upload libetonyek 0.1.5
Change-Id: I3d9ffbdd8246d7dee6b49393dd6875cab8565dc0
2015-12-03 18:32:16 +01:00
Michael Stahl
e24d088364 mDNSResponder: upgrade to release 576.30.4
That's 197 more than the current release, surely a big improvement.

Change-Id: I48c81f9ae472a623ed9f59b94bb0bc921ad97c5c
Reviewed-on: https://gerrit.libreoffice.org/20303
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-12-03 16:19:04 +00:00
Stephan Bergmann
6054cfcb6e Revert "external/liborcus: Silence clang-cl errors about redeclared Windows functions"
This reverts commit be0bf120299cff1ec14af1b578d4ea89976cea08, which is no longer
needed after 12fc5b85ddc3b90b385ad0fc2ab0144a32bf9a4b "unnecessary include
brings in boost headers that are broken under rhel-7"
2015-12-02 16:10:53 +01:00
Caolán McNamara
12fc5b85dd unnecessary include brings in boost headers that are broken under rhel-7
Change-Id: I1ad477b9db9ba960ae2c417799e5d91b63538d57
2015-12-02 14:43:05 +00:00
Stephan Bergmann
fea70bfb06 external/icu: Work around a weird Windows bug in either make or clang-cl
...for now; workdir/UnpackedTarball/icu/source/tools/toolutil/Makefile invokes
the compiler with a -DU_HOST=\"...\" argument, and apparently directly executes
the compiler from CreateProcess, not going via a shell invocation for the recipe
line.  This confuses clang-cl for whatever reason, and for whatever other
reason, forcing make to go via a shell invocation (by adding "true &&" into the
recipe line) fixes it.

Change-Id: I3757a8856f93228c19475b37f3037fa9519a426f
2015-12-02 08:02:27 +01:00
Stephan Bergmann
97c8458b43 boost/external: More fixes for clang-cl
* Avoid errors about (somewhat different, but apparently in a way that MSVC
  doesn't care) redeclarations of system header stuff (and working around that
  with BOOST_USE_WINDOWS_H would lead to other problems).

* Need the workaround for broken MSVC 2010 STL iterator taxonomy for clang-cl,
  too.

Change-Id: I4f9c9b5cc8a19856cc409450aac1fb1baa5554c9
2015-12-02 08:02:27 +01:00
Stephan Bergmann
0c70c7d3df external/boost: Work around -Werror,-Winvalid-constexpr
Change-Id: I819be5efb25632d26fe49a71dbc07fe16e4914b1
2015-12-02 08:02:27 +01:00
Stephan Bergmann
5d7e556e47 external/clucene: Use warning-supression pragmas for clang-cl, too
Change-Id: I23da54974f39da5fccb619d6fa68eff38e70f5a5
2015-12-02 08:02:26 +01:00
Stephan Bergmann
d691bf7d65 external/glm: Fix check for availability of C++11 static_assert
Change-Id: I0d24bcdfeb0d004607569da089c9f787a868da72
2015-12-02 08:02:26 +01:00