Package: mozilla-firefox
Version: 1.0.6-2
Severity: wishlist
Tags: patch

Please add support for the ppc64 architecture to 'mozilla-firefox'.

With the attached patch 'mozilla-firefox' can be compiled on ppc64.

Regards
Andreas Jochens

diff -urN ../tmp-orig/mozilla-firefox-1.0.6/debian/rules ./debian/rules
--- ../tmp-orig/mozilla-firefox-1.0.6/debian/rules      2005-08-10 
21:25:20.000000000 +0000
+++ ./debian/rules      2005-08-10 21:24:20.000000000 +0000
@@ -37,6 +37,10 @@
        OPTFLAGS=-O
 endif
 
+ifeq ($(DEB_BUILD_ARCH),ppc64)
+       OPTFLAGS += -mminimal-toc
+endif
+
 ifeq ($(DEB_BUILD_ARCH),arm)
        OPTFLAGS=-O
 endif
diff -urN ../tmp-orig/mozilla-firefox-1.0.6/nsprpub/pr/include/md/_linux.cfg 
./nsprpub/pr/include/md/_linux.cfg
--- ../tmp-orig/mozilla-firefox-1.0.6/nsprpub/pr/include/md/_linux.cfg  
2005-05-04 18:06:17.000000000 +0000
+++ ./nsprpub/pr/include/md/_linux.cfg  2005-08-10 21:22:39.000000000 +0000
@@ -45,7 +45,52 @@
 
 #define PR_AF_INET6 10  /* same as AF_INET6 */
 
-#ifdef __powerpc__
+#ifdef __powerpc64__
+
+#undef  IS_LITTLE_ENDIAN
+#define IS_BIG_ENDIAN    1
+
+#define PR_BYTES_PER_BYTE   1
+#define PR_BYTES_PER_SHORT  2
+#define PR_BYTES_PER_INT    4
+#define PR_BYTES_PER_INT64  8
+#define PR_BYTES_PER_LONG   8
+#define PR_BYTES_PER_FLOAT  4
+#define PR_BYTES_PER_DOUBLE 8
+#define PR_BYTES_PER_WORD   8
+#define PR_BYTES_PER_DWORD  8
+
+#define PR_BITS_PER_BYTE    8
+#define PR_BITS_PER_SHORT   16
+#define PR_BITS_PER_INT     32
+#define PR_BITS_PER_INT64   64
+#define PR_BITS_PER_LONG    64
+#define PR_BITS_PER_FLOAT   32
+#define PR_BITS_PER_DOUBLE  64
+#define PR_BITS_PER_WORD    64
+
+#define PR_BITS_PER_BYTE_LOG2   3
+#define PR_BITS_PER_SHORT_LOG2  4
+#define PR_BITS_PER_INT_LOG2    5
+#define PR_BITS_PER_INT64_LOG2  6
+#define PR_BITS_PER_LONG_LOG2   6
+#define PR_BITS_PER_FLOAT_LOG2  5
+#define PR_BITS_PER_DOUBLE_LOG2 6
+#define PR_BITS_PER_WORD_LOG2   6
+
+#define PR_ALIGN_OF_SHORT   2
+#define PR_ALIGN_OF_INT     4
+#define PR_ALIGN_OF_LONG    8
+#define PR_ALIGN_OF_INT64   8
+#define PR_ALIGN_OF_FLOAT   4
+#define PR_ALIGN_OF_DOUBLE  8
+#define PR_ALIGN_OF_POINTER 8
+#define PR_ALIGN_OF_WORD    8
+
+#define PR_BYTES_PER_WORD_LOG2   3
+#define PR_BYTES_PER_DWORD_LOG2  3
+
+#elif defined(__powerpc__)
 
 #undef  IS_LITTLE_ENDIAN
 #define IS_BIG_ENDIAN    1
diff -urN ../tmp-orig/mozilla-firefox-1.0.6/security/coreconf/Linux.mk 
./security/coreconf/Linux.mk
--- ../tmp-orig/mozilla-firefox-1.0.6/security/coreconf/Linux.mk        
2004-02-11 02:33:51.000000000 +0000
+++ ./security/coreconf/Linux.mk        2005-08-10 21:23:14.000000000 +0000
@@ -54,6 +54,10 @@
        OS_REL_CFLAGS   = -DLINUX1_2 -D_XOPEN_SOURCE
        CPU_ARCH        = m68k
 else           
+ifeq ($(OS_TEST),ppc64)
+       OS_REL_CFLAGS   = -DLINUX1_2 -D_XOPEN_SOURCE
+       CPU_ARCH        = ppc64
+else
 ifeq ($(OS_TEST),ppc)
        OS_REL_CFLAGS   = -DLINUX1_2 -D_XOPEN_SOURCE
        CPU_ARCH        = ppc
@@ -117,6 +121,7 @@
 endif
 endif
 endif
+endif
 
 
 LIBC_TAG               = _glibc


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to