[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stop firefox from using -ansi



-ansi should mean "only expose ANSI C89 interfaces".  Currently our
include files don't care but in the near future they will.  That
means that when -ansi is specified POSIX interfaces will not be
exposed and of course, firefox relies on these.

Something similar will be needed for the normal mozilla as well.

 - todd

Index: www/mozilla-firefox/patches/patch-nsprpub_configure_in
===================================================================
RCS file: /home/cvs/openbsd/ports/www/mozilla-firefox/patches/patch-nsprpub_configure_in,v
retrieving revision 1.3
diff -u -r1.3 patch-nsprpub_configure_in
--- www/mozilla-firefox/patches/patch-nsprpub_configure_in	9 Apr 2005 15:43:47 -0000	1.3
+++ www/mozilla-firefox/patches/patch-nsprpub_configure_in	29 May 2005 15:52:07 -0000
@@ -1,15 +1,48 @@
 $OpenBSD: patch-nsprpub_configure_in,v 1.3 2005/04/09 15:43:47 wilfried Exp $
---- nsprpub/configure.in.orig	Tue Sep 14 22:59:41 2004
-+++ nsprpub/configure.in	Wed Apr  6 19:06:48 2005
+--- nsprpub/configure.in.orig	Tue Sep 14 14:59:41 2004
++++ nsprpub/configure.in	Sun May 29 09:51:19 2005
+@@ -921,7 +921,7 @@ case "$target" in
+     AC_DEFINE(FREEBSD)
+     AC_DEFINE(HAVE_BSD_FLOCK)
+     AC_DEFINE(HAVE_SOCKLEN_T)
+-    CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall"
++    CFLAGS="$CFLAGS $(DSO_CFLAGS) -Wall"
+     MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
+     if test "$MOZ_OBJFORMAT" = "elf"; then
+         DLL_SUFFIX=so
+@@ -1186,8 +1186,8 @@ case "$target" in
+     AC_DEFINE(_LARGEFILE64_SOURCE)
+     AC_DEFINE(HAVE_FCNTL_FILE_LOCKING)
+     AC_DEFINE(LINUX)
+-    CFLAGS="$CFLAGS -ansi -Wall"
+-    CXXFLAGS="$CXXFLAGS -ansi -Wall"
++    CFLAGS="$CFLAGS -Wall"
++    CXXFLAGS="$CXXFLAGS -Wall"
+     MDCPUCFG_H=_linux.cfg
+     PR_MD_CSRCS=linux.c
+     MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
+@@ -1422,8 +1422,8 @@ mips-nec-sysv*)
+     PR_MD_CSRCS=netbsd.c
+ 
+     DSO_CFLAGS='-fPIC -DPIC'
+-    CFLAGS="$CFLAGS -ansi -Wall"
+-    CXXFLAGS="$CXXFLAGS -ansi -Wall"
++    CFLAGS="$CFLAGS -Wall"
++    CXXFLAGS="$CXXFLAGS -Wall"
+     MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)'
+ 
+     if test -z "$OBJECT_FMT"; then
 @@ -1493,9 +1493,11 @@ mips-sony-newsos*)
      AC_DEFINE(OPENBSD)
      AC_DEFINE(HAVE_BSD_FLOCK)
      AC_DEFINE(HAVE_SOCKLEN_T)
+-    CFLAGS="$CFLAGS -ansi -Wall"
+-    CXXFLAGS="$CXXFLAGS -ansi -Wall"
+-    DLL_SUFFIX=so.1.0
 +    AC_DEFINE(_PR_HAVE_GETPROTO_R)
 +    AC_DEFINE(_PR_HAVE_GETPROTO_R_INT)
-     CFLAGS="$CFLAGS -ansi -Wall"
-     CXXFLAGS="$CXXFLAGS -ansi -Wall"
--    DLL_SUFFIX=so.1.0
++    CFLAGS="$CFLAGS -Wall"
++    CXXFLAGS="$CXXFLAGS -Wall"
 +    DLL_SUFFIX="so.${SO_VERSION}"
      DSO_CFLAGS=-fPIC
      MDCPUCFG_H=_openbsd.cfg
Index: www/mozilla-firefox/patches/patch-security_coreconf_OpenBSD_mk
===================================================================
RCS file: /home/cvs/openbsd/ports/www/mozilla-firefox/patches/patch-security_coreconf_OpenBSD_mk,v
retrieving revision 1.3
diff -u -r1.3 patch-security_coreconf_OpenBSD_mk
--- www/mozilla-firefox/patches/patch-security_coreconf_OpenBSD_mk	9 Apr 2005 15:43:47 -0000	1.3
+++ www/mozilla-firefox/patches/patch-security_coreconf_OpenBSD_mk	29 May 2005 16:30:43 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-security_coreconf_OpenBSD_mk,v 1.3 2005/04/09 15:43:47 wilfried Exp $
---- security/coreconf/OpenBSD.mk.orig	Tue Sep 16 22:50:50 2003
-+++ security/coreconf/OpenBSD.mk	Wed Apr  6 21:19:25 2005
+--- security/coreconf/OpenBSD.mk.orig	Tue Sep 16 14:50:50 2003
++++ security/coreconf/OpenBSD.mk	Sun May 29 10:30:15 2005
 @@ -35,12 +35,12 @@
  
  include $(CORE_DEPTH)/coreconf/UNIX.mk
@@ -18,16 +18,18 @@
  ifeq ($(CPU_ARCH),i386)
  OS_REL_CFLAGS		= -Di386
  CPU_ARCH		= x86
-@@ -53,7 +53,7 @@ OS_LIBS			+= -pthread
+@@ -53,16 +53,16 @@ OS_LIBS			+= -pthread
  DSO_LDOPTS		+= -pthread
  endif
  
 -DLL_SUFFIX		= so.1.0
 +DLL_SUFFIX		= so.${SO_VERSION}
  
- OS_CFLAGS		= $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe -DOPENBSD
+-OS_CFLAGS		= $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe -DOPENBSD
++OS_CFLAGS		= $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -pipe -DOPENBSD
+ 
+ OS_LIBS			= 
  
-@@ -62,7 +62,7 @@ OS_LIBS			= 
  ARCH			= openbsd
  
  DSO_CFLAGS		= -fPIC -DPIC



Visit your host, monkey.org