From owner-svn-ports-all@freebsd.org Tue Feb 14 21:49:27 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B91CCDF994; Tue, 14 Feb 2017 21:49:27 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 387401DDF; Tue, 14 Feb 2017 21:49:27 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1ELnQ6I064399; Tue, 14 Feb 2017 21:49:26 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1ELnQLL064397; Tue, 14 Feb 2017 21:49:26 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201702142149.v1ELnQLL064397@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Tue, 14 Feb 2017 21:49:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r434142 - in head/security/nss: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2017 21:49:27 -0000 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 +