Import MozillaFirebird 0.6.1
(renamed from phoenix) Changes from 0.6: * Fix for the auto-complete crash bug * Fix for the DOM security restriction bug that broke many bookmarklets * Rich Text Editing support * Toolbar buttons for cut, copy and paste * Brushed up default theme, including updated toolbar icons * New application icon
This commit is contained in:
parent
22a9aea8e3
commit
c24aaa515b
19 changed files with 2954 additions and 0 deletions
3
www/MozillaFirebird/DESCR
Normal file
3
www/MozillaFirebird/DESCR
Normal file
|
@ -0,0 +1,3 @@
|
|||
MozillaFirebird is a redesign of the Mozilla browser component, similar to Galeon,
|
||||
K-Meleon and Chimera, but written using the XUL user interface language
|
||||
and designed to be cross-platform.
|
20
www/MozillaFirebird/Makefile
Normal file
20
www/MozillaFirebird/Makefile
Normal file
|
@ -0,0 +1,20 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2003/08/16 14:19:32 taya Exp $
|
||||
|
||||
MOZILLA= MozillaFirebird
|
||||
MOZILLA_BIN= MozillaFirebird-bin
|
||||
MOZ_VER= 0.6.1
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
DISTNAME= MozillaFirebird-source-${MOZ_VER}
|
||||
#MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITES= ftp://ftp.mozilla.org/pub/firebird/releases/${MOZ_VER}/
|
||||
|
||||
HOMEPAGE= http://www.mozilla.org/projects/firebird/
|
||||
COMMENT= Lightweight gecko-based web browser
|
||||
|
||||
CONFIGURE_ENV+= MOZ_PHOENIX=1
|
||||
MAKE_ENV+= MOZ_PHOENIX=1
|
||||
|
||||
CONFIGURE_ARGS+= --disable-mailnews
|
||||
CONFIGURE_ARGS+= --disable-composer
|
||||
|
||||
.include "../../www/mozilla/Makefile.common"
|
2386
www/MozillaFirebird/PLIST
Normal file
2386
www/MozillaFirebird/PLIST
Normal file
File diff suppressed because it is too large
Load diff
19
www/MozillaFirebird/distinfo
Normal file
19
www/MozillaFirebird/distinfo
Normal file
|
@ -0,0 +1,19 @@
|
|||
$NetBSD: distinfo,v 1.1.1.1 2003/08/16 14:19:36 taya Exp $
|
||||
|
||||
SHA1 (MozillaFirebird-source-0.6.1.tar.bz2) = cddbf0e0085c51a21419f3b93dcd9157f4c6ba97
|
||||
Size (MozillaFirebird-source-0.6.1.tar.bz2) = 29793828 bytes
|
||||
SHA1 (patch-aa) = 800edee950419db954e7531553022c6e4e415121
|
||||
SHA1 (patch-ab) = 02e1f273e47701175485e1b0992aec85b30a979b
|
||||
SHA1 (patch-ac) = f300867713a08cb2241dcd07c8f6fd7c5b2ec91a
|
||||
SHA1 (patch-ad) = 44f2655ffaee5f59e02b32be19a8f5be45cbc20b
|
||||
SHA1 (patch-ae) = e0eae9b4878a2f28a4ba7277dc15105475c003a9
|
||||
SHA1 (patch-ag) = 99b1849e5c634c277c57834cb8ab7a6af4bc7357
|
||||
SHA1 (patch-am) = eabe93a634cb03a8f66ffe42851b097bc749bf69
|
||||
SHA1 (patch-aw) = 94a7945827dbd4facd7cc05ec7911ff3ffff1f54
|
||||
SHA1 (patch-ba) = 3c76c3e7c8e2143a0ef07fc10a3bb55eb05a0ea5
|
||||
SHA1 (patch-bb) = 51a9151ba81e146114a576a1764dc7104289dea7
|
||||
SHA1 (patch-be) = 3b4464a64b479439ed6d4e4357e57358f4d168dc
|
||||
SHA1 (patch-bj) = 91c11da7eeac036f42f57a139e36891261fa8e33
|
||||
SHA1 (patch-bm) = c69797d6845f3415662e248319e4b7602656fdf8
|
||||
SHA1 (patch-bn) = cdebfe957947059f3a7b4d2734cfb0c642d5ff9c
|
||||
SHA1 (patch-bo) = 37084ed91dfc339594b037ea697a1a49050a37c6
|
14
www/MozillaFirebird/patches/patch-aa
Normal file
14
www/MozillaFirebird/patches/patch-aa
Normal file
|
@ -0,0 +1,14 @@
|
|||
$NetBSD: patch-aa,v 1.1.1.1 2003/08/16 14:19:36 taya Exp $
|
||||
|
||||
diff -ru ../Orig/mozilla/nsprpub/pr/src/pthreads/ptthread.c ./nsprpub/pr/src/pthreads/ptthread.c
|
||||
--- ../Orig/mozilla/nsprpub/pr/src/pthreads/ptthread.c 2002-08-28 23:42:52.000000000 +0900
|
||||
+++ ./nsprpub/pr/src/pthreads/ptthread.c 2003-07-31 23:03:59.000000000 +0900
|
||||
@@ -360,7 +360,7 @@
|
||||
/*
|
||||
* Linux doesn't have pthread_attr_setstacksize.
|
||||
*/
|
||||
-#ifndef LINUX
|
||||
+#if !defined(LINUX) && !defined(NETBSD)
|
||||
rv = pthread_attr_setstacksize(&tattr, stackSize);
|
||||
PR_ASSERT(0 == rv);
|
||||
#endif
|
48
www/MozillaFirebird/patches/patch-ab
Normal file
48
www/MozillaFirebird/patches/patch-ab
Normal file
|
@ -0,0 +1,48 @@
|
|||
$NetBSD: patch-ab,v 1.1.1.1 2003/08/16 14:19:36 taya Exp $
|
||||
|
||||
diff -ru ../Orig/mozilla/configure.in ./configure.in
|
||||
--- ../Orig/mozilla/configure.in 2003-07-10 06:55:23.000000000 +0900
|
||||
+++ ./configure.in 2003-07-31 23:04:02.000000000 +0900
|
||||
@@ -885,6 +885,9 @@
|
||||
# MKSHLIB_FORCE_ALL='-Wl,-Bforcearchive'
|
||||
# MKSHLIB_UNFORCE_ALL=''
|
||||
# fi
|
||||
+ if test "$LIBRUNPATH"; then
|
||||
+ DSO_LDOPTS="-Wl,-R$LIBRUNPATH $DSO_LDOPTS"
|
||||
+ fi
|
||||
;;
|
||||
|
||||
*-hpux*)
|
||||
@@ -1173,6 +1176,13 @@
|
||||
if test "$LIBRUNPATH"; then
|
||||
DSO_LDOPTS="-Wl,-R$LIBRUNPATH $DSO_LDOPTS"
|
||||
fi
|
||||
+
|
||||
+ case "${target_cpu}" in
|
||||
+ alpha*)
|
||||
+ CFLAGS="$CFLAGS -mieee"
|
||||
+ CXXFLAGS="$CXXFLAGS -mieee"
|
||||
+ ;;
|
||||
+ esac
|
||||
;;
|
||||
|
||||
*-nto*)
|
||||
@@ -1580,7 +1590,7 @@
|
||||
[siginfo_t* info;],
|
||||
[ac_cv_siginfo_t=true],
|
||||
[ac_cv_siginfo_t=false])])
|
||||
-if test "$ac_cv_siginfo_t" = true ; then
|
||||
+if test "$OS_TARGET" != "NetBSD" -a "$ac_cv_siginfo_t" = true ; then
|
||||
AC_DEFINE(HAVE_SIGINFO_T)
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
@@ -2125,9 +2135,6 @@
|
||||
CXXFLAGS="$CXXFLAGS -mt"
|
||||
fi
|
||||
;;
|
||||
- *-*-netbsd*)
|
||||
- USE_PTHREADS=
|
||||
- _PTHREAD_LDFLAGS=
|
||||
esac
|
||||
fi
|
||||
|
37
www/MozillaFirebird/patches/patch-ac
Normal file
37
www/MozillaFirebird/patches/patch-ac
Normal file
|
@ -0,0 +1,37 @@
|
|||
$NetBSD: patch-ac,v 1.1.1.1 2003/08/16 14:19:36 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 2003-06-19 11:58:43.000000000 +0900
|
||||
+++ ./xpcom/reflect/xptcall/src/md/unix/Makefile.in 2003-07-31 23:04:04.000000000 +0900
|
||||
@@ -135,7 +135,7 @@
|
||||
# NetBSD/ARM
|
||||
#
|
||||
ifeq ($(OS_ARCH),NetBSD)
|
||||
-ifneq (,$(filter arm% sa110,$(OS_TEST)))
|
||||
+ifneq (,$(filter arm%,$(TARGET_CPU)))
|
||||
CPPSRCS := xptcinvoke_arm_netbsd.cpp xptcstubs_arm_netbsd.cpp
|
||||
endif
|
||||
endif
|
||||
@@ -169,7 +169,7 @@
|
||||
# NetBSD/m68k
|
||||
#
|
||||
ifeq ($(OS_ARCH),NetBSD)
|
||||
-ifneq (,$(filter amiga atari hp300 mac68k mvme68k next68k sun3 sun3x x68k,$(OS_TEST)))
|
||||
+ifneq (,$(filter m68k,$(TARGET_CPU)))
|
||||
CPPSRCS := xptcinvoke_netbsd_m68k.cpp xptcstubs_netbsd_m68k.cpp
|
||||
endif
|
||||
endif
|
||||
@@ -293,6 +293,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
|
||||
#
|
76
www/MozillaFirebird/patches/patch-ad
Normal file
76
www/MozillaFirebird/patches/patch-ad
Normal file
|
@ -0,0 +1,76 @@
|
|||
$NetBSD: patch-ad,v 1.1.1.1 2003/08/16 14:19:36 taya Exp $
|
||||
|
||||
diff -ru ../Orig/mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_netbsd_m68k.cpp ./xpcom/reflect/xptcall/src/md/unix/xptcinvoke_netbsd_m68k.cpp
|
||||
--- ../Orig/mozilla/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_netbsd_m68k.cpp 2001-09-29 05:12:51.000000000 +0900
|
||||
+++ ./xpcom/reflect/xptcall/src/md/unix/xptcinvoke_netbsd_m68k.cpp 2003-07-31 23:04:06.000000000 +0900
|
||||
@@ -132,6 +132,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
+/*
|
||||
+ * SYMBOL PREFIX must be "_" for aout symbols and "" for ELF
|
||||
+ */
|
||||
+#ifndef __ELF__
|
||||
+#define SYMBOLPREFIX "_"
|
||||
+#else
|
||||
+#define SYMBOLPREFIX
|
||||
+#endif
|
||||
+
|
||||
XPTC_PUBLIC_API(nsresult)
|
||||
XPTC_InvokeByIndex(nsISupports* that, PRUint32 methodIndex,
|
||||
PRUint32 paramCount, nsXPTCVariant* params)
|
||||
@@ -139,30 +148,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 */
|
42
www/MozillaFirebird/patches/patch-ae
Normal file
42
www/MozillaFirebird/patches/patch-ae
Normal file
|
@ -0,0 +1,42 @@
|
|||
$NetBSD: patch-ae,v 1.1.1.1 2003/08/16 14:19:36 taya Exp $
|
||||
|
||||
diff -ru ../Orig/mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_netbsd_m68k.cpp ./xpcom/reflect/xptcall/src/md/unix/xptcstubs_netbsd_m68k.cpp
|
||||
--- ../Orig/mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_netbsd_m68k.cpp 2001-09-29 05:12:52.000000000 +0900
|
||||
+++ ./xpcom/reflect/xptcall/src/md/unix/xptcstubs_netbsd_m68k.cpp 2003-07-31 23:04:07.000000000 +0900
|
||||
@@ -123,17 +123,27 @@
|
||||
}
|
||||
}
|
||||
|
||||
+/*
|
||||
+ * Beware: use % instead of %% for register identifiers in a preprocessor macro
|
||||
+ * SYMBOL PREFIX must be "_" for aout and "" for ELF
|
||||
+ */
|
||||
+#ifndef __ELF__
|
||||
+#define SYMBOLPREFIX "_"
|
||||
+#else
|
||||
+#define SYMBOLPREFIX
|
||||
+#endif
|
||||
+
|
||||
#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" \
|
||||
);
|
||||
|
12
www/MozillaFirebird/patches/patch-ag
Normal file
12
www/MozillaFirebird/patches/patch-ag
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- extensions/transformiix/source/base/ErrorObserver.h.orig 2003-01-17 23:39:36.000000000 +1100
|
||||
+++ extensions/transformiix/source/base/ErrorObserver.h 2003-08-02 23:15:09.000000000 +1000
|
||||
@@ -28,7 +28,8 @@
|
||||
|
||||
#include "baseutils.h"
|
||||
#include "txError.h"
|
||||
-#include <iostream.h>
|
||||
+#include <iostream>
|
||||
+using namespace std;
|
||||
class nsAString;
|
||||
|
||||
/**
|
41
www/MozillaFirebird/patches/patch-am
Normal file
41
www/MozillaFirebird/patches/patch-am
Normal file
|
@ -0,0 +1,41 @@
|
|||
$NetBSD: patch-am,v 1.1.1.1 2003/08/16 14:19:36 taya Exp $
|
||||
|
||||
diff -ru ../Orig/mozilla/nsprpub/pr/src/pthreads/ptio.c ./nsprpub/pr/src/pthreads/ptio.c
|
||||
--- ../Orig/mozilla/nsprpub/pr/src/pthreads/ptio.c 2003-07-09 12:37:46.000000000 +0900
|
||||
+++ ./nsprpub/pr/src/pthreads/ptio.c 2003-07-31 23:23:12.000000000 +0900
|
||||
@@ -194,7 +194,7 @@
|
||||
#elif defined(IRIX) || defined(OSF1) || defined(AIX) || defined(HPUX) \
|
||||
|| defined(LINUX) || defined(FREEBSD) || defined(BSDI) || defined(VMS) \
|
||||
|| defined(NTO) || defined(OPENBSD) || defined(DARWIN) \
|
||||
- || defined(UNIXWARE)
|
||||
+ || defined(UNIXWARE) || defined(NETBSD)
|
||||
#define _PRSockOptVal_t void *
|
||||
#else
|
||||
#error "Cannot determine architecture"
|
||||
@@ -3370,7 +3370,7 @@
|
||||
PR_EXTERN(PRStatus) _pr_push_ipv6toipv4_layer(PRFileDesc *fd);
|
||||
#if defined(_PR_INET6_PROBE)
|
||||
PR_EXTERN(PRBool) _pr_ipv6_is_present;
|
||||
-#ifdef DARWIN
|
||||
+#if defined(DARWIN) || (defined(__NetBSD__) && defined(IPV6_V6ONLY))
|
||||
static PRBool _pr_ipv6_v6only_on_by_default;
|
||||
#endif
|
||||
PR_IMPLEMENT(PRBool) _pr_test_ipv6_socket()
|
||||
@@ -3385,7 +3385,7 @@
|
||||
*/
|
||||
osfd = socket(AF_INET6, SOCK_STREAM, 0);
|
||||
if (osfd != -1) {
|
||||
-#ifdef DARWIN
|
||||
+#if defined(DARWIN) || (defined(__NetBSD__) && defined(IPV6_V6ONLY))
|
||||
/* In Mac OS X v10.3 Panther Beta the IPV6_V6ONLY socket option
|
||||
* is turned on by default, contrary to what RFC 3493, Section
|
||||
* 5.3 says. So we have to turn it off. Find out whether we
|
||||
@@ -3452,7 +3452,7 @@
|
||||
if (osfd == -1) pt_MapError(_PR_MD_MAP_SOCKET_ERROR, errno);
|
||||
else
|
||||
{
|
||||
-#ifdef DARWIN
|
||||
+#if defined(DARWIN) || (defined(__NetBSD__) && defined(IPV6_V6ONLY))
|
||||
if ((domain == AF_INET6) && _pr_ipv6_v6only_on_by_default)
|
||||
{
|
||||
int on = 0;
|
13
www/MozillaFirebird/patches/patch-aw
Normal file
13
www/MozillaFirebird/patches/patch-aw
Normal file
|
@ -0,0 +1,13 @@
|
|||
$NetBSD: patch-aw,v 1.1.1.1 2003/08/16 14:19:36 taya Exp $
|
||||
|
||||
diff -ru ../Orig/mozilla/widget/src/gtksuperwin/Makefile.in ./widget/src/gtksuperwin/Makefile.in
|
||||
--- ../Orig/mozilla/widget/src/gtksuperwin/Makefile.in 2003-04-19 05:14:09.000000000 +0900
|
||||
+++ ./widget/src/gtksuperwin/Makefile.in 2003-07-31 23:23:30.000000000 +0900
|
||||
@@ -25,6 +25,7 @@
|
||||
MODULE = widget
|
||||
LIBRARY_NAME = gtksuperwin
|
||||
EXPORT_LIBRARY = 1
|
||||
+MKSHLIB = $(MKCSHLIB)
|
||||
|
||||
|
||||
CSRCS = \
|
70
www/MozillaFirebird/patches/patch-ba
Normal file
70
www/MozillaFirebird/patches/patch-ba
Normal file
|
@ -0,0 +1,70 @@
|
|||
$NetBSD: patch-ba,v 1.1.1.1 2003/08/16 14:19:36 taya Exp $
|
||||
|
||||
diff -ru ../Orig/mozilla/nsprpub/pr/include/md/_netbsd.cfg ./nsprpub/pr/include/md/_netbsd.cfg
|
||||
--- ../Orig/mozilla/nsprpub/pr/include/md/_netbsd.cfg 2000-12-02 06:29:17.000000000 +0900
|
||||
+++ ./nsprpub/pr/include/md/_netbsd.cfg 2003-07-31 23:23:33.000000000 +0900
|
||||
@@ -45,7 +45,8 @@
|
||||
|
||||
#define PR_AF_INET6 24 /* same as AF_INET6 */
|
||||
|
||||
-#if defined(__i386__) || defined(__arm32__) || defined(__MIPSEL__)
|
||||
+#if defined(__i386__) || defined(__arm32__) || defined(__arm__) || \
|
||||
+ defined(__armel__) || defined(__MIPSEL__)
|
||||
|
||||
#define IS_LITTLE_ENDIAN 1
|
||||
#undef IS_BIG_ENDIAN
|
||||
@@ -91,7 +92,53 @@
|
||||
#define PR_ALIGN_OF_DOUBLE 4
|
||||
#define PR_ALIGN_OF_POINTER 4
|
||||
|
||||
-#elif defined(__sparc__) || defined(__MIPSEB__)
|
||||
+#elif defined(__sparc_v9__)
|
||||
+
|
||||
+#undef IS_LITTLE_ENDIAN
|
||||
+#define IS_BIG_ENDIAN 1
|
||||
+#define HAVE_LONG_LONG
|
||||
+#define HAVE_ALIGNED_DOUBLES
|
||||
+#define HAVE_ALIGNED_LONGLONGS
|
||||
+
|
||||
+#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_BYTES_PER_WORD_LOG2 3
|
||||
+#define PR_BYTES_PER_DWORD_LOG2 3
|
||||
+
|
||||
+#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
|
||||
+
|
||||
+#elif defined(__sparc__) || defined(__MIPSEB__) || defined(__armeb__)
|
||||
|
||||
#undef IS_LITTLE_ENDIAN
|
||||
#define IS_BIG_ENDIAN 1
|
54
www/MozillaFirebird/patches/patch-bb
Normal file
54
www/MozillaFirebird/patches/patch-bb
Normal file
|
@ -0,0 +1,54 @@
|
|||
$NetBSD: patch-bb,v 1.1.1.1 2003/08/16 14:19:36 taya Exp $
|
||||
|
||||
diff -ru ../Orig/mozilla/nsprpub/pr/include/md/_netbsd.h ./nsprpub/pr/include/md/_netbsd.h
|
||||
--- ../Orig/mozilla/nsprpub/pr/include/md/_netbsd.h 2003-01-17 08:09:14.000000000 +0900
|
||||
+++ ./nsprpub/pr/include/md/_netbsd.h 2003-07-31 23:23:35.000000000 +0900
|
||||
@@ -48,12 +48,20 @@
|
||||
#define _PR_SI_ARCHITECTURE "m68k"
|
||||
#elif defined(__powerpc__)
|
||||
#define _PR_SI_ARCHITECTURE "powerpc"
|
||||
+#elif defined(__sparc_v9__)
|
||||
+#define _PR_SI_ARCHITECTURE "sparc64"
|
||||
#elif defined(__sparc__)
|
||||
#define _PR_SI_ARCHITECTURE "sparc"
|
||||
#elif defined(__mips__)
|
||||
#define _PR_SI_ARCHITECTURE "mips"
|
||||
#elif defined(__arm32__)
|
||||
#define _PR_SI_ARCHITECTURE "arm32"
|
||||
+#elif defined(__arm__)
|
||||
+#define _PR_SI_ARCHITECTURE "arm"
|
||||
+#elif defined(__armel__)
|
||||
+#define _PR_SI_ARCHITECTURE "armel"
|
||||
+#elif defined(__armeb__)
|
||||
+#define _PR_SI_ARCHITECTURE "armeb"
|
||||
#endif
|
||||
|
||||
#if defined(__ELF__)
|
||||
@@ -107,7 +115,17 @@
|
||||
}
|
||||
#define _MD_GET_SP(_thread) CONTEXT(_thread)[2]
|
||||
#endif
|
||||
-#ifdef __sparc__
|
||||
+#ifdef __sparc_v9__
|
||||
+#define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
|
||||
+{ \
|
||||
+ sigsetjmp(CONTEXT(_thread), 1); \
|
||||
+ CONTEXT(_thread)[1] = (unsigned char*) ((_sp) - 176 - 0x7ff); \
|
||||
+ CONTEXT(_thread)[2] = (long) _main; \
|
||||
+ CONTEXT(_thread)[3] = (long) _main + 4; \
|
||||
+ *status = PR_TRUE; \
|
||||
+}
|
||||
+#define _MD_GET_SP(_thread) (CONTEXT(_thread)[2]+0x7ff)
|
||||
+#elif defined(__sparc__)
|
||||
#define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
|
||||
{ \
|
||||
sigsetjmp(CONTEXT(_thread), 1); \
|
||||
@@ -149,7 +167,7 @@
|
||||
}
|
||||
#define _MD_GET_SP(_thread) CONTEXT(_thread)[32]
|
||||
#endif
|
||||
-#ifdef __arm32__
|
||||
+#if defined(__arm32__) || defined(__arm__) || defined(__armel__) || defined(__armeb__)
|
||||
#define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
|
||||
{ \
|
||||
sigsetjmp(CONTEXT(_thread), 1); \
|
21
www/MozillaFirebird/patches/patch-be
Normal file
21
www/MozillaFirebird/patches/patch-be
Normal file
|
@ -0,0 +1,21 @@
|
|||
$NetBSD: patch-be,v 1.1.1.1 2003/08/16 14:19:36 taya Exp $
|
||||
|
||||
diff -ru ../Orig/mozilla/nsprpub/pr/src/io/prsocket.c ./nsprpub/pr/src/io/prsocket.c
|
||||
--- ../Orig/mozilla/nsprpub/pr/src/io/prsocket.c 2002-06-12 05:08:07.000000000 +0900
|
||||
+++ ./nsprpub/pr/src/io/prsocket.c 2003-07-31 23:23:38.000000000 +0900
|
||||
@@ -1299,6 +1299,15 @@
|
||||
if (osfd == -1) {
|
||||
return 0;
|
||||
}
|
||||
+#if defined(__NetBSD__) && defined(_PR_INET6) && defined(IPV6_V6ONLY)
|
||||
+ if(domain == PR_AF_INET6){
|
||||
+ int opt = 0;
|
||||
+ if(setsockopt(osfd, IPPROTO_IPV6, IPV6_V6ONLY, &opt, sizeof(opt))){
|
||||
+ close(osfd);
|
||||
+ return -1;
|
||||
+ }
|
||||
+ }
|
||||
+#endif
|
||||
if (type == SOCK_STREAM)
|
||||
fd = PR_AllocFileDesc(osfd, PR_GetTCPMethods());
|
||||
else
|
17
www/MozillaFirebird/patches/patch-bj
Normal file
17
www/MozillaFirebird/patches/patch-bj
Normal file
|
@ -0,0 +1,17 @@
|
|||
$NetBSD: patch-bj,v 1.1.1.1 2003/08/16 14:19:36 taya Exp $
|
||||
|
||||
diff -ru ../Orig/mozilla/directory/c-sdk/ldap/libraries/libprldap/ldappr-error.c ./directory/c-sdk/ldap/libraries/libprldap/ldappr-error.c
|
||||
--- ../Orig/mozilla/directory/c-sdk/ldap/libraries/libprldap/ldappr-error.c 2003-03-25 22:57:38.000000000 +0900
|
||||
+++ ./directory/c-sdk/ldap/libraries/libprldap/ldappr-error.c 2003-07-31 23:23:40.000000000 +0900
|
||||
@@ -222,6 +222,11 @@
|
||||
#define EDEADLOCK -1
|
||||
#endif
|
||||
|
||||
+#if defined(NETBSD)
|
||||
+#define ENOTSUP -1
|
||||
+#define EDEADLOCK -1
|
||||
+#endif
|
||||
+
|
||||
/* XXX: need to verify that the -1 entries are correct (no mapping) */
|
||||
static struct prldap_errormap_entry prldap_errormap[] = {
|
||||
{ PR_OUT_OF_MEMORY_ERROR, ENOMEM },
|
32
www/MozillaFirebird/patches/patch-bm
Normal file
32
www/MozillaFirebird/patches/patch-bm
Normal file
|
@ -0,0 +1,32 @@
|
|||
$NetBSD: patch-bm,v 1.1.1.1 2003/08/16 14:19:36 taya Exp $
|
||||
|
||||
diff -ru ../Orig/mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_arm_netbsd.cpp ./xpcom/reflect/xptcall/src/md/unix/xptcstubs_arm_netbsd.cpp
|
||||
--- ../Orig/mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_arm_netbsd.cpp 2001-09-29 05:12:52.000000000 +0900
|
||||
+++ ./xpcom/reflect/xptcall/src/md/unix/xptcstubs_arm_netbsd.cpp 2003-07-31 23:23:49.000000000 +0900
|
||||
@@ -118,18 +118,23 @@
|
||||
* so they are contiguous with values passed on the stack, and then calls
|
||||
* PrepareAndDispatch() to do the dirty work.
|
||||
*/
|
||||
+#ifndef __ELF__
|
||||
+#define SYMBOLPREFIX "_"
|
||||
+#else
|
||||
+#define SYMBOLPREFIX
|
||||
+#endif
|
||||
|
||||
#define STUB_ENTRY(n) \
|
||||
__asm__( \
|
||||
- ".global _Stub"#n"__14nsXPTCStubBase\n\t" \
|
||||
-"_Stub"#n"__14nsXPTCStubBase:\n\t" \
|
||||
+ ".global "SYMBOLPREFIX"Stub"#n"__14nsXPTCStubBase\n\t" \
|
||||
+SYMBOLPREFIX"Stub"#n"__14nsXPTCStubBase:\n\t" \
|
||||
"stmfd sp!, {r1, r2, r3} \n\t" \
|
||||
"mov ip, sp \n\t" \
|
||||
"stmfd sp!, {fp, ip, lr, pc} \n\t" \
|
||||
"sub fp, ip, #4 \n\t" \
|
||||
"mov r1, #"#n" \n\t" /* = methodIndex */ \
|
||||
"add r2, sp, #16 \n\t" \
|
||||
- "bl _PrepareAndDispatch__FP14nsXPTCStubBaseUiPUi \n\t" \
|
||||
+ "bl "SYMBOLPREFIX"PrepareAndDispatch__FP14nsXPTCStubBaseUiPUi \n\t" \
|
||||
"ldmea fp, {fp, sp, lr} \n\t" \
|
||||
"add sp, sp, #12 \n\t" \
|
||||
"mov pc, lr \n\t" \
|
18
www/MozillaFirebird/patches/patch-bn
Normal file
18
www/MozillaFirebird/patches/patch-bn
Normal file
|
@ -0,0 +1,18 @@
|
|||
$NetBSD: patch-bn,v 1.1.1.1 2003/08/16 14:19:37 taya Exp $
|
||||
|
||||
diff -ru ../Orig/mozilla/xpcom/io/nsNativeCharsetUtils.cpp ./xpcom/io/nsNativeCharsetUtils.cpp
|
||||
--- ../Orig/mozilla/xpcom/io/nsNativeCharsetUtils.cpp 2003-07-04 05:54:37.000000000 +0900
|
||||
+++ ./xpcom/io/nsNativeCharsetUtils.cpp 2003-07-31 23:23:54.000000000 +0900
|
||||
@@ -265,7 +265,12 @@
|
||||
{
|
||||
const char *blank_list[] = { "", NULL };
|
||||
const char **native_charset_list = blank_list;
|
||||
+#ifdef CODESET
|
||||
const char *native_charset = nl_langinfo(CODESET);
|
||||
+#else
|
||||
+ const char *native_charset = nsnull;
|
||||
+#endif
|
||||
+
|
||||
if (native_charset == nsnull) {
|
||||
NS_ERROR("native charset is unknown");
|
||||
// fallback to ISO-8859-1
|
31
www/MozillaFirebird/patches/patch-bo
Normal file
31
www/MozillaFirebird/patches/patch-bo
Normal file
|
@ -0,0 +1,31 @@
|
|||
$NetBSD: patch-bo,v 1.1.1.1 2003/08/16 14:19:37 taya Exp $
|
||||
|
||||
diff -ru ../Orig/mozilla/nsprpub/configure.in ./nsprpub/configure.in
|
||||
--- ../Orig/mozilla/nsprpub/configure.in 2003-05-20 04:05:48.000000000 +0900
|
||||
+++ ./nsprpub/configure.in 2003-07-31 23:23:55.000000000 +0900
|
||||
@@ -932,6 +932,9 @@
|
||||
DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
|
||||
MDCPUCFG_H=_freebsd.cfg
|
||||
PR_MD_CSRCS=freebsd.c
|
||||
+ if test "$LIBRUNPATH"; then
|
||||
+ DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
|
||||
+ fi
|
||||
;;
|
||||
|
||||
*-hpux*)
|
||||
@@ -2164,7 +2167,14 @@
|
||||
_PTHREAD_LDFLAGS="-lc_r"
|
||||
fi
|
||||
;;
|
||||
- *-openbsd*|*-bsdi*|*-netbsd*)
|
||||
+ *-netbsd*)
|
||||
+ AC_DEFINE(_REENTRANT)
|
||||
+ AC_DEFINE(_THREAD_SAFE)
|
||||
+ if test "$ac_cv_have_dash_pthread" = "yes"; then
|
||||
+ _PTHREAD_LDFLAGS="-pthread"
|
||||
+ fi
|
||||
+ ;;
|
||||
+ *-openbsd*|*-bsdi*)
|
||||
AC_DEFINE(_THREAD_SAFE)
|
||||
dnl -pthread links in -lc_r, so don't specify it explicitly.
|
||||
if test "$ac_cv_have_dash_pthread" = "yes"; then
|
Loading…
Reference in a new issue