[SVN-Commit] r501 - in trunk/www/firefox: . files

svn-freebsd-gecko at chruetertee.ch svn-freebsd-gecko at chruetertee.ch
Tue Mar 1 21:52:19 UTC 2011


Author: beat
Date: Tue Mar  1 21:52:12 2011
New Revision: 501

Log:
- Update to 3.6.14
- Add support for powerpc64 [1]

Submitted by:	andreast [1]

Added:
   trunk/www/firefox/files/patch-js-ctypes-libffi-configure
   trunk/www/firefox/files/patch-security_nss_lib_freebl_mpi_mpcpucache.c
Modified:
   trunk/www/firefox/Makefile
   trunk/www/firefox/distinfo
   trunk/www/firefox/files/patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in

Modified: trunk/www/firefox/Makefile
==============================================================================
--- trunk/www/firefox/Makefile	Tue Mar  1 21:50:53 2011	(r500)
+++ trunk/www/firefox/Makefile	Tue Mar  1 21:52:12 2011	(r501)
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	firefox
-DISTVERSION=	3.6.12
-PORTREVISION=	1
+DISTVERSION=	3.6.14
 PORTEPOCH=	1
 CATEGORIES=	www ipv6
 MASTER_SITES=	${MASTER_SITE_MOZILLA}
@@ -64,6 +63,15 @@
 EXTRA_PATCHES=	${FILESDIR}/libsydney_oss
 .endif
 
+.if ${ARCH} == powerpc64
+.if ${OSVERSION} < 900033
+BROKEN=		Needs binutils 2.17.50 to build
+.else
+CONFIGURE_ENV+=	UNAME_m="powerpc64"
+CFLAGS+=	-mminimal-toc
+.endif
+.endif
+
 WRKSRC:=	${WRKSRC}-1.9.2
 
 GECKO_PTHREAD_LIBS!=${CC} -dumpspecs | ${GREP} -m 1 '%{\!pg: %{pthread:' | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE}

Modified: trunk/www/firefox/distinfo
==============================================================================
--- trunk/www/firefox/distinfo	Tue Mar  1 21:50:53 2011	(r500)
+++ trunk/www/firefox/distinfo	Tue Mar  1 21:52:12 2011	(r501)
@@ -1,3 +1,2 @@
-MD5 (firefox-3.6.12.source.tar.bz2) = 80f4d83f23a7c45fc3f1904964ea2a5a
-SHA256 (firefox-3.6.12.source.tar.bz2) = dd478c653070f451b76befc798cfa1d6b61745d8badf831a3bae453c32e68c2d
-SIZE (firefox-3.6.12.source.tar.bz2) = 51423668
+SHA256 (firefox-3.6.14.source.tar.bz2) = d2b28db2612d2603df45a1d7bccf0096da588f87cd287be6b7c96879c88ee855
+SIZE (firefox-3.6.14.source.tar.bz2) = 51489105

Added: trunk/www/firefox/files/patch-js-ctypes-libffi-configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/www/firefox/files/patch-js-ctypes-libffi-configure	Tue Mar  1 21:52:12 2011	(r501)
@@ -0,0 +1,12 @@
+--- js/ctypes/libffi/configure.orig	2010-07-22 23:54:58.000000000 +0200
++++ js/ctypes/libffi/configure	2010-08-05 07:34:44.000000000 +0200
+@@ -21033,6 +21033,9 @@
+   powerpc-*-aix* | rs6000-*-aix*)
+ 	TARGET=POWERPC_AIX; TARGETDIR=powerpc
+ 	;;
++  powerpc64-*-freebsd*)
++	TARGET=POWERPC; TARGETDIR=powerpc
++	;;
+   powerpc-*-freebsd*)
+ 	TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
+ 	;;

Added: trunk/www/firefox/files/patch-security_nss_lib_freebl_mpi_mpcpucache.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/www/firefox/files/patch-security_nss_lib_freebl_mpi_mpcpucache.c	Tue Mar  1 21:52:12 2011	(r501)
@@ -0,0 +1,44 @@
+--- security/nss/lib/freebl/mpi/mpcpucache.c.orig	2011-02-26 18:44:42.000000000 +0100
++++ security/nss/lib/freebl/mpi/mpcpucache.c	2011-02-26 18:46:41.000000000 +0100
+@@ -733,6 +733,33 @@
+ #endif
+ 
+ #if defined(__ppc64__) 
++#if defined(__FreeBSD__)
++#include <sys/stddef.h>
++#include <sys/sysctl.h>
++
++#include <machine/cpu.h>
++#include <machine/md_var.h>
++
++unsigned long
++s_mpi_getProcessorLineSize()
++{
++       static int cacheline_size = 0;
++       static int cachemib[] = { CTL_MACHDEP, CPU_CACHELINE };
++       int clen;
++
++       if (cacheline_size > 0)
++               return cacheline_size;
++  
++       clen = sizeof(cacheline_size);
++       if (sysctl(cachemib, sizeof(cachemib) / sizeof(cachemib[0]),
++           &cacheline_size, &clen, NULL, 0) < 0 || !cacheline_size)
++               return 128; /* guess */
++
++       return cacheline_size;
++}
++#else /* __FreeBSD__ */
++
++
+ /*
+  *  Sigh, The PPC has some really nice features to help us determine cache
+  *  size, since it had lots of direct control functions to do so. The POWER
+@@ -786,6 +813,7 @@
+     return 0;
+ }
+ 
++#endif /* __FreeBSD__ */
+ #define MPI_GET_PROCESSOR_LINE_SIZE_DEFINED 1
+ #endif
+ 

Modified: trunk/www/firefox/files/patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in
==============================================================================
--- trunk/www/firefox/files/patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in	Tue Mar  1 21:50:53 2011	(r500)
+++ trunk/www/firefox/files/patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in	Tue Mar  1 21:52:12 2011	(r501)
@@ -1,5 +1,5 @@
---- xpcom/reflect/xptcall/src/md/unix/Makefile.in.orig	2009-09-16 04:41:25.000000000 +0200
-+++ xpcom/reflect/xptcall/src/md/unix/Makefile.in	2009-10-03 21:30:21.000000000 +0200
+--- xpcom/reflect/xptcall/src/md/unix/Makefile.in.orig	2010-04-02 16:03:13.000000000 +0000
++++ xpcom/reflect/xptcall/src/md/unix/Makefile.in	2010-06-06 19:19:44.000000000 +0000
 @@ -73,6 +73,9 @@
  DEFINES		+= -DKEEP_STACK_16_BYTE_ALIGNED
  CPPSRCS		:= xptcinvoke_unixish_x86.cpp xptcstubs_unixish_x86.cpp
@@ -56,6 +56,19 @@
  CPPSRCS		:= xptcinvoke_ppc_linux.cpp xptcstubs_ppc_linux.cpp
  ASFILES		:= xptcinvoke_asm_ppc_linux.s xptcstubs_asm_ppc_linux.s
  AS		:= $(CC) -c -x assembler-with-cpp
+@@ -331,9 +340,9 @@
+ #
+ # Linux/PPC64
+ #
+-ifeq ($(OS_ARCH)$(OS_TEST),Linuxpowerpc64)
+-CPPSRCS                := xptcinvoke_ppc64_linux.cpp xptcstubs_ppc64_linux.cpp
+-ASFILES                := xptcinvoke_asm_ppc64_linux.s xptcstubs_asm_ppc64_linux.s
++ifneq (,$(filter Linuxpowerpc64 FreeBSDpowerpc64,$(OS_ARCH)$(OS_TEST)))
++CPPSRCS        := xptcinvoke_ppc64_linux.cpp xptcstubs_ppc64_linux.cpp
++ASFILES        := xptcinvoke_asm_ppc64_linux.s xptcstubs_asm_ppc64_linux.s
+ AS             := $(CC) -c -x assembler-with-cpp
+ endif
+ 
 @@ -400,6 +409,15 @@
  ASFILES		:= xptcinvoke_asm_sparc_netbsd.s xptcstubs_asm_sparc_netbsd.s
  endif


More information about the freebsd-gecko mailing list