git: 05b3a5e55009 - 2021Q2 - security/nss: fix build on powerpc64le
Jan Beich
jbeich at FreeBSD.org
Tue May 18 00:54:51 UTC 2021
The branch 2021Q2 has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=05b3a5e55009aea31c3d2e690e86e84b3dde8408
commit 05b3a5e55009aea31c3d2e690e86e84b3dde8408
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-04-17 11:46:51 +0000
Commit: Jan Beich <jbeich at FreeBSD.org>
CommitDate: 2021-05-18 00:52:36 +0000
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 https://hg.mozilla.org/projects/nss/rev/a66c71152314e591106680e6de618c3c8d044373
(cherry picked from commit 2eaa6b5910ff4c72b61a4fcf4b06c8f6c1d8db93)
---
security/nss/Makefile | 2 +-
security/nss/files/patch-lib-freebl-Makefile | 21 +++++++++++++++++----
2 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/security/nss/Makefile b/security/nss/Makefile
index a45b69fc728a..a4f17aa15548 100644
--- a/security/nss/Makefile
+++ b/security/nss/Makefile
@@ -67,7 +67,7 @@ MAKE_ENV+= NSS_DISABLE_ARM32_NEON=1
EXTRA_PATCHES= ${FILESDIR}/${ARCH}${PPC_ABI:tl}-lib_freebl_scripts_gen.sh
USES+= compiler:c++11-lang # -mcrypto -mvsx
.if ! ${PORT_OPTIONS:MVSX}
-MAKE_ENV+= NSS_DISABLE_ALTIVEC=1
+MAKE_ENV+= NSS_DISABLE_CRYPTO_VSX=1
.endif
.endif
diff --git a/security/nss/files/patch-lib-freebl-Makefile b/security/nss/files/patch-lib-freebl-Makefile
index b42174292849..f9e412e534f5 100644
--- a/security/nss/files/patch-lib-freebl-Makefile
+++ b/security/nss/files/patch-lib-freebl-Makefile
@@ -1,11 +1,24 @@
---- lib/freebl/Makefile.orig 2018-08-31 12:55:53 UTC
+--- lib/freebl/Makefile.orig 2021-04-15 16:17:44 UTC
+++ lib/freebl/Makefile
-@@ -215,7 +215,7 @@ ifeq ($(CPU_ARCH),x86)
+@@ -263,7 +263,7 @@ else ifeq ($(CPU_ARCH),x86)
endif
endif # Darwin
-ifeq ($(OS_TARGET),Linux)
+ifeq (,$(filter-out Linux FreeBSD, $(OS_TARGET)))
ifeq ($(CPU_ARCH),x86_64)
- ASFILES = arcfour-amd64-gas.s mpi_amd64_gas.s
- ASFLAGS += -fPIC -Wa,--noexecstack
+ # Lower case s on mpi_amd64_common due to make implicit rules.
+ ASFILES = arcfour-amd64-gas.s mpi_amd64_common.s
+@@ -298,10 +298,10 @@ ifdef USE_64
+ PPC_ABI := $(shell $(CC) -dM -E - < /dev/null | awk '$$2 == "_CALL_ELF" {print $$3}')
+ ifeq ($(PPC_ABI),2)
+ ASFILES += sha512-p8.s
+- ifeq ($(OS_TEST),ppc64le)
++ ifeq ($(OS_TEST),powerpc64le)
+ EXTRA_SRCS += chacha20poly1305-ppc.c
+ ASFILES += chacha20-ppc64le.s
+- endif # ppc64le
++ endif # powerpc64le
+ endif
+ endif # USE_64
+ endif # ppc
More information about the dev-commits-ports-all
mailing list