summaryrefslogtreecommitdiff
path: root/www/mozilla/patches
diff options
context:
space:
mode:
authorfredb <fredb@pkgsrc.org>2002-08-19 22:57:02 +0000
committerfredb <fredb@pkgsrc.org>2002-08-19 22:57:02 +0000
commitdb29b5f0a6a0b089e6a9f2f37356d0db4467befe (patch)
tree46809223f0df9c11429cc8eb831b46c3282e4b82 /www/mozilla/patches
parent19c1168b8ed7bee0519cb0f0836e6e407e567899 (diff)
downloadpkgsrc-db29b5f0a6a0b089e6a9f2f37356d0db4467befe.tar.gz
Make this compile, at least, on NetBSD/m68kelf, using patches submitted
to tech-pkg by Klaus Heinz.
Diffstat (limited to 'www/mozilla/patches')
-rw-r--r--www/mozilla/patches/patch-ac33
-rw-r--r--www/mozilla/patches/patch-ad70
-rw-r--r--www/mozilla/patches/patch-ae36
-rw-r--r--www/mozilla/patches/patch-bc19
4 files changed, 139 insertions, 19 deletions
diff --git a/www/mozilla/patches/patch-ac b/www/mozilla/patches/patch-ac
new file mode 100644
index 00000000000..bd40b119019
--- /dev/null
+++ b/www/mozilla/patches/patch-ac
@@ -0,0 +1,33 @@
+$NetBSD: patch-ac,v 1.15 2002/08/19 22:57:03 fredb Exp $
+
+--- xpcom/reflect/xptcall/src/md/unix/Makefile.in.orig Tue Apr 9 22:37:34 2002
++++ xpcom/reflect/xptcall/src/md/unix/Makefile.in
+@@ -149,6 +149,14 @@
+ #
+ ifeq ($(OS_ARCH),NetBSD)
+ ifneq (,$(filter amiga atari hp300 mac68k mvme68k next68k sun3 sun3x x68k,$(OS_TEST)))
++ifneq (,$(findstring elf,$(TARGET_OS)))
++# ELF format
++SYMBOLPREFIX=\"\"
++else
++# aout format
++SYMBOLPREFIX=\"_\"
++endif
++CXXFLAGS += -DSYMBOLPREFIX=$(SYMBOLPREFIX)
+ CPPSRCS := xptcinvoke_netbsd_m68k.cpp xptcstubs_netbsd_m68k.cpp
+ endif
+ endif
+@@ -253,6 +261,13 @@
+ ifeq ($(OS_ARCH)$(OS_TEST),NetBSDsparc)
+ CPPSRCS := xptcinvoke_sparc_netbsd.cpp xptcstubs_sparc_netbsd.cpp
+ ASFILES := xptcinvoke_asm_sparc_netbsd.s xptcstubs_asm_sparc_netbsd.s
++endif
++#
++# NetBSD/SPARC64
++#
++ifeq ($(OS_ARCH)$(OS_TEST),NetBSDsparc64)
++CPPSRCS := xptcinvoke_sparc64_netbsd.cpp xptcstubs_sparc64_netbsd.cpp
++ASFILES := xptcinvoke_asm_sparc64_netbsd.s xptcstubs_asm_sparc64_netbsd.s
+ endif
+ #
+ # Solaris/SPARC
diff --git a/www/mozilla/patches/patch-ad b/www/mozilla/patches/patch-ad
new file mode 100644
index 00000000000..1addcec0ebc
--- /dev/null
+++ b/www/mozilla/patches/patch-ad
@@ -0,0 +1,70 @@
+$NetBSD: patch-ad,v 1.20 2002/08/19 22:57:03 fredb Exp $
+
+--- xpcom/reflect/xptcall/src/md/unix/xptcinvoke_netbsd_m68k.cpp.orig Sat Jul 20 19:41:33 2002
++++ xpcom/reflect/xptcall/src/md/unix/xptcinvoke_netbsd_m68k.cpp
+@@ -132,6 +132,10 @@
+ }
+ }
+
++/*
++ * SYMBOL PREFIX must be "_" for aout symbols and "" for ELF
++ */
++
+ XPTC_PUBLIC_API(nsresult)
+ XPTC_InvokeByIndex(nsISupports* that, PRUint32 methodIndex,
+ PRUint32 paramCount, nsXPTCVariant* params)
+@@ -139,30 +143,30 @@
+ PRUint32 result;
+
+ __asm__ __volatile__(
+- "movl %4, sp@-\n\t"
+- "movl %3, sp@-\n\t"
+- "jbsr _invoke_count_words\n\t" /* count words */
+- "addql #8, sp\n\t"
+- "lsll #2, d0\n\t" /* *= 4 */
+- "movl sp, a2\n\t" /* save original sp */
+- "subl d0, sp\n\t" /* make room for params */
+- "movl sp, a0\n\t"
+- "movl %4, sp@-\n\t"
+- "movl %3, sp@-\n\t"
+- "movl a0, sp@-\n\t"
+- "jbsr _invoke_copy_to_stack\n\t" /* copy params */
+- "addl #12, sp\n\t"
+- "movl %1, a0\n\t"
+- "movl a0@, a1\n\t"
+- "movl %2, d0\n\t" /* function index */
+- "movl a0, d1\n\t"
+- "movw a1@(8,d0:l:8), a0\n\t"
+- "addl a0, d1\n\t"
+- "movl a1@(12,d0:l:8), a1\n\t"
+- "movl d1, sp@-\n\t"
+- "jbsr a1@\n\t"
+- "movl a2, sp\n\t" /* restore original sp */
+- "movl d0, %0\n\t"
++ "movl %4, %%sp@-\n\t"
++ "movl %3, %%sp@-\n\t"
++ "jbsr "SYMBOLPREFIX"invoke_count_words\n\t" /* count words */
++ "addql #8, %%sp\n\t"
++ "lsll #2, %%d0\n\t" /* *= 4 */
++ "movl %%sp, %%a2\n\t" /* save original sp */
++ "subl %%d0, %%sp\n\t" /* make room for params */
++ "movl %%sp, %%a0\n\t"
++ "movl %4, %%sp@-\n\t"
++ "movl %3, %%sp@-\n\t"
++ "movl %%a0, %%sp@-\n\t"
++ "jbsr "SYMBOLPREFIX"invoke_copy_to_stack\n\t" /* copy params */
++ "addl #12, %%sp\n\t"
++ "movl %1, %%a0\n\t"
++ "movl %%a0@, %%a1\n\t"
++ "movl %2, %%d0\n\t" /* function index */
++ "movl %%a0, %%d1\n\t"
++ "movw %%a1@(8,%%d0:l:8), %%a0\n\t"
++ "addl %%a0, %%d1\n\t"
++ "movl %%a1@(12,%%d0:l:8), %%a1\n\t"
++ "movl %%d1, %%sp@-\n\t"
++ "jbsr %%a1@\n\t"
++ "movl %%a2, %%sp\n\t" /* restore original sp */
++ "movl %%d0, %0\n\t"
+ : "=g" (result) /* %0 */
+ : "g" (that), /* %1 */
+ "g" (methodIndex), /* %2 */
diff --git a/www/mozilla/patches/patch-ae b/www/mozilla/patches/patch-ae
new file mode 100644
index 00000000000..ce8e1ea9722
--- /dev/null
+++ b/www/mozilla/patches/patch-ae
@@ -0,0 +1,36 @@
+$NetBSD: patch-ae,v 1.11 2002/08/19 22:57:04 fredb Exp $
+
+--- xpcom/reflect/xptcall/src/md/unix/xptcstubs_netbsd_m68k.cpp.orig Wed Apr 10 05:37:42 2002
++++ xpcom/reflect/xptcall/src/md/unix/xptcstubs_netbsd_m68k.cpp
+@@ -123,17 +123,22 @@
+ }
+ }
+
++/*
++ * Beware: use % instead of %% for register identifiers in a preprocessor macro
++ * SYMBOL PREFIX must be "_" for aout and "" for ELF
++ */
++
+ #define STUB_ENTRY(n) \
+ __asm__( \
+- ".global _Stub"#n"__14nsXPTCStubBase\n\t" \
+-"_Stub"#n"__14nsXPTCStubBase:\n\t" \
+- "link a6,#0 \n\t" \
+- "lea a6@(12), a0 \n\t" /* pointer to args */ \
+- "movl a0, sp@- \n\t" \
+- "movl #"#n", sp@- \n\t" /* method index */ \
+- "movl a6@(8), sp@- \n\t" /* this */ \
+- "jbsr _PrepareAndDispatch \n\t" \
+- "unlk a6 \n\t" \
++ ".global "SYMBOLPREFIX"Stub"#n"__14nsXPTCStubBase\n\t" \
++SYMBOLPREFIX"Stub"#n"__14nsXPTCStubBase:\n\t" \
++ "link %a6,#0 \n\t" \
++ "lea %a6@(12), %a0 \n\t" /* pointer to args */ \
++ "movl %a0, %sp@- \n\t" \
++ "movl #"#n", %sp@- \n\t" /* method index */ \
++ "movl %a6@(8), %sp@- \n\t" /* this */ \
++ "jbsr "SYMBOLPREFIX"PrepareAndDispatch\n\t" \
++ "unlk %a6 \n\t" \
+ "rts \n\t" \
+ );
+
diff --git a/www/mozilla/patches/patch-bc b/www/mozilla/patches/patch-bc
deleted file mode 100644
index fc241c9011c..00000000000
--- a/www/mozilla/patches/patch-bc
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: patch-bc,v 1.9 2002/06/06 02:05:58 taya Exp $
-
-diff -ru ../Orig/mozilla/xpcom/reflect/xptcall/src/md/unix/Makefile.in ./xpcom/reflect/xptcall/src/md/unix/Makefile.in
---- ../Orig/mozilla/xpcom/reflect/xptcall/src/md/unix/Makefile.in Wed Apr 10 12:37:34 2002
-+++ ./xpcom/reflect/xptcall/src/md/unix/Makefile.in Thu Jun 6 09:13:32 2002
-@@ -254,6 +254,13 @@
- CPPSRCS := xptcinvoke_sparc_netbsd.cpp xptcstubs_sparc_netbsd.cpp
- ASFILES := xptcinvoke_asm_sparc_netbsd.s xptcstubs_asm_sparc_netbsd.s
- endif
-+#
-+# NetBSD/SPARC64
-+#
-+ifeq ($(OS_ARCH)$(OS_TEST),NetBSDsparc64)
-+CPPSRCS := xptcinvoke_sparc64_netbsd.cpp xptcstubs_sparc64_netbsd.cpp
-+ASFILES := xptcinvoke_asm_sparc64_netbsd.s xptcstubs_asm_sparc64_netbsd.s
-+endif
- #
- # Solaris/SPARC
- #