Commit graph

95 commits

Author SHA1 Message Date
Piotr Kubaj
192a67a0d7 security/nss: fix build on powerpc64le
LLVM's integrated assembler can't build ppc-gcm.s:
ppc-gcm.s:642:24: error: invalid memory operand
    std          31,-8(SP);

Use as from binutils on powerpc64le.

While here correct the architecture check to also check for Linux's ppc64 - similar to the OS check in the same patch.
2021-05-15 02:45:46 +00:00
Jan Beich
27411fe284 security/nss: update to 3.65
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.65_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_65_RTM
2021-05-14 17:35:12 +00:00
Piotr Kubaj
2eaa6b5910 security/nss: fix build on powerpc64le
Error:
C_Initialize failed: 0x00000030, CKR_DEVICE_ERROR                    
NSPR error code: -5977: Failure to load dynamic library
Initiailzing softoken failed: 0x00000030, CKR_DEVICE_ERROR                    
NSPR error code: -5977: Failure to load dynamic library

While here also correct option description after introducing proper VSX option in a66c711523
2021-04-17 11:46:51 +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
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
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
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
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
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
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
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
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
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
Jan Beich
c8b82be5a9 security/nss: update arm* patches to upstream version 2020-01-14 18:22:11 +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
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
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
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
Jan Beich
95de53b772 security/nss: update to 3.44.1
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.44.1_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_44_1_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2019-06-24 21:44:48 +00:00
Jan Beich
288d75294d security/nss: unbreak on powerpc64 after r501212
crypto_primitives.c: In function 'swap8b':
crypto_primitives.c:31: error: 'SHA_MASK8' undeclared (first use in this
function)
crypto_primitives.c:31: error: (Each undeclared identifier is reported only
once
crypto_primitives.c:31: error: for each function it appears in.)
crypto_primitives.c:32: error: 'SHA_MASK16' undeclared (first use in this
function)

PR:		237841
Reported by:	jhibbits
2019-05-11 23:20:57 +00:00
Jan Beich
2847e9a23a security/nss: update to 3.40
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.40_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_40_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2018-10-24 16:45:28 +00:00
Jan Beich
36151efcba security/nss: unbreak on powerpc64 after r405494
mpi/mpcpucache.c:728:23: error: incompatible pointer types passing 'int *' to parameter of type 'size_t *' (aka 'unsigned long *') [-Werror,-Wincompatible-pointer-types]
            &cacheline_size, &clen, NULL, 0) < 0 || !cacheline_size)
                             ^~~~~
/usr/include/sys/sysctl.h:1062:48: note: passing argument to parameter here
int     sysctl(const int *, u_int, void *, size_t *, const void *, size_t);
                                                   ^
PR:		147696 (typo origin)
Reported by:	Mark Millard
2018-10-12 11:50:45 +00:00
Jan Beich
4cec240f93 security/nss: sort system db(3) patch per "make makepatch" 2018-09-09 18:27:56 +00:00
Jan Beich
57605e2424 security/nss: regen patches
Only BSD patch(1) warns about the following:
No such line 52 in input file, ignoring
No such line -11 in input file, ignoring
No such line 118 in input file, ignoring

https://svnweb.freebsd.org/changeset/base/253689

Reported by:	sunpoet
2018-09-09 18:27:42 +00:00
Jan Beich
13b1398607 security/nss: update to 3.37.3
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.37.3_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_37_3_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2018-06-06 19:01:51 +00:00
Jan Beich
cf26e1eece security/nss: switch r469336 to upstream fix 2018-05-30 05:57:38 +00:00
Jan Beich
9f6655b0e0 security/nss: unbreak armv6 after r469333
cd FreeBSD11.1_OPT.OBJ ; sh 'nss/cmd/shlibsign/.'/sign.sh 'nss/cmd/shlibsign/../../../dist/FreeBSD11.1_OPT.OBJ' \
'nss/cmd/shlibsign/FreeBSD11.1_OPT.OBJ' FreeBSD \
'nss/cmd/shlibsign/../../../dist/FreeBSD11.1_OPT.OBJ/lib' 'nss/cmd/shlibsign/../../../dist/FreeBSD11.1_OPT.OBJ/lib/libsoftokn3.so'
nss/cmd/shlibsign/FreeBSD11.1_OPT.OBJ/shlibsign -v -i nss/cmd/shlibsign/../../../dist/FreeBSD11.1_OPT.OBJ/lib/libsoftokn3.so
C_Initialize failed: 0x00000030, CKR_DEVICE_ERROR
NSPR error code: -5977: Failure to load dynamic library
Initiailzing softoken failed: 0x00000030, CKR_DEVICE_ERROR
NSPR error code: -5977: Failure to load dynamic library
moduleSpec configdir='' certPrefix='' keyPrefix='' secmod='' flags=noCertDB, noModDB
gmake[3]: *** [Makefile:92: ../../../dist/FreeBSD11.1_OPT.OBJ/lib/libsoftokn3.chk] Error 1
2018-05-07 21:59:56 +00:00
Jan Beich
e7b13b6b00 security/nss: update to 3.36.1
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.36.1_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_36_1_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
2018-04-10 00:11:39 +00:00
Jan Beich
9b6544ce6c security/nss: update to 3.36
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.36_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_36_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
MFH:		2018Q1 (required by Firefox 60)
2018-03-06 07:49:21 +00:00
Jan Beich
c89fd0e480 security/nss: unbreak on aarch64 after r459458
PR:		225326
Submitted by:	mikael.urankar@gmail.com
Obtained from:	upstream (NSS 3.36)
MFH:		2018Q1
2018-01-29 11:11:31 +00:00
Jan Beich
87ce19696c security/nss: update to 3.35
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.35_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_35_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
MFH:		2018Q1
2018-01-19 18:49:03 +00:00
Jan Beich
02c0d6d1f3 security/nss: update to 3.34
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.34_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_34_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
MFH:		2017Q4
2017-11-14 21:56:56 +00:00
Jan Beich
10e9b910f2 security/nss: fix crash on pre-SSE2 hardware
PR:		221466
Obtained from:	upstream
2017-10-04 07:51:04 +00:00
Jan Beich
c8612e85a1 security/nss: update to 3.33
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.33_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_33_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
MFH:		2017Q3
2017-09-20 13:44:30 +00:00
Jan Beich
2874de1620 security/nss: update to 3.31
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.31_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_31_RTM
ABI:		https://abi-laboratory.pro/tracker/timeline/nss/
MFH:		2017Q2
2017-06-11 18:20:07 +00:00
Jan Beich
09c5ed08f4 security/nss: update to 3.29
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.29_release_notes
Changes:	https://hg.mozilla.org/projects/nss/shortlog/NSS_3_29_RTM
MFH:		2017Q1
2017-02-15 09:48:00 +00:00
Jan Beich
86410cdb1c security/nss: stop excessive getpid(2) calls
FreeBSD implements pthread_atfork(3) and (as required by a nearby
code comment) deregisters callbacks located in dlclose(3)ed shared
objects. Take advantage of it instead of looping with getpid(2).

Submitted by:	cem
MFH:		2017Q1
2017-02-14 21:49:25 +00:00
Jan Beich
f5f47a5a4e devel/nspr, security/nss: drop version from SONAME
No other downstream appends synthetic library version, and doing so
causes underlinking due to fragile build system (see below). Not to
mention being unable to swap out bundled libs from upstream builds.

  $ cc -lplds4 -L/usr/local/lib
  /usr/lib/crt1.o: In function `_start1':
  crt1_c.c:(.text+0xa6): undefined reference to `main'
  /usr/local/lib/libplds4.so: undefined reference to `pthread_set_name_np'
  /usr/local/lib/libplds4.so: undefined reference to `pthread_create'
  /usr/local/lib/libplds4.so: undefined reference to `pthread_condattr_init'
  /usr/local/lib/libplds4.so: undefined reference to `pthread_setschedparam'
  /usr/local/lib/libplds4.so: undefined reference to `pthread_getschedparam'

PR:		213144
Exp-run by:	antoine
2016-10-09 12:10:02 +00:00
Jan Beich
fabce29e33 security/nss: update to 3.27
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.27_release_notes
2016-09-28 08:23:39 +00:00
Jan Beich
1b1297432a security/nss: unbreak build on armv6
pqg.c:339: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) {
        ~~~~~~ ^ ~~~~~~~~~~~~
1 error generated.

PR:		209482
Submitted by:	mikael.urankar@gmail.com (based on)
2016-09-25 18:03:04 +00:00
Jan Beich
f2012316f6 security/nss: update to 3.24
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.24_release_notes
2016-05-20 18:38:50 +00:00
Jan Beich
dceef331b5 security/nss: refresh patch with version approved upstream 2016-03-10 00:18:31 +00:00
Jan Beich
8024bdf43a security/nss: update to 3.23
Changes:	https://developer.mozilla.org/docs/Mozilla/Projects/NSS/NSS_3.23_release_notes
2016-03-03 12:42:49 +00:00
Jan Beich
6d72e23ca7 security/nss: unbreak build on 9.x after r409978
Drop -ansi as it often breaks build e.g., C++-style comments in C code.

secasn1d.c: In function 'sec_asn1d_parse_leaf':
secasn1d.c:1611: error: expected expression before '/' token
secasn1d.c:1622: error: expected expression before '/' token
secasn1d.c:1629: error: expected expression before '/' token
secasn1d.c:1621: warning: unused variable 'len_in_bits'

Reported by:	pkg-fallout [1]
Pointy hat:	jbeich
2016-03-03 02:53:58 +00:00