Commit Graph
62 Commits
Author SHA1 Message Date
Michael Stahl 5e3799a0c8 curl: upgrade to release 7.58.0
* fixes 2 CVEs
* disable some new optional dependencies

Change-Id: If7725d126e68de04b67969a83c0ea08573a43679
Reviewed-on: https://gerrit.libreoffice.org/48493
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2018-01-24 21:15:59 +01:00
Michael Stahl 4fcdc190af external: consistently use gb_ExternalProject_use_nmake
... instead of hard-coding some subset of the variables everywhere.

Change-Id: I5eac5663563ee9d6cb7b57f5f6e9d55560587276
Reviewed-on: https://gerrit.libreoffice.org/44167
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-11-01 19:52:53 +01:00
Stephan Bergmann c1d0b19b43 external/curl: Work around clang-cl not knowing /FD
("IDE Minimal Rebuild", according to
<https://msdn.microsoft.com/en-us/library/6ce2bkt7.aspx>)

Change-Id: I1b549c50bea4285bc6c89302f757f2e7e0bf1784
2017-10-27 16:08:45 +02:00
Michael Stahl 89b08e2318 curl: upgrade to release 7.56.1
- fixes a very minor CVE: CVE-2017-1000254
- the Windows nmakefiles we were previously using have been
  removed, so we use the *other* Windows nmake build system now
- /EHs override is pointless, default /EHsc should work fine
- the macros defined in ExternalProject are not needed any more
- curl-msvc-schannel.patch.1: drop, not needed with new makefiles
- curl-osx.patch.1: none of it applies, presumably fixed upstream

Change-Id: I15c71b9c82c31d286d935b57543a1b0216123b66
Reviewed-on: https://gerrit.libreoffice.org/43724
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-10-24 10:09:07 +02:00
Stephan Bergmann 6c6e0149e0 Pass --with-macosx-version-min-required into external/curl
...which wants to take it from CFLAGS, otherwise defaults to 10.8

Change-Id: I1b086ee8abba1e4b46c67b6b4fe6a05c4ef7a3d8
2017-09-20 22:53:45 +02:00
Tor Lillqvist eba34a557c connectx() is available only on Mac OS X 10.11 and newer
Compiling against the 10.13 SDK with --with-macosx-version-min-
required set to 10.9 or 10.10 (or defaulted, meaning 10.9) causes a
compilation error now. Earlier SDKs did not catch it if you were using
connectx() even if targeting pre-10.11.

Try the approach from https://github.com/curl/curl/pull/1336/commits .

Change-Id: I7cac294931c8afa6ff26a6ca9cf4491aff249de0
2017-09-19 23:03:05 +03:00
Stephan Bergmann 6a478cf43f Pass --without-system-zlib into external/curl
For (implicit) --with-zlib, curl's configure would insist on calling pkg-config
and insist on using -lz to link against the zlib library.  None of that fits
LO's --without-system-zlib option.

So make curl's configure honor any passed in ZLIB_CLFAGS/LIBS (unless --without-
zlib were explicitly specified; also, ZLIB_CLFAGS/LIBS would override any
explicitly specified --with-zlib=PATH, which could be considered an error, but
we do never explicitly specify --with-zlib=PATH in
external/curl/ExternalProject_curl.mk, anyway).

Both ZLIB_CLFAGS/LIBS are set in config_host.mk, so are always set as env vars,
so would already be visible to curl's configure.  I nevertheless pass them into
curl's configure explicitly in external/curl/ExternalProject_curl.mk, to make
that more obvious.

With (implicit) --with-system-zlib, LO's configure.ac will set ZLIB_LIBS and
leave ZLIB_CFLAGS empty (and checks that zlib.h is indeed available without any
ZLIB_CLFAGS being necessary).  And with --without-system-zlib, LO's configure.ac
will set both ZLIB_CFLAGS/LIBS.  So curl's configure, as invoked from
external/curl/ExternalProject_curl.mk, will now always go into the newly added
case honoring any passed in ZLIB_CLFAGS/LIBS, which should thus always work out
nicely and use the same zlib settings as configured for LO itself.

(For documentation purposes, external/curl/zlib.patch.0 also contains the
changes to curl's configure.ac that are reflected in the changes to curl's
configure.)

Change-Id: Icf5eefe44a7f9beb8a43a9af381f46e5c8b98b04
Reviewed-on: https://gerrit.libreoffice.org/42032
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-09-07 09:16:52 +02:00
Stephan Bergmann a5139f902f Clean up passing CPPFLAGS/LDFLAGS into external/curl
Change-Id: I3a4730c9a43f5e4904504bb136b3ccbcf29207b4
Reviewed-on: https://gerrit.libreoffice.org/42030
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-09-07 07:22:52 +02:00
Stephan Bergmann 8067ae3440 Pass "verbose" flag into external/curl
Change-Id: Ic42bbeaee8faa8a5e99fbdd22775870bd2e5bae0
2017-09-06 23:21:40 +02:00
Michael Stahl 152a1d279c curl: disable protocols nobody needs in MSVC build
These are disabled via configure on other platforms.

Change-Id: I4e27865396f3817ceb5645ab8589c21fdaa5afab
2017-08-09 18:16:32 +02:00
Michael Stahl 9fd26734d3 curl: disable more unnecessary stuff
Only HTTP and FTP should be required.

Add --without-libpsl --disable-ares --disable-rtsp --disable-smb,
and --without-libidn was replaced with --without-libidn2.

Change-Id: Icf6afc8bff4cc7ad7a5a95b0c3f9a345a7cf67a3
2017-08-09 18:16:32 +02:00
Michael Stahl ae286726dd curl: remove curl-xp.patch.1
Change-Id: I329289c97b857370852c982a8b74b739b9ac3d78
2017-05-30 20:19:21 +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
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
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
Caolán McNamara 8092d344fa use new ENABLE_NSS for code which needs nss
which isn't available on a static-only build (iOS and fuzzing) and
android

Change-Id: I99bb7c0b45d4499579ddf73f469a762ddcae99ab
Reviewed-on: https://gerrit.libreoffice.org/32182
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-12-20 14:20:47 +00:00
Caolán McNamara ea992517bf with missing nss build curl and vcl appropiately
Change-Id: Iaef197e9ab736c219897933a76f4c75a3e3acaa6
2016-12-19 09:30:03 +00:00
Michael Stahl 3edb365f26 curl: upgrade to version 7.51.0
- fixes about a dozen CVEs
- tweak curl-7.26.0_win-proxy.patch:
  there is a "checksrc" thing now in curl that fails the build with:
    warning: use of strtok is banned (BANNEDFUNC)
  so use strtok_s instead (which is MSVC's name for standard strtok_r)
- use Makefile.vc12 instead of Makefile.vc10
- remove strequal.obj from Makefile.vc12, it does not actually exist

Change-Id: Ie2da64980d88c72b0c902376ffc01abf97a7bc91
Reviewed-on: https://gerrit.libreoffice.org/30484
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-11-02 19:11:14 +00:00
Michael Stahl 4b2cabedaa curl: drop curl-android.patch
fixed in new upstream autoconf

Change-Id: I8c88330b2ed522a160fedac6abd962f92b32d2f0
2016-08-01 11:13:35 +02:00
Caolán McNamara 8aa5c802e3 fix curl android patch to apply
Change-Id: I554f483ddf7bdc8b0347d7ae4d1fe7bb6aad8336
2016-07-30 19:37:42 +01:00
Caolán McNamara c772c8fd27 bump curl to 7.50.0
Change-Id: I368a18f70dfac51770afeb1f9e84ff83c19f0989
Reviewed-on: https://gerrit.libreoffice.org/27671
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-07-29 20:04:38 +00:00
Markus Mohrhard c75ff557b5 use EHs also for libcurl
Change-Id: Ibcd97e298e63074bbabb71d11af12bd3ff3266e7
Reviewed-on: https://gerrit.libreoffice.org/27070
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-09 11:47:55 +00:00
Markus Mohrhard 54f2a4184d tdf#100295: try to cover second place in curl using GetTickCount64
Change-Id: I08e51f70c7b0c92a8c1b8b06e7eb2f1437e2f3f4
Reviewed-on: https://gerrit.libreoffice.org/27025
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-07-08 00:45:36 +00:00
Markus Mohrhard dc4797a79e tdf#100295 force curl to build for XP
Change-Id: Ia705704bc80a951f0da04936783dd8965bda842b
Reviewed-on: https://gerrit.libreoffice.org/26886
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Jenkins <ci@libreoffice.org>
2016-07-07 00:43:20 +00:00
David Ostrovsky e16fa715c4 Handle wchar_t as native C++11 type on windows
The option /Zc:wchar_t- prevented to use wchar_t as a built-in type
according to the C++ standard. In Visual C++ 6.0 and earlier, wchar_t
was not implemented as a built-in type, but was declared in wchar.h as
a typedef for unsigned short. Now, years later after the end of life
this outdated toolchain, there is no reason not to use native type.

The only issue could be the ABI compatibility. But on a quick look at
least, it looks like none of the mangled C++ symbols in the stable URE
interface actually depend on wchar_t.

We forgot to get rid of /Zc:wchar_t- in 5.1. Do that for LibreOffice
5.2, though.

Change-Id: I8d6b380660859efa44c83c830734978d31d756a0
Reviewed-on: https://gerrit.libreoffice.org/22589
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-05-03 19:26:06 +00:00
Christian Lohmaier 98d48dad9e tdf#98416 fix curl's configure check for nss (missing -lnssutil3)
without -lnssutil3, the configure check for nss fails when using
internal nss:
configure:24028: checking for SSL_VersionRangeSet in -lnss3
[…]
…/UnpackedTarball/nss/dist/out/lib/libnss3.so: undefined reference to
`NSSUTIL_ArgParseModuleSpecEx@NSSUTIL_3.21'

causing curl to build without ssl support:
SSL support:  no (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} )

This makes gdrive and other remote file methods fail

Change-Id: I098feb10a760c2f80a474d9205d6f1e403477efd
2016-03-13 15:38:13 +01:00
Giuseppe Castagno 30b9c6a457 tdf#98416: Explicitly disable curl hardcoded CA certificate store
Add --without-ca-bundle --without-ca-path options to curl configure
in Linux, to explicitly disable the hardcoded curl CA certificate
store.

If the store is not disabled, curl configure will try to find
one suitable for the Linux distro on which it's being built, leading
to possible problems when building on a Linux distro type while
targeting another Linux distro type (e.g. building on Red Hat
derivative targeting Debian derivative).

Change-Id: Id1ddf1d74e33bc66e4f7187e376d7379f5c4f36a
Reviewed-on: https://gerrit.libreoffice.org/23141
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-03-11 10:56:40 +00:00
Noel Grandin ce43d0ae92 use consistent #define checks for the Windows platform
stage 1 of replacing usage of various checks for the windows platform
with the compiler-defined '_WIN32' macro

Change-Id: Iece73abdee530937e0737190b1aa97a46cd3075f
Reviewed-on: https://gerrit.libreoffice.org/22390
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-02-16 10:37:55 +00:00
Michael Stahl 65327d615b curl: upgrade to release 7.43.0
Change-Id: Ic16111f21625fc510e79bba8122eaa60662f7a59
2015-07-03 10:21:37 +02:00
Michael Stahl 9a9b116a1f curl: simplify SSL conditional
Change-Id: I210774ef7432257a3154e8981c0d53e9e63b2110
2015-06-02 15:50:41 +02:00
Michael Stahl 0b8b96ed51 curl: disable loads more random stuff we don't need
Change-Id: I0f4bcd73f9e0e7307ca0556a5f6990631eb9f2c5
2015-06-02 15:48:40 +02:00
Michael Stahl 805f12dd51 curl: sigh... *actually* disable rtmp support
Change-Id: I07ffe3a9ad6556fb5da3149a3cbe12ffcc5f56b4
2015-06-02 15:36:00 +02:00
Michael Stahl f4844a9abe curl: disable rtmp support
configure will add a dependency on librtmp.so.0 if the development
package happens to be installed.

Change-Id: I8500cc166d70763118e5054680f1f8c70942ba3f
2015-06-02 15:34:00 +02:00
Stephan Bergmann 45ca1bfc22 Fold URE: Linux ure/lib/* -> program/
The ../../../program/ links in the URE jar Class-Paths are a temporary kludge
(and juh.jar had lacked adaption for Mac OS X).

Change-Id: I2542d8a582866485dd61c05df3fc6b4b39a8403d
2014-11-28 11:57:28 +01:00
Tor Lillqvist fe25090e99 MAC_OS_X_VERSION_MIN_REQUIRED is always >= 1080 now
Change-Id: I40d03ab9acb67ab72b9047017452f069ce88fd4b
2014-10-16 11:22:13 +03:00
Stephan Bergmann 6bc81d4e78 Simplify some $ENABLE_DEBUG expressions
Change-Id: I9f60fd317f3a2995a182d51d06059bd994cf837c
2014-08-29 17:14:53 +02:00
Michael Stahl 548da05c53 curl: work around mysterious xcopy failure
When building with Win32 make, the xcopy at the end of the build fails
with "Invalid arguments" error, which is clearly wrong, since the
arguments are exactly the same as before, and furthermore curl is not
built with GNU make at all, but with nmake!  W-T-F?

Change-Id: Idc0b362202e1d14722573662bebeda0bc7070660
2014-06-09 17:05:51 +02:00
Thomas Arnhold 21236b9890 upgrade to curl-7.36.0
CERTINFO was included upstream:

commit f6c335d63f2da025a0a3efde1fe59e3bb7189b70
Author: Patrick Monnerat <pm@datasphere.ch>
Date:   Wed Oct 30 11:12:06 2013 +0100

    NSS: support for CERTINFO feature

Change-Id: I83de2fd863f9387b83b5ebcbec70cbe6df7681d4
Reviewed-on: https://gerrit.libreoffice.org/9307
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-11 20:48:04 +00:00
Michael Stahl 593ff64283 normalize values of MINGW_SHARED_GCCLIB/MINGW_SHARED_GXXLIB
Change-Id: I4f4cecd95f87b9d37fa1b1a270cf554d7707aaa2
2014-03-11 11:57:18 +01:00
Douglas Mencken 92ca6ef11d curl (bundled): fix logic breakout
use --with-nss only on platforms other than Mac OS X and iOS

(see commit 4e8ab21988)

Change-Id: Ie6cb35ea5f5db2d08f303f70d1559188912ba8e5
Reviewed-on: https://gerrit.libreoffice.org/8418
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-03-02 12:06:46 -06:00
Douglas Mencken 4e8ab21988 curl (bundled): with-darwinssl option is not compatible with OSX SDK 10.5
Change-Id: I3e8576926df875d73de10d5212adde2685c3a799
Reviewed-on: https://gerrit.libreoffice.org/8386
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-03-01 07:24:25 -06:00
Michael Stahl d729d169de normalize values of CROSS_COMPILING
Change-Id: I0cc43cef91e3fcd82a3558a16ab0afbd4d56b141
2014-02-27 18:09:01 +01:00
Michael Stahl e3abec3f07 fdo#74825: fix missing lcms2/libxslt/curl in installation sets
The assumption that all configure variables had been normalized to
TRUE/<empty> turned out not to hold; convert a bit more in that
direction.

(regression from 4af38b099c)

Change-Id: I2127c515e8a833a07c9b26ed9d693ce5a1853fe4
2014-02-12 09:53:08 +01:00
Stephan Bergmann 8804d3a63a Fake proper lib ID for macosx-change-install-names into external/curl
Change-Id: I4ce1123698ced152c076a4d0e4ad276be9a55bfe
2014-01-20 23:29:27 +01:00
Michael Stahl 7edb1f5f32 curl: we really want --with-darwinssl on Mac for libcmis
(regression from 2fd70b6bf7)

Change-Id: I9e1d4d17582011a067aecf47144bb70643fac806
2014-01-17 15:54:59 +01:00
Douglas Mencken 2fd70b6bf7 Get bundled curl to be used on OS X too
Don't force "yes" on Darwin.

Change-Id: I3a6a2ecdf15325d07fb22b9a6bb0da7b313036cb
Reviewed-on: https://gerrit.libreoffice.org/7197
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-17 11:55:32 +00:00
Cédric Bosdonnat 01d26477a1 Backported commit f6c335d63f2da025a0a3efde1fe59e3bb7189b70 from curl
This commit enables CURLINFO_CERTINFO when curl is built with NSS
support but not openssl.

Change-Id: I1482b34d83a0ae0f47d524a940bb90ed072363a6
2013-11-19 14:52:39 +01:00
Michael Stahl 460d6ce526 curl: use WNT native Schannel SSL/TLS implementation
This should give better OS integration for things like adding CAs.

Change-Id: I53fbfad402618e98d4116a0fecf0bf59e905e292
2013-11-19 00:07:22 +01:00
Michael Stahl 43d477b168 curl: actually use Makefile.vc10 instead of Makefile.vc9
... they are currently identical but it seems more appropriate.

Change-Id: I5ecd7209bc29f32a2f04299d35364a10fe381a35
2013-11-18 23:40:52 +01:00
Michael Stahl 461bdf0b4f curl: try to use Mac OS X native SSL/TLS implementation
This should give better OS integration for things like adding CAs.

Change-Id: I9578f7194f920a9ebc6c18696e12c8c2e2bb2d80
2013-11-18 23:22:23 +01:00