From owner-svn-ports-head@freebsd.org Thu Mar 3 02:53:59 2016 Return-Path: Delivered-To: svn-ports-head@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 DC0D2AC1E13; Thu, 3 Mar 2016 02:53:59 +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 93B041E26; Thu, 3 Mar 2016 02:53:59 +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 u232rw1H059362; Thu, 3 Mar 2016 02:53:58 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u232rwwl059361; Thu, 3 Mar 2016 02:53:58 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201603030253.u232rwwl059361@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Thu, 3 Mar 2016 02:53:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r410000 - 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-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2016 02:54:00 -0000 Author: jbeich Date: Thu Mar 3 02:53:58 2016 New Revision: 410000 URL: https://svnweb.freebsd.org/changeset/ports/410000 Log: 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 Added: head/security/nss/files/patch-bug1250891 (contents, props changed) Added: head/security/nss/files/patch-bug1250891 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/nss/files/patch-bug1250891 Thu Mar 3 02:53:58 2016 (r410000) @@ -0,0 +1,38 @@ +# Drop poisonous -ansi from default *BSD flags + +diff --git a/coreconf/FreeBSD.mk b/coreconf/FreeBSD.mk +--- coreconf/FreeBSD.mk ++++ coreconf/FreeBSD.mk +@@ -21,7 +21,7 @@ ifeq ($(CPU_ARCH),amd64) + CPU_ARCH = x86_64 + endif + +-OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK ++OS_CFLAGS = $(DSO_CFLAGS) -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK + + DSO_CFLAGS = -fPIC + DSO_LDOPTS = -shared -Wl,-soname -Wl,$(notdir $@) +diff --git a/coreconf/NetBSD.mk b/coreconf/NetBSD.mk +--- coreconf/NetBSD.mk ++++ coreconf/NetBSD.mk +@@ -26,7 +26,7 @@ else + DLL_SUFFIX = so.1.0 + endif + +-OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -Wno-switch -pipe -DNETBSD -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK ++OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -Wno-switch -pipe -DNETBSD -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK + + OS_LIBS = -lcompat + +diff --git a/coreconf/OpenBSD.mk b/coreconf/OpenBSD.mk +--- coreconf/OpenBSD.mk ++++ coreconf/OpenBSD.mk +@@ -26,7 +26,7 @@ endif + + DLL_SUFFIX = so.1.0 + +-OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -Wno-switch -pipe -DOPENBSD ++OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -Wno-switch -pipe -DOPENBSD + + OS_LIBS = +