svn commit: r434142 - in head/security/nss: . files

Jan Beich jbeich at FreeBSD.org
Tue Feb 14 21:49:27 UTC 2017


Author: jbeich
Date: Tue Feb 14 21:49:25 2017
New Revision: 434142
URL: https://svnweb.freebsd.org/changeset/ports/434142

Log:
  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

Added:
  head/security/nss/files/patch-bug1335284   (contents, props changed)
Modified:
  head/security/nss/Makefile   (contents, props changed)

Modified: head/security/nss/Makefile
==============================================================================
--- head/security/nss/Makefile	Tue Feb 14 21:05:34 2017	(r434141)
+++ head/security/nss/Makefile	Tue Feb 14 21:49:25 2017	(r434142)
@@ -4,7 +4,7 @@
 PORTNAME=	nss
 PORTVERSION=	3.28.1
 #DISTVERSIONSUFFIX=	-with-ckbi-1.98
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	security
 MASTER_SITES=	MOZILLA/security/${PORTNAME}/releases/${DISTNAME:tu:C/[-.]/_/g}_RTM/src
 

Added: head/security/nss/files/patch-bug1335284
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/nss/files/patch-bug1335284	Tue Feb 14 21:49:25 2017	(r434142)
@@ -0,0 +1,11 @@
+--- lib/softoken/softoken.h.orig	2017-01-04 14:24:24 UTC
++++ lib/softoken/softoken.h
+@@ -183,7 +183,7 @@ extern PRBool sftk_fatalError;
+ 
+ #define CHECK_FORK_MIXED
+ 
+-#elif defined(LINUX)
++#elif defined(LINUX) || defined(FREEBSD) || defined(OPENBSD)
+ 
+ #define CHECK_FORK_PTHREAD
+ 


More information about the svn-ports-head mailing list