summaryrefslogtreecommitdiff
path: root/external/nss
AgeCommit message (Collapse)Author
2019-01-29Disable NSS GTESTS also for WindowsJulien Nabet
Following https://cgit.freedesktop.org/libreoffice/core/commit/?id=02623af4f5e0049ec5988df8ff6c7ff0f32f3fb1 See details here: http://document-foundation-mail-archive.969070.n3.nabble.com/fatal-error-LNK1561-on-nss-Visual-Studio-2017-td4256601.html Change-Id: I75f2c8a5409e484a8a5a12a6f12d5c20b244d2b2 Reviewed-on: https://gerrit.libreoffice.org/67092 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2019-01-27Could not determine MSC version with French UIJulien Nabet
Fix regexp for cl.exe This command returns some special characters preventing regexp to work. For more details, see: http://document-foundation-mail-archive.969070.n3.nabble.com/Could-not-determine-MSC-version-Visual-Studio-2017-td4256538.html Change-Id: I734dcd533b0f38430d1be8852f1e4f721221e580 Reviewed-on: https://gerrit.libreoffice.org/66959 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-01-04nss: disable gtestsMiklos Vajna
We don't run them and building them takes a while, especially with -j1. Old time: 2m35,809s New time: 1m12,858s (With ccache disabled.) I.e. 47% of baseline. Change-Id: I3e2d75b27be3c5995b5e6db9812c9f82d33f42fd Reviewed-on: https://gerrit.libreoffice.org/65843 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2018-11-29Rename Mac OS X to official name macOS in comments and documentationBartosz Kosiorek
Change-Id: I651b7f202fa52ff5f5357a11aa72c43eb7dc7f95 Reviewed-on: https://gerrit.libreoffice.org/64102 Tested-by: Jenkins Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
2018-11-20Revert "Fix NSS parallel build"Jan-Marek Glogowski
For whatever reason this now fails on Windows for multiple users (including myself). Doesn't look like an easy fix is possible, so this is reverted until I find some more time to look into it (or give up on it). This reverts commit baf0d6d65da8314d718380bb5750ccd29f3d9a08. Change-Id: I432637131ba8ac8be614496bd6da0e157372ae94 Reviewed-on: https://gerrit.libreoffice.org/63664 Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de> Tested-by: Jan-Marek Glogowski <glogow@fbihome.de>
2018-11-20Fix NSS parallel buildJan-Marek Glogowski
This is just a minimal solution and obviously not fully parallel. We still have to walk the tree twice: 1. copy all needed headers to dist (export export_private) 2. the parallel build (libs) The fixes are: * Add a few rm and @$(MAKE_OBJDIR) calls to various targets * Serialize minimal steps in nss_build_all => Build libs of nss/lib and nss/cmd/lib before all other => drop the minimal all target * Make $(SHARED_LIBRARY) depend on $(LIBRARY), otherwise dll lib creation on Windows builds a static lib, instead of the dll one * Drop all "export:: private_export" rules. We run this before the build and duplicate targets break the header install Change-Id: I1c35985c90d2d63990e04a0d2bb9d8ae921a2182 Reviewed-on: https://gerrit.libreoffice.org/62011 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2018-11-01gbuild: rename value OS=IOS to OS=iOSMichael Stahl
This gets rid of the horrible hack in gbuild.mk to accomodate the case-incorrect iOS platform makefiles that cannot be renamed without upsetting git on file systems that sadly lack the case sensitivity feature. Keep the macro defined to IOS though. Change-Id: I1022bfef4900da00e75fc1ccce786b20f8673234 Reviewed-on: https://gerrit.libreoffice.org/62705 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2018-08-08nss: remove inline patch message from nss-android.patch.1Michael Stahl
forgot to remove this in the 3.38 upgrade Change-Id: Idaa9fd8e8036f305ec64c4a474d904d72daef0e8 Reviewed-on: https://gerrit.libreoffice.org/58721 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2018-08-08nss: upgrade to release 3.38Michael Stahl
Fixes CVE-2018-0495 and "the ASN.1 code". Remove one hunk of nss-android.patch.1 that should be obsolete with the current Android toolchain baseline. Change-Id: I5516edec17b72f53acd2749e8840805eead077bc Reviewed-on: https://gerrit.libreoffice.org/58697 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
2018-01-18android: use unified headers and llvm-c++ STL (x86) with NDK 16Christian Lohmaier
gnustl (and others) are to be removed in future versions of the ndk also bump gradle and build-tools to current versions along with it arm unfortunately crashes with llvm-c++, so keep with gnustl for now/fix that later Change-Id: Ic794c3293b599b77ec48096bf3283a99c09cbb79 Reviewed-on: https://gerrit.libreoffice.org/45163 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2017-10-28use predefined workdir pathDavid Tardon
Change-Id: Ia14aaba92e5d36064bc6a77dbc63463a833d8745 Reviewed-on: https://gerrit.libreoffice.org/43969 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2017-09-18Adapt external/nss/asan.patch.1Stephan Bergmann
...to a52ca01f6ae27a86cae6e82b3c5ae6601f3ea398 "nss: no rpath/origin flag for Android (unused DT entry/DT_FLAGS warnings)" Change-Id: I60e4ba1af572aa702a355e26dec58142209f8655
2017-09-16nss: no rpath/origin flag for Android (unused DT entry/DT_FLAGS warnings)Christian Lohmaier
Change-Id: I15d322f7361a26060ea37a720f85890e17630ebe Reviewed-on: https://gerrit.libreoffice.org/42336 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2017-09-14Silence clang-cl -Wpragma-pack in external/nssStephan Bergmann
Change-Id: I08672659e7ff1e7ddf3f2185faba5aeab3fd2239
2017-09-07fix nss build for android x86 and remove duplicated configure callChristian Lohmaier
remove hardcoded arm flags for android, and instead of patching the sources, rather specify the desired values on commandline to override nss' makefile defaults where possible. Also since the build stage runs nspr configure by itself in a dedicated outdir, the separate configure step was removed (for all systems). Change-Id: I586c605615cc2d45b757497395a98c53dd1beb1d Reviewed-on: https://gerrit.libreoffice.org/42070 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2017-08-30Update external/nss/asan.patch.1Stephan Bergmann
...after c6df07f905cd9562132b06e44f90b0479b250f7a "nss: Upgrade to release 3.31.1 and update patches" Change-Id: I0f18659ee65d9b917377ef75e94f3b9fb8ece58e
2017-08-29nss: Upgrade to release 3.31.1 and update patchesGautam Prajapati
This commit updates the NSS to release 3.31.1 and NSPR to 4.15. It also updates the external/nss/nss.patch and external/nss/nss-android.patch to incorporate the NSS source changes. Change-Id: Icdd933b67e717f8d91622cd5f6001e34e261b746 Reviewed-on: https://gerrit.libreoffice.org/41636 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-08-15Fix and enable NSS build for AndroidGautam Prajapati
Change-Id: Ifa8e01542ed0e7d72bfc9684f36b6dee9e185df4 Reviewed-on: https://gerrit.libreoffice.org/40645 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-05-30nss: remove obsolete nss-winXP-sdk.patch.1Michael Stahl
Change-Id: I044be3b53134081bcbdbfd6fd252d6851d3dba41
2017-04-21nss: try to remove nss.windowbuild.patch.0Michael Stahl
It's not obvious to me what problem this solves. Maybe the problem no longer exsists in the new upstream release? Change-Id: I16762e0024536afb821eac70c6ba3929d5b8927a Reviewed-on: https://gerrit.libreoffice.org/36798 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2017-04-21nss: upgrade to release 3.29.5Michael Stahl
- fixes CVE-2017-5461 and CVE-2017-5462 - drop ubsan-alignment.patch.0, there is apparently now some NO_SANITIZE_ALIGNMENT macro upstream to get this effect - drop some hunks to prevent hard-coding CC/CCC vars, upstream now respects environment vars (but doesn't quote them...) - drop first hunk of ubsan.patch.0, fixed upstream - drop hunk for gtest-internal.h, header looks much newer anyway Change-Id: I5c484c02c1235e185af1ef5166b069303d3378e1 Reviewed-on: https://gerrit.libreoffice.org/36756 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2017-02-10Remove MinGW supportStephan Bergmann
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>
2016-11-17chmod -xTor Lillqvist
Change-Id: Ie07ef2f9e9f6d0b31b513afa913b79d9c641e4f1
2016-10-26Linux: Build NSS in debug mode only in '--enable-dbgutil' mode.Giuseppe Castagno
With this commit, NSS debug mode is enabled only if you compile with --enable-dbgutil using ./autogen.sh command. Only for the Linux platform builds. Change-Id: Ia8626f36692fd38e8b1dbd774e4bc0ccedc59072 Reviewed-on: https://gerrit.libreoffice.org/29781 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-10-23cond. build is already handled in Module_external.mkDavid Tardon
Change-Id: I5efe3bafc4f0b97578a75dc1f43e6c130a93bc4a
2016-10-11external/nss: Adapt ASan/UBSan-specific patches to nss 3.27Stephan Bergmann
Change-Id: Ic96a57a1f43f7aae4e0733d2e65edd843b827a54
2016-10-10bump nss to 3.27Caolán McNamara
Notable changes in NSS 3.24: * Add a shared library (libfreeblpriv3) on Linux platforms that define FREEBL_LOWHASH Change-Id: If99ee77bea40796cc56944724291a83068ff8198 Reviewed-on: https://gerrit.libreoffice.org/27304 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-08-22Silence -fsanitize=array-bounds in external/nssStephan Bergmann
...by making lgdbDataStr::names a "by-convention flexible array member". Otherwise, e.g. CppunitTest_xmlsecurity_signing_test fails with "index 30 out of bounds for type 'unsigned char [6]'". Change-Id: Ie5bf4199b8b49090a987143d355754a69512e309
2016-08-22Remove noise from patch fileStephan Bergmann
Change-Id: I5b09280dbd5bda1751aa44b4ef6d5e3b8d88ea2c
2016-07-19Revert "bump nss to 3.25"Caolán McNamara
This reverts commit f10b31c2fe16bfcbb7cb278fdec65deacbe06219.
2016-07-19bump nss to 3.25Caolán McNamara
Change-Id: If99ee77bea40796cc56944724291a83068ff8198
2016-07-04Avoid -fsanitize=alignment in external/nssStephan Bergmann
...in a way that might be a performance issue, so include the patch only conditionally. Change-Id: I483a77d0d199c2dee00139fdd4fa41223192289c
2016-04-13switch off 'warning treated as error' in external/nss in Win32Oliver Specht
This prevents errors from ms sdk sal_supp.h: warning '__useHeader': macro redefinition Change-Id: I122bbf6171c73d77970a549353dca67dd26d0300 Reviewed-on: https://gerrit.libreoffice.org/24055 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2016-04-05Allow NSS to build under cp950 in windows.Mark Hung
Change-Id: I4a5ef736ad714dd3b1beb4054e2347973db70e39 Reviewed-on: https://gerrit.libreoffice.org/23704 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-04-01nss: remove nss-pem.patchMichael Stahl
It looks like commit 30b9c6a457de61f3c94431ecc75716f866c3379e made this obsolete: by default, curl's configure will pick some OpenSSL certificate database in /etc to use, which is in PEM format. But since every distribution uses a different path in /etc for that, it will work only on the same distribution as the build host anyway, which makes it mostly useless in practice. So we don't need our NSS to be able to read PEM format now. Speaking of which, PEM support was only required for Linux builds anyway, not for WNT/Mac builds. Change-Id: Ib9bc6ec0b7d71c14e9a53454e6efed038072e913 Reviewed-on: https://gerrit.libreoffice.org/23435 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-03-15fix nss build when targeting windows XP (using 7.1A SDK)Christian Lohmaier
otherwise build fails because of macro redefinitions warnings (that are now fatal because of warnings=errors) Change-Id: I0a15083d9ffd032c48ab491695319309f3053fb7
2016-03-05Fix nss on MSVC 14.0 in debug modeDavid Ostrovsky
outdir doesn't seem to be created. Use current directory for pdb files as the obj files are already stored in the current directory. Change-Id: I41dd65714d314cd374cc5de073d48f1a58b18c56 Reviewed-on: https://gerrit.libreoffice.org/22888 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2016-03-05nss: Fix pointer truncation from 'char *' to 'long'David Ostrovsky
Change-Id: Ie1659c62cbf77f8b685fdf7d79cd62336fa99005 Reviewed-on: https://gerrit.libreoffice.org/22916 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2016-03-04external/nss: -Werror,-Wundef (__GNUC__ vs. clang-cl)Stephan Bergmann
Change-Id: I4641767451ac1ec9f580d24bafa57a11e2f99ac3
2016-02-28Bump nss to 3.22.1 and nspr to 4.12David Ostrovsky
It seems like nss has activated -Werror, even though the code is not warning free: [1]. This applies also to the additional patches that would need to be patched to be a warning free patch, endless recursion. To avoid messing around with something like that: [2], we disable -Werror option for now. Also note, that [2] doesn't fix all warnings, but only part of them so that we let with unsolved non-trivially to fix warnings on different supported compilers if we would choose the warning-free-compilation-path. [1] https://groups.google.com/d/topic/mozilla.dev.tech.crypto/TgnF3tIMxJ0/discussion [2] https://git.fedorahosted.org/cgit/nss-pem.git/commit/?id=ec2b9a90623b1ec5adb6ebe8d6651b35854786ec Change-Id: I762c03acede6c4eac715d3b0589061eeabbcc7c2 Reviewed-on: https://gerrit.libreoffice.org/22650 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Ostrovsky <david@ostrovsky.org>
2016-02-25nss: remove obvious cruft from READMEMichael Stahl
Change-Id: If99babda104a35563208e89d86bf10bcff8f22f4
2015-12-02external/nss: work around missing clang-cl #pragma supportStephan Bergmann
Change-Id: I068ff0ef2252409689c0c376ec41bdd97b4567cc
2015-12-01Fix patch file attributesStephan Bergmann
Change-Id: I4f86aba24f2dad14f43effd6e0b291f8f58f1712
2015-11-12Generalize COM_GCC_IS_CLANG -> COM_IS_CLANGStephan Bergmann
...in anticipation of building with clang-cl.exe on Windows Change-Id: I1d723c9d3b5ca8a2bc6b27ef0189a7b053581398 Reviewed-on: https://gerrit.libreoffice.org/19928 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2015-09-02Fix nss on MSVC 14.0David Ostrovsky
Change-Id: I8c2f18a509ae6686af4ede5b0daa8291d164c9fd Reviewed-on: https://gerrit.libreoffice.org/18211 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-07-03nss: upgrade to release 3.19.2Michael Stahl
- drop nss-linux-x86-patch.0: this was actually patching OS/2-specific code so is evidently obsolete - drop nspr-build-config.patch: there does not appear to be any justification why this huge patch exists at all, so the only reasonable thing to do is to drop it - nss_macosx.patch: drop several hunks relevant only to unuspported MacOSX/PPC platform Change-Id: Id55fcb8eaa637c10a42203f1897480df8a6ec0fa
2015-06-13TyposJulien Nabet
Change-Id: I21c352a63d668c174eef212dbfbe6346c678ce4d
2015-06-12external/nss: -fsanitize=nonnull-attributeStephan Bergmann
Change-Id: Ic3a20f56250d99a347df5deaf785800a2f96e470
2015-05-19Update Apache Bugzilla’s URLAdolfo Jayme Barrientos
Change-Id: I6ef4ae530b7fb4e615100803ae6e3972d9b4545f
2014-11-13Work around InterlockedExchange not exported from kernel32.dll on x64Stephan Bergmann
...as reported in a comment on <http://msdn.microsoft.com/en-us/library/windows/ desktop/ms683590%28v=vs.85%29.aspx> "InterlockedExchange function" Change-Id: Ie71edd7a5ce8ff3c922d607e174a4c4d43c08c1d