git: fdbd7d5e2871 - main - security/nss: fix on arm
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 02 Sep 2026 19:28:03 UTC
The branch main has been updated by cmt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fdbd7d5e2871a8dee897fb4c21d3d0bc0b32f6a9
commit fdbd7d5e2871a8dee897fb4c21d3d0bc0b32f6a9
Author: Christoph Moench-Tegeder <cmt@FreeBSD.org>
AuthorDate: 2026-09-02 19:26:27 +0000
Commit: Christoph Moench-Tegeder <cmt@FreeBSD.org>
CommitDate: 2026-09-02 19:26:27 +0000
security/nss: fix on arm
PR: 298103
Submitted by: dch@
Differential Revision: https://reviews.freebsd.org/D59313
---
security/nss/Makefile | 1 +
security/nss/files/patch-coreconf_FreeBSD.mk | 14 +++++++++++++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/security/nss/Makefile b/security/nss/Makefile
index 3cd12ade3d90..216701f19ac3 100644
--- a/security/nss/Makefile
+++ b/security/nss/Makefile
@@ -1,4 +1,5 @@
PORTNAME= nss
+PORTREVISION= 1
DISTVERSION= 3.128
CATEGORIES= security
MASTER_SITES= MOZILLA/security/${PORTNAME}/releases/${DISTNAME:tu:C/[-.]/_/g}_RTM/src
diff --git a/security/nss/files/patch-coreconf_FreeBSD.mk b/security/nss/files/patch-coreconf_FreeBSD.mk
index 73ddd22aeb81..4dcdac86b856 100644
--- a/security/nss/files/patch-coreconf_FreeBSD.mk
+++ b/security/nss/files/patch-coreconf_FreeBSD.mk
@@ -13,7 +13,7 @@
RANLIB = ranlib
CPU_ARCH = $(OS_TEST)
-@@ -20,7 +20,17 @@ endif
+@@ -20,7 +20,29 @@ endif
ifeq ($(CPU_ARCH),amd64)
CPU_ARCH = x86_64
endif
@@ -27,6 +27,18 @@
+ifneq (,$(findstring 64,$(OS_TEST)))
+USE_64 = 1
+endif
++
++# Test toolchain for endianness copying what coreconf/Linux.mk does to avoid
++# ld: error: duplicate symbol: platform_ghash_support
++# https://github.com/mozilla/nss/blob/NSS_3_128_RTM/coreconf/Linux.mk#L191-L197
++# https://phabricator.services.mozilla.com/D303870
++# https://github.com/mozilla/nss/commit/e57221034e01373bd1b6a5cd654796b1ec89a915
++ENDIANNESS := $(shell echo | $(CC) -dM -E - | grep __BYTE_ORDER__)
++ifeq ($(findstring __ORDER_LITTLE_ENDIAN__,$(ENDIANNESS)),__ORDER_LITTLE_ENDIAN__)
++ LITTLE_ENDIAN := 1
++else
++ LITTLE_ENDIAN := 0
++endif
+
OS_CFLAGS = $(DSO_CFLAGS) -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK