Commit Graph

234 Commits

Author SHA1 Message Date
Jan Beich 3ff7031e46 security/nss: update to 3.61
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.61_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_61_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2021-01-23 00:34:16 +00:00
Jan Beich ec1ab8f3ab security/nss: switch to upstream distfile 2021-01-04 20:47:58 +00:00
Jan Beich c471a0a1c1 security/nss: update to 3.60.1
- Temporarily patch-update due to missing distfile

Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.60.1_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_60_1_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2020-12-27 00:37:20 +00:00
Jan Beich 614e565a04 security/nss: update to 3.60
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.60_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_60_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2020-12-12 00:42:04 +00:00
Jan Beich 573d99c343 security/nss: update to 3.59
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.59_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_59_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2020-11-13 20:33:48 +00:00
Jan Beich 1782488d6e security/nss: unbreak non-gecko consumers after r552532
Pidgin failed with "nss: Handshake failed (-12251)" i.e.,
SSL_ERROR_RX_MALFORMED_CHANGE_CIPHER -12251 "SSL received a malformed Change Cipher Spec record."

PR:		250665
Submitted by:	yamagi@yamagi.org
2020-10-28 10:50:29 +00:00
Jan Beich 3c9a44d4ee security/nss: update to 3.58
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.58_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_58_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2020-10-17 00:48:24 +00:00
Piotr Kubaj 77e0ffe440 security/nss: fix build on powerpc64le
Change if condition to also catch anything after 64 (e.g. "le", as in powerpc64le). Currently ARCH needs to end with 64.

While here, disable VSX option for powerpc64le. All powerpc64le systems are VSX-compatible anyway.
2020-10-13 12:40:42 +00:00
Mark Linimon 3321b03c75 Attempt to fix build on powerpc64le.
Approved by:	portmgr (tier-2 blanket)
2020-09-27 20:38:43 +00:00
Jan Beich bdd1954dd8 security/nss: update to 3.57
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.57_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_57_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
Reported by:	Repology
2020-09-22 00:06:38 +00:00
Mikael Urankar d6c068736a security/nss: fix build on aarch64
Import upstream patch from https://bugzilla.mozilla.org/show_bug.cgi?id=1659256

PR:		249053
Reported by:	garga@
Approved by:	jbeich@
2020-09-09 13:36:33 +00:00
Jan Beich dbb634aca2 security/nss: update to 3.56
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.56_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_56_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
Reported by:	Repology
2020-08-24 21:12:15 +00:00
Jan Beich 2b68ad331a security/nss: update to 3.55
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.55_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_55_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
Reported by:	Repology
2020-07-25 00:55:30 +00:00
Jan Beich 46f488085a security/nss: update to 3.54
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.54_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_54_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
Reported by:	Repology
2020-06-28 01:24:22 +00:00
Jan Beich ee5ce128e3 security/nss: update to 3.53.1
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.53.1_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_53_1_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
Security:	CVE-2020-12402
2020-06-18 01:18:43 +00:00
Jan Beich a27c77a7ec security/nss: unbreak cross builds on -CURRENT
ld: error: unable to find library -lplc4
ld: error: unable to find library -lplds4
ld: error: unable to find library -lnspr4

PR:		246676
Submitted by:	Felix Palmen <felix@palmen-it.de>
2020-05-30 00:29:34 +00:00
Jan Beich 4d1bf0c861 security/nss: update to 3.53
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.53_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_53_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2020-05-30 00:21:01 +00:00
Jan Beich 1a31a73787 security/nss: update to 3.52.1
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.52.1_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_52_1_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2020-05-20 14:48:58 +00:00
Piotr Kubaj 328d951614 security/nss: back out my own changes for troubleshooting, disable VSX when VSX option is off
I had pre-build commented out. This is needed to actually fix build.
NSS_DISABLE_ALTIVEC doesn't actually disable AltiVec.
It only disables VSX, because NSS doesn't support AltiVec.

MFH:		2020Q2 (fix build blanket)
2020-05-15 22:26:53 +00:00
Piotr Kubaj 3a0f94aafe security/nss: fix build on powerpc and powerpc64 with gcc
PR:             246419
Approved by:    jbeich (maintainer)
MFH:            2020Q2 (fix build blanket)
2020-05-15 18:30:21 +00:00
Jan Beich 9cd0a807cf security/nss: update to 3.52
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.52_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_52_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2020-05-02 00:54:30 +00:00
Jan Beich 6b964c7190 security/nss: disable -Werror due to -Wall mine
blinit.c:122:24: error: unused variable 'getauxval' [-Werror,-Wunused-variable]
static unsigned long (*getauxval)(unsigned long) = NULL;
                       ^

pqg.c:345:16: error: comparison of constant 18446744073709551615 with expression of type 'unsigned long' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
    if (addend < MP_DIGIT_MAX) {
        ~~~~~~ ^ ~~~~~~~~~~~~

PR:		242523
2020-05-01 19:45:36 +00:00
Piotr Kubaj cce0c54f06 security/nss: go back to using clang on powerpc64 where available
head r359981 and r359994 reverted commits that caused clang to run in infinite loop, allocating all available memory and crashing the system.
2020-04-16 14:05:43 +00:00
Jan Beich 6df275574b security/nss: update to 3.51.1
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.51.1_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_51_1_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2020-04-08 23:10:57 +00:00
Piotr Kubaj acb3179be5 security/nss: switch unconditionally to ports GCC on powerpc64
After upgrade to clang10, building gcm.c results in allocating all available memory and not building the file.
2020-03-12 18:29:13 +00:00
Jan Beich 48cdc8ba4d security/nss: update to 3.51
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.51_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_51_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2020-03-07 00:57:58 +00:00
Piotr Kubaj c49461ea0a security/nss: fix build with GCC architectures
-Werror=unused-function causes:
verified/kremlin/kremlib/dist/minimal/FStar_UInt128.h:82:37: error: 'FStar_UInt128_mul32' declared 'static' but never defined [-Werror=unused-function]
   82 | inline static FStar_UInt128_uint128 FStar_UInt128_mul32(uint64_t x, uint32_t y);

Add -Wno-error=unused-function to fix build.

Approved by:	portmgr (ports tree compliance)
MFH:		2020Q1 (ports tree compliance)
2020-02-13 14:17:23 +00:00
Jan Beich c9631858d5 security/nss: unbreak on armv6 after r524147
In file included from ../../lib/freebl/gcm-arm32-neon.c:16:
/usr/lib/clang/8.0.1/include/arm_neon.h:28:2: error: "NEON support not enabled"
 #error "NEON support not enabled"
  ^

PR:		243734
Reported by:	garga
Submitted by:	mikael
2020-02-13 00:43:16 +00:00
Jan Beich 7f552c8c12 security/nss: disable AltiVec on 32-bit powerpc
Crypto acceleration is only implemented for powerpc64 but build flags
leak to other powerpc targets. Disable via a variable introduced in 3.50.

PR:		242523
Reported by:	many
2020-02-10 23:51:09 +00:00
Jan Beich 4863022e0c security/nss: update to 3.50
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.50_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_50_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
Reported by:	Repology
2020-02-10 22:32:59 +00:00
Li-Wen Hsu ae0ac48e94 Put MAKE_JOBS_UNSAFE=yes back, there is report it still fails
Reported by:	ajtiM <starikarp@dismail.de> on freebsd-ports@
2020-02-07 17:00:10 +00:00
Li-Wen Hsu 54d9c97d42 Remove special setting of USE_LDCONFIG as now it installs lib to common path
While here:
- Pet portlint more
- Remove MAKE_JOBS_UNSAFE as it builds fine

Submitted by:	tobik, sunpoet
2020-02-07 15:28:25 +00:00
Li-Wen Hsu 76606c8e0b Reduce the duplicated 'nss' in include and lib path
From jbeich:
This appeared after r78824 which failed to adjust do-install.  Arch, Debian,
Gentoo, OpenBSD use include/nss/, Fedora uses include/nss3/, NetBSD/PkgSrc
uses include/nss/nss/.

PR:		243835
Reviewed by:	jbeich
Differential Revision:	https://reviews.freebsd.org/D23424
2020-02-07 13:32:00 +00:00
Li-Wen Hsu c0737c1e4a Update WWW
Suggested by:	jbeich
Approved by:	portmgr blanket
2020-02-05 09:34:09 +00:00
Jan Beich 6dfc3f4a81 security/nss: update to 3.49.2
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.49.2_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_49_2_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
Reported by:	Repology
2020-01-26 00:20:01 +00:00
Jan Beich c8b82be5a9 security/nss: update arm* patches to upstream version 2020-01-14 18:22:11 +00:00
Jan Beich e4481f089d security/nss: update to 3.49.1
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.49.1_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_49_1_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
Reported by:	Repology
2020-01-14 15:26:43 +00:00
Jan Beich 1b0cfc8773 security/nss: update to 3.49
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.49_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_49_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
Reported by:	Repology
2020-01-08 22:51:12 +00:00
Alexey Dokuchaev c51626bc07 Drop build dependency on `archivers/zip': it was added 18 years ago in
r51805 upon the port's inception, but these days does not seem to be
used or needed by the port; build logs with and without it look identical.

Silence from:	gecko
2020-01-03 07:14:35 +00:00
Piotr Kubaj 6aca4f31c0 security/nss: fix build on powerpc platforms
NSS 3.48 broke powerpc by using getauxval, which FreeBSD doesn't have. GCC9 is also required because of usage of VSX, which needs to be manually added for some files.

PR:		242521
Approved by:	jbeich (maintainer)
2019-12-11 18:57:48 +00:00
Jan Beich 7f7b249f45 security/nss: update to 3.48
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.48_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_48_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
Reported by:	Repology
2019-12-08 00:51:48 +00:00
Jan Beich 0d4bb2247e security/nss: unbreak aarch64 on -CURRENT
blinit.c:159:24: error: expected readable system register
        id_aa64isar0 = READ_SPECIALREG(ID_AA64ISAR0_EL1);
                       ^
/usr/include/machine/armreg.h:61:19: note: expanded from macro 'READ_SPECIALREG'
        __asm __volatile("mrs   %0, " __STRING(reg) : "=&r" (_val));    \
                         ^
<inline asm>:1:10: note: instantiated into assembly here
        mrs     x8, (((3) << 19) | ((0) << 16) | ((0) << 12) | ((6) << 8) | ((0) << 5))
                    ^
blinit.c:160:28: error: implicit declaration of function 'ID_AA64ISAR0_AES' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        arm_aes_support_ = ID_AA64ISAR0_AES(id_aa64isar0) >= ID_AA64ISAR0_AES_BASE && disable_hw_aes == NULL;
                           ^
blinit.c:162:29: error: implicit declaration of function 'ID_AA64ISAR0_SHA1' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        arm_sha1_support_ = ID_AA64ISAR0_SHA1(id_aa64isar0) == ID_AA64ISAR0_SHA1_BASE;
                            ^
blinit.c:162:29: note: did you mean 'ID_AA64ISAR0_AES'?
blinit.c:160:28: note: 'ID_AA64ISAR0_AES' declared here
        arm_aes_support_ = ID_AA64ISAR0_AES(id_aa64isar0) >= ID_AA64ISAR0_AES_BASE && disable_hw_aes == NULL;
                           ^
blinit.c:163:29: error: implicit declaration of function 'ID_AA64ISAR0_SHA2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        arm_sha2_support_ = ID_AA64ISAR0_SHA2(id_aa64isar0) >= ID_AA64ISAR0_SHA2_BASE;
                            ^
blinit.c:163:29: note: did you mean 'ID_AA64ISAR0_SHA1'?
blinit.c:162:29: note: 'ID_AA64ISAR0_SHA1' declared here
        arm_sha1_support_ = ID_AA64ISAR0_SHA1(id_aa64isar0) == ID_AA64ISAR0_SHA1_BASE;
                            ^

PR:		242104
Reported by:	pkg-fallout
Submitted by:	Mikaël Urankar
2019-11-24 00:51:28 +00:00
Jan Beich dddfee3293 security/nss: update to 3.47.1
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.47.1_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_47_1_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2019-11-21 00:54:23 +00:00
Jan Beich 18cb97534e security/nss: update to 3.47
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.47_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_47_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2019-10-19 11:37:28 +00:00
Jan Beich 56200dac86 security/nss: update to 3.46.1
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.46.1_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_46_1_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2019-10-03 00:59:12 +00:00
Christian Weisgerber 804ef6e40e Run regression tests with bash since some test scripts unfortunately
rely on bash features.

PR:		240686
Reviewed by:	jbeich
2019-09-24 13:45:08 +00:00
Jan Beich d7b9bf2b8b security/nss: update to 3.46
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.46_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_46_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2019-08-31 00:50:46 +00:00
Jan Beich 79817c365a security/nss: detect AES/SHA2 when PMULL/SHA512 is available on aarch64
Submitted by:	Greg V <greg@unrelenting.technology>
2019-08-29 05:06:51 +00:00
Jan Beich 79c864ca36 security/nss: enable SIMD on aarch64 and 12.0+ armv6
GCM can benefit from PMULL while ChaCha20 from NEON.
Not tested on real hardware.
2019-08-23 21:55:48 +00:00
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00