retitle 322118: FTBFS (ppc64): Please support the ppc64 architecture thanks
The previous patch was incomplete. Attached is the corrected patch which makes mozilla compile on ppc64. Regards Andreas Jochens diff -urN ../tmp-orig/mozilla-1.7.10/debian/patches/ppc64-build-fix ./debian/patches/ppc64-build-fix --- ../tmp-orig/mozilla-1.7.10/debian/patches/ppc64-build-fix 1970-01-01 00:00:00.000000000 +0000 +++ ./debian/patches/ppc64-build-fix 2005-08-11 20:21:33.000000000 +0000 @@ -0,0 +1,79 @@ +diff -urN mozilla.orig/nsprpub/pr/include/md/_linux.cfg mozilla/nsprpub/pr/include/md/_linux.cfg +--- mozilla.orig/nsprpub/pr/include/md/_linux.cfg 2005-08-10 12:13:21.000000000 +0000 ++++ mozilla/nsprpub/pr/include/md/_linux.cfg 2005-08-10 17:59:56.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 define(__powerpc__) + + #undef IS_LITTLE_ENDIAN + #define IS_BIG_ENDIAN 1 +diff -urN mozilla.orig/security/coreconf/Linux.mk mozilla/security/coreconf/Linux.mk +--- mozilla.orig/security/coreconf/Linux.mk 2005-08-10 12:13:21.000000000 +0000 ++++ mozilla/security/coreconf/Linux.mk 2005-08-10 18:01:20.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 +@@ -122,6 +126,7 @@ + endif + endif + endif ++endif + + + LIBC_TAG = _glibc diff -urN ../tmp-orig/mozilla-1.7.10/debian/rules ./debian/rules --- ../tmp-orig/mozilla-1.7.10/debian/rules 2005-08-12 06:56:55.000000000 +0000 +++ ./debian/rules 2005-08-11 20:22:22.000000000 +0000 @@ -52,6 +52,11 @@ EXTRA_OPTIONS= endif +# ppc64 +ifeq ($(DEB_BUILD_ARCH), ppc64) +OPTFLAGS += -mminimal-toc +endif + # arm ifeq ($(DEB_BUILD_ARCH), arm) OPTFLAGS=-O -DDEBIAN -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

