svn commit: r410001 - branches/2016Q1/security/nss/files
Jan Beich
jbeich at FreeBSD.org
Thu Mar 3 02:57:35 UTC 2016
Author: jbeich
Date: Thu Mar 3 02:57:33 2016
New Revision: 410001
URL: https://svnweb.freebsd.org/changeset/ports/410001
Log:
MFH: r410000
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
Pointy hat: jbeich
Approved by: ports-secteam bustage fix blanket
Added:
branches/2016Q1/security/nss/files/patch-bug1250891
- copied unchanged from r410000, head/security/nss/files/patch-bug1250891
Modified:
Directory Properties:
branches/2016Q1/ (props changed)
Copied: branches/2016Q1/security/nss/files/patch-bug1250891 (from r410000, head/security/nss/files/patch-bug1250891)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ branches/2016Q1/security/nss/files/patch-bug1250891 Thu Mar 3 02:57:33 2016 (r410001, copy of r410000, head/security/nss/files/patch-bug1250891)
@@ -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 =
+
More information about the svn-ports-branches
mailing list