svn commit: r410000 - head/security/nss/files
Jan Beich
jbeich at FreeBSD.org
Thu Mar 3 02:54:00 UTC 2016
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 =
+
More information about the svn-ports-head
mailing list