head 1.10; access; symbols OPENPKG_E1_MP_HEAD:1.10 OPENPKG_E1_MP:1.10 OPENPKG_E1_MP_2_STABLE:1.8.4.1 OPENPKG_E1_FP:1.8.4.1 OPENPKG_2_STABLE_MP:1.9 OPENPKG_2_STABLE_20061018:1.8.4.1 OPENPKG_2_STABLE_20060622:1.8 OPENPKG_2_STABLE:1.8.0.4 OPENPKG_2_STABLE_BP:1.8 OPENPKG_2_5_RELEASE:1.8 OPENPKG_2_5_SOLID:1.8.0.2 OPENPKG_2_5_SOLID_BP:1.8 OPENPKG_2_4_RELEASE:1.6 OPENPKG_2_4_SOLID:1.6.0.2 OPENPKG_2_4_SOLID_BP:1.6 OPENPKG_CW_FP:1.3; locks; strict; comment @# @; expand @o@; 1.10 date 2006.12.22.16.24.09; author rse; state Exp; branches; next 1.9; commitid HlsjjMcZFUcvnxZr; 1.9 date 2006.10.12.20.41.04; author rse; state Exp; branches; next 1.8; commitid PyGg81YnNBt85rQr; 1.8 date 2005.10.06.06.53.47; author rse; state Exp; branches 1.8.4.1; next 1.7; 1.7 date 2005.08.13.12.11.05; author rse; state Exp; branches; next 1.6; 1.6 date 2005.04.28.21.07.03; author ms; state Exp; branches; next 1.5; 1.5 date 2005.04.25.17.34.26; author ms; state Exp; branches; next 1.4; 1.4 date 2005.03.24.11.41.33; author rse; state Exp; branches; next 1.3; 1.3 date 2004.06.30.12.01.16; author rse; state Exp; branches; next 1.2; 1.2 date 2004.04.29.15.06.54; author thl; state Exp; branches; next 1.1; 1.1 date 2004.02.10.17.09.42; author rse; state Exp; branches; next ; 1.8.4.1 date 2006.10.16.14.49.57; author rse; state Exp; branches; next ; commitid iZxwRSmmWscPXUQr; desc @@ 1.10 log @blind update (still fails to build correctly) @ text @Index: browser/app/Makefile.in --- browser/app/Makefile.in.orig 2006-08-29 04:03:07 +0200 +++ browser/app/Makefile.in 2006-12-22 17:13:52 +0100 @@@@ -176,6 +176,19 @@@@ include $(topsrcdir)/config/static-rules.mk endif +# The binutils ld(1) doesn't properly link with Solaris 10 libc(3). +# Strangely only a few link tasks fail like this one, so selectively +# override the otherwise correct rules.mk Makefile containing binutils ld(1). +ifeq ($(OS_ARCH),SunOS) +OS_LIBS += -lc +LDFLAGS += -L@@l_gccinst@@ +EXTRA_LIBS += -lgcc +$(PROGRAM): $(PROGOBJS) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +$(SIMPLE_PROGRAMS): %$(BIN_SUFFIX): %.$(OBJ_SUFFIX) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +endif + APP_VERSION = $(shell cat $(srcdir)/../config/version.txt) DEFINES += -DAPP_VERSION="$(APP_VERSION)" APP_UA_NAME = $(shell echo $(MOZ_APP_DISPLAYNAME) | sed -e's/[^A-Za-z]//g') Index: config/make-jars.pl --- config/make-jars.pl.orig 2006-02-06 18:17:26 +0100 +++ config/make-jars.pl 2006-12-22 17:13:53 +0100 @@@@ -48,6 +48,7 @@@@ last if ($arg eq "--"); } my $defines = join(' ', @@ARGV[ $ddindex .. $#ARGV ]); +splice @@ARGV, $ddindex, $#ARGV; getopts("d:s:t:c:j:f:avlD:o:p:xz:e"); Index: embedding/browser/gtk/tests/Makefile.in --- embedding/browser/gtk/tests/Makefile.in.orig 2006-03-24 17:10:37 +0100 +++ embedding/browser/gtk/tests/Makefile.in 2006-12-22 17:13:53 +0100 @@@@ -138,6 +138,19 @@@@ include $(topsrcdir)/config/rules.mk +# The binutils ld(1) doesn't properly link with Solaris 10 libc(3). +# Strangely only a few link tasks fail like this one, so selectively +# override the otherwise correct rules.mk Makefile containing binutils ld(1). +ifeq ($(OS_ARCH),SunOS) +OS_LIBS += -lc +LDFLAGS += -L@@l_gccinst@@ +EXTRA_LIBS += -lgcc +$(PROGRAM): $(PROGOBJS) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +$(SIMPLE_PROGRAMS): %$(BIN_SUFFIX): %.$(OBJ_SUFFIX) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +endif + CXXFLAGS += $(MOZ_GTK_CFLAGS) $(MOZ_GTK2_CFLAGS) ifdef ENABLE_GNOME Index: extensions/xmlterm/tests/Makefile.in --- extensions/xmlterm/tests/Makefile.in.orig 2004-04-19 00:14:17 +0200 +++ extensions/xmlterm/tests/Makefile.in 2006-12-22 17:13:53 +0100 @@@@ -75,3 +75,14 @@@@ include $(srcdir)/../config/xmlterm_config.mk include $(topsrcdir)/config/rules.mk + +# The binutils ld(1) doesn't properly link with Solaris 10 libc(3). +# Strangely only a few link tasks fail like this one, so selectively +# override the otherwise correct rules.mk Makefile containing binutils ld(1). +ifeq ($(OS_ARCH),SunOS) +OS_LIBS += -lc +$(PROGRAM): $(PROGOBJS) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +$(SIMPLE_PROGRAMS): %$(BIN_SUFFIX): %.$(OBJ_SUFFIX) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +endif Index: js/src/xpconnect/shell/Makefile.in --- js/src/xpconnect/shell/Makefile.in.orig 2005-04-05 14:35:51 +0200 +++ js/src/xpconnect/shell/Makefile.in 2006-12-22 17:13:53 +0100 @@@@ -63,6 +63,17 @@@@ include $(topsrcdir)/config/rules.mk +# The binutils ld(1) doesn't properly link with Solaris 10 libc(3). +# Strangely only a few link tasks fail like this one, so selectively +# override the otherwise correct rules.mk Makefile containing binutils ld(1). +ifeq ($(OS_ARCH),SunOS) +OS_LIBS += -lc +$(PROGRAM): $(PROGOBJS) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +$(SIMPLE_PROGRAMS): %$(BIN_SUFFIX): %.$(OBJ_SUFFIX) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +endif + DEFINES += -DJS_THREADSAFE # Index: layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp --- layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp.orig 2006-07-25 22:11:52 +0200 +++ layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp 2006-12-22 17:13:53 +0100 @@@@ -50,6 +50,11 @@@@ #include "nsRect.h" #include "nsISVGCairoSurface.h" #include +#ifdef CAIRO_HAS_XLIB_SURFACE +#include +#else +#error Require Cairo with Xlib backend +#endif #ifdef MOZ_X11 extern "C" { Index: layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp --- layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp.orig 2006-11-23 02:10:02 +0100 +++ layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp 2006-12-22 17:13:53 +0100 @@@@ -50,6 +50,7 @@@@ #include "nsIDOMSVGRect.h" #include "nsSVGTypeCIDs.h" #include "nsIComponentManager.h" +#include #include extern cairo_surface_t *gSVGCairoDummySurface; Index: nsprpub/pr/include/md/_freebsd.h --- nsprpub/pr/include/md/_freebsd.h.orig 2004-11-22 22:24:53 +0100 +++ nsprpub/pr/include/md/_freebsd.h 2006-12-22 17:13:53 +0100 @@@@ -43,6 +43,7 @@@@ #if __FreeBSD__ >= 2 #include /* for __FreeBSD_version */ #endif +#include #include #define PR_LINKER_ARCH "freebsd" Index: nsprpub/pr/src/md/unix/unix.c --- nsprpub/pr/src/md/unix/unix.c.orig 2006-02-07 20:29:04 +0100 +++ nsprpub/pr/src/md/unix/unix.c 2006-12-22 17:13:53 +0100 @@@@ -68,7 +68,8 @@@@ * PRInt32* pointer to a _PRSockLen_t* pointer. */ #if defined(HAVE_SOCKLEN_T) \ - || (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) + || (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) \ + || defined(FREEBSD) #define _PRSockLen_t socklen_t #elif defined(IRIX) || defined(HPUX) || defined(OSF1) || defined(SOLARIS) \ || defined(AIX4_1) || defined(LINUX) || defined(SONY) \ @@@@ -76,7 +77,7 @@@@ || defined(SUNOS4) || defined(NCR) || defined(DARWIN) \ || defined(NEXTSTEP) || defined(QNX) #define _PRSockLen_t int -#elif (defined(AIX) && !defined(AIX4_1)) || defined(FREEBSD) \ +#elif (defined(AIX) && !defined(AIX4_1)) \ || defined(NETBSD) || defined(OPENBSD) || defined(UNIXWARE) \ || defined(DGUX) || defined(VMS) || defined(NTO) || defined(RISCOS) #define _PRSockLen_t size_t Index: nsprpub/pr/src/pthreads/ptio.c --- nsprpub/pr/src/pthreads/ptio.c.orig 2006-02-07 02:29:02 +0100 +++ nsprpub/pr/src/pthreads/ptio.c 2006-12-22 17:13:53 +0100 @@@@ -3460,6 +3460,17 @@@@ &on, sizeof(on)); } #endif +#if (defined(_PR_INET6_PROBE) || defined(_PR_INET6)) && \ + defined(__FreeBSD__) && defined(IPV6_V6ONLY) + if (domain == PR_AF_INET6) { + int opt = 0; + if (setsockopt(osfd, IPPROTO_IPV6, IPV6_V6ONLY, + &opt, sizeof(opt))) { + close(osfd); + return NULL; + } + } +#endif fd = pt_SetMethods(osfd, ftype, PR_FALSE, PR_FALSE); if (fd == NULL) close(osfd); } Index: security/nss/cmd/shlibsign/Makefile --- security/nss/cmd/shlibsign/Makefile.orig 2006-04-19 02:46:06 +0200 +++ security/nss/cmd/shlibsign/Makefile 2006-12-22 17:13:53 +0100 @@@@ -74,6 +74,17 @@@@ include $(CORE_DEPTH)/coreconf/rules.mk +# The binutils ld(1) doesn't properly link with Solaris 10 libc(3). +# Strangely only a few link tasks fail like this one, so selectively +# override the otherwise correct rules.mk Makefile containing binutils ld(1). +ifeq ($(OS_ARCH),SunOS) +OS_LIBS += -lc +$(PROGRAM): $(PROGOBJS) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +$(SIMPLE_PROGRAMS): %$(BIN_SUFFIX): %.$(OBJ_SUFFIX) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +endif + ####################################################################### # (6) Execute "component" rules. (OPTIONAL) # ####################################################################### Index: security/nss/cmd/shlibsign/mangle/Makefile --- security/nss/cmd/shlibsign/mangle/Makefile.orig 2004-04-25 17:02:54 +0200 +++ security/nss/cmd/shlibsign/mangle/Makefile 2006-12-22 17:13:53 +0100 @@@@ -65,6 +65,17 @@@@ include $(CORE_DEPTH)/coreconf/rules.mk +# The binutils ld(1) doesn't properly link with Solaris 10 libc(3). +# Strangely only a few link tasks fail like this one, so selectively +# override the otherwise correct rules.mk Makefile containing binutils ld(1). +ifeq ($(OS_ARCH),SunOS) +OS_LIBS += -lc +$(PROGRAM): $(PROGOBJS) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +$(SIMPLE_PROGRAMS): %$(BIN_SUFFIX): %.$(OBJ_SUFFIX) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +endif + ####################################################################### # (6) Execute "component" rules. (OPTIONAL) # ####################################################################### Index: security/nss/lib/pki1/oiddata.h --- security/nss/lib/pki1/oiddata.h.orig 2005-03-14 19:02:00 +0100 +++ security/nss/lib/pki1/oiddata.h 2006-12-22 17:13:53 +0100 @@@@ -42,6 +42,9 @@@@ static const char OIDDATA_CVS_ID[] = "@@(#) $RCSfile: oiddata.h,v $ $Revision: 1.4 $ $Date: 2005/03/14 18:02:00 $ ; @@(#) $RCSfile: oiddata.h,v $ $Revision: 1.4 $ $Date: 2005/03/14 18:02:00 $"; #endif /* DEBUG */ +#ifndef PKI1T_H +#include "pki1t.h" +#endif #ifndef NSSPKI1T_H #include "nsspki1t.h" #endif /* NSSPKI1T_H */ Index: widget/src/xremoteclient/Makefile.in --- widget/src/xremoteclient/Makefile.in.orig 2005-04-04 21:08:51 +0200 +++ widget/src/xremoteclient/Makefile.in 2006-12-22 17:13:53 +0100 @@@@ -88,6 +88,17 @@@@ include $(topsrcdir)/config/rules.mk +# The binutils ld(1) doesn't properly link with Solaris 10 libc(3). +# Strangely only a few link tasks fail like this one, so selectively +# override the otherwise correct rules.mk Makefile containing binutils ld(1). +ifeq ($(OS_ARCH),SunOS) +OS_LIBS += -lc +$(PROGRAM): $(PROGOBJS) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) -lxpcom $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +$(SIMPLE_PROGRAMS): %$(BIN_SUFFIX): %.$(OBJ_SUFFIX) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) -lxpcom $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +endif + ifeq ($(OS_ARCH), OpenVMS) DEFINES += -DGENERIC_MOTIF_REDEFINES endif Index: xpcom/tools/registry/Makefile.in --- xpcom/tools/registry/Makefile.in.orig 2005-06-30 04:04:23 +0200 +++ xpcom/tools/registry/Makefile.in 2006-12-22 17:13:53 +0100 @@@@ -71,3 +71,13 @@@@ include $(topsrcdir)/config/rules.mk +# The binutils ld(1) doesn't properly link with Solaris 10 libc(3). +# Strangely only a few link tasks fail like this one, so selectively +# override the otherwise correct rules.mk Makefile containing binutils ld(1). +ifeq ($(OS_ARCH),SunOS) +OS_LIBS += -lc +$(PROGRAM): $(PROGOBJS) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) -lxpcom $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +$(SIMPLE_PROGRAMS): %$(BIN_SUFFIX): %.$(OBJ_SUFFIX) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) -lxpcom $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +endif @ 1.9 log @blind update (partly broken) and hence downgrade to EVAL class again @ text @d2 3 a4 3 --- browser/app/Makefile.in.orig 2005-09-07 03:51:58 +0200 +++ browser/app/Makefile.in 2005-11-30 14:56:57 +0100 @@@@ -169,6 +169,19 @@@@ d23 1 a23 1 d25 2 a26 2 --- config/make-jars.pl.orig 2005-09-28 20:19:34 +0200 +++ config/make-jars.pl 2005-11-30 14:56:49 +0100 d36 3 a38 3 --- embedding/browser/gtk/tests/Makefile.in.orig 2005-02-04 00:01:41 +0100 +++ embedding/browser/gtk/tests/Makefile.in 2005-11-30 14:56:57 +0100 @@@@ -131,6 +131,19 @@@@ d60 1 a60 1 +++ extensions/xmlterm/tests/Makefile.in 2005-11-30 14:56:57 +0100 d78 1 a78 1 +++ js/src/xpconnect/shell/Makefile.in 2005-11-30 14:56:49 +0100 d98 2 a99 2 --- layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp.orig 2005-10-03 23:12:35 +0200 +++ layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp 2005-11-30 14:56:49 +0100 d113 2 a114 2 --- layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp.orig 2005-10-13 20:30:21 +0200 +++ layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp 2005-11-30 14:56:49 +0100 d124 2 a125 2 --- nsprpub/pr/include/md/_freebsd.h.orig 2004-11-23 22:22:35 +0100 +++ nsprpub/pr/include/md/_freebsd.h 2005-11-30 14:56:49 +0100 d135 3 a137 3 --- nsprpub/pr/src/md/unix/unix.c.orig 2005-08-18 19:24:37 +0200 +++ nsprpub/pr/src/md/unix/unix.c 2005-11-30 14:56:49 +0100 @@@@ -65,7 +65,8 @@@@ d147 1 a147 1 @@@@ -73,7 +74,7 @@@@ d157 2 a158 2 --- nsprpub/pr/src/pthreads/ptio.c.orig 2005-08-18 19:24:38 +0200 +++ nsprpub/pr/src/pthreads/ptio.c 2005-11-30 14:56:49 +0100 d178 3 a180 3 --- security/nss/cmd/shlibsign/Makefile.orig 2004-04-25 17:02:53 +0200 +++ security/nss/cmd/shlibsign/Makefile 2005-11-30 14:56:57 +0100 @@@@ -91,6 +91,17 @@@@ a197 11 @@@@ -104,8 +115,8 @@@@ include ../platrules.mk %.chk: %.$(DLL_SUFFIX) -ifeq ($(OS_TARGET), OS2) - @@cmd.exe /c sign.cmd $(DIST) $(OBJDIR) $(OS_TARGET) $< +ifeq ($(OS_TARGET), SunOS) + touch `echo $< | cut -f1,1 -d.`.chk else @@sh ./sign.sh $(DIST) $(OBJDIR) $(OS_TARGET) $< endif d200 1 a200 1 +++ security/nss/cmd/shlibsign/mangle/Makefile 2005-11-30 14:56:57 +0100 d221 1 a221 1 +++ security/nss/lib/pki1/oiddata.h 2005-11-30 14:57:06 +0100 d234 1 a234 1 +++ widget/src/xremoteclient/Makefile.in 2005-11-30 14:56:49 +0100 d255 1 a255 1 +++ xpcom/tools/registry/Makefile.in 2005-11-30 14:56:49 +0100 @ 1.8 log @upgrading package: firefox 1.0.6 -> 1.0.7 @ text @d1 6 a6 9 Index: nsprpub/pr/include/md/_freebsd.h --- nsprpub/pr/include/md/_freebsd.h.orig Sat Feb 16 09:12:55 2002 +++ nsprpub/pr/include/md/_freebsd.h Thu Aug 8 19:31:23 2002 @@@@ -40,6 +40,7 @@@@ #if __FreeBSD__ >= 2 #include /* for __FreeBSD_version */ #endif +#include #include d8 15 a22 95 #define PR_LINKER_ARCH "freebsd" Index: nsprpub/pr/include/md/_pth.h --- nsprpub/pr/include/md/_pth.h.orig 2002-12-12 00:10:39 +0100 +++ nsprpub/pr/include/md/_pth.h 2004-12-27 19:52:48 +0100 @@@@ -90,7 +90,7 @@@@ #define _PT_PTHREAD_MUTEXATTR_INIT pthread_mutexattr_init #define _PT_PTHREAD_MUTEXATTR_DESTROY pthread_mutexattr_destroy #define _PT_PTHREAD_MUTEX_INIT(m, a) pthread_mutex_init(&(m), &(a)) -#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) (EBUSY == pthread_mutex_trylock(&(m))) +#define _PT_PTHREAD_MUTEX_IS_LOCKED(m) (0 != pthread_mutex_trylock(&(m))) #if defined(DARWIN) #define _PT_PTHREAD_CONDATTR_INIT(x) 0 #else Index: nsprpub/pr/src/md/unix/unix.c --- nsprpub/pr/src/md/unix/unix.c.orig Sat May 31 18:06:04 2003 +++ nsprpub/pr/src/md/unix/unix.c Sat May 31 18:04:43 2003 @@@@ -65,7 +65,8 @@@@ * PRInt32* pointer to a _PRSockLen_t* pointer. */ #if defined(HAVE_SOCKLEN_T) \ - || (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) + || (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) \ + || defined(FREEBSD) #define _PRSockLen_t socklen_t #elif defined(IRIX) || defined(HPUX) || defined(OSF1) || defined(SOLARIS) \ || defined(AIX4_1) || defined(LINUX) || defined(SONY) \ @@@@ -73,7 +74,7 @@@@ || defined(SUNOS4) || defined(NCR) || defined(DARWIN) \ || defined(NEXTSTEP) || defined(QNX) #define _PRSockLen_t int -#elif (defined(AIX) && !defined(AIX4_1)) || defined(FREEBSD) \ +#elif (defined(AIX) && !defined(AIX4_1)) \ || defined(NETBSD) || defined(OPENBSD) || defined(UNIXWARE) \ || defined(DGUX) || defined(VMS) || defined(NTO) #define _PRSockLen_t size_t Index: nsprpub/pr/src/pthreads/ptio.c --- nsprpub/pr/src/pthreads/ptio.c.orig 2003-07-15 00:12:19 +0200 +++ nsprpub/pr/src/pthreads/ptio.c 2004-12-27 19:54:28 +0100 @@@@ -189,7 +189,7 @@@@ #endif #endif -#ifdef DARWIN +#if defined(DARWIN) || defined(FREEBSD) static PRBool _pr_ipv6_v6only_on_by_default; /* The IPV6_V6ONLY socket option is not defined on Mac OS X 10.1. */ #ifndef IPV6_V6ONLY @@@@ -1154,7 +1154,7 @@@@ _pr_stderr = pt_SetMethods(2, PR_DESC_FILE, PR_FALSE, PR_TRUE); PR_ASSERT(_pr_stdin && _pr_stdout && _pr_stderr); -#ifdef DARWIN +#if defined(DARWIN) || defined(FREEBSD) /* 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 @@@@ -3462,7 +3462,7 @@@@ if (osfd == -1) pt_MapError(_PR_MD_MAP_SOCKET_ERROR, errno); else { -#ifdef DARWIN +#if defined(DARWIN) || defined(FREEBSD) if ((domain == AF_INET6) && _pr_ipv6_v6only_on_by_default) { int on = 0; @@@@ -3470,6 +3470,17 @@@@ &on, sizeof(on)); } #endif +#if (defined(_PR_INET6_PROBE) || defined(_PR_INET6)) && \ + defined(__FreeBSD__) && defined(IPV6_V6ONLY) + if (domain == PR_AF_INET6) { + int opt = 0; + if (setsockopt(osfd, IPPROTO_IPV6, IPV6_V6ONLY, + &opt, sizeof(opt))) { + close(osfd); + return NULL; + } + } +#endif fd = pt_SetMethods(osfd, ftype, PR_FALSE, PR_FALSE); if (fd == NULL) close(osfd); } Index: layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp --- layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp.orig 2005-02-04 20:01:59 +0100 +++ layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp 2005-02-04 20:02:52 +0100 @@@@ -50,6 +50,11 @@@@ #include "nsRenderingContextGTK.h" #include #include +#ifdef CAIRO_HAS_XLIB_SURFACE +#include +#else +#error Require Cairo with Xlib backend +#endif a23 13 /** * \addtogroup cairo_renderer Cairo Rendering Engine Index: layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp --- layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp.orig 2004-03-16 22:40:07 +0100 +++ layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp 2005-02-04 20:03:40 +0100 @@@@ -50,6 +50,7 @@@@ #include "nsIDOMSVGRect.h" #include "nsSVGTypeCIDs.h" #include "nsIComponentManager.h" +#include #include /** d25 3 a27 3 --- config/make-jars.pl.orig 2004-07-21 20:33:37 +0200 +++ config/make-jars.pl 2005-04-22 20:34:14 +0200 @@@@ -40,6 +40,7 @@@@ d33 1 a33 1 getopts("d:s:t:f:avlD:o:p:xz:"); d35 4 a38 9 The binutils ld(1) doesn't properly link with Solaris 10 libc(3) anymore, probably influenced by Sun's new decision to only provide dynamic libraries. Strangely only a few link tasks fail, so selectively override the otherwise correct makefiles containing binutils ld(1). Index: xpcom/tools/registry/Makefile --- xpcom/tools/registry/Makefile.in.orig 2004-02-19 03:44:01.000000000 +0100 +++ xpcom/tools/registry/Makefile.in 2005-04-27 11:32:16.843943386 +0200 @@@@ -59,3 +59,13 @@@@ d47 2 d50 1 a50 1 + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) -lxpcom $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) d52 1 a52 1 + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) -lxpcom $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) d54 9 a62 4 Index: widget/src/xremoteclient/Makefile.in --- widget/src/xremoteclient/Makefile.in.orig 2004-01-07 14:36:56.000000000 +0100 +++ widget/src/xremoteclient/Makefile.in 2005-04-27 11:32:15.926611978 +0200 @@@@ -73,6 +73,17 @@@@ d65 1 a65 1 d72 1 a72 1 + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) -lxpcom $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) d74 1 a74 1 + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) -lxpcom $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) a75 4 + ifeq ($(OS_ARCH), OpenVMS) DEFINES += -DGENERIC_MOTIF_REDEFINES endif d77 3 a79 3 --- js/src/xpconnect/shell/Makefile.in.orig 2003-11-15 01:11:10.000000000 +0100 +++ js/src/xpconnect/shell/Makefile.in 2005-04-27 12:09:35.762975909 +0200 @@@@ -60,6 +60,17 @@@@ d97 35 a131 5 Index: chrome/tools/chromereg/Makefile.in --- chrome/tools/chromereg/Makefile.in.orig 2003-12-22 21:45:06.000000000 +0100 +++ chrome/tools/chromereg/Makefile.in 2005-04-27 16:21:14.205900993 +0200 @@@@ -44,3 +44,14 @@@@ $(NULL) d133 44 a176 12 include $(topsrcdir)/config/rules.mk + +# The binutils ld(1) doesn't properly link with Solaris 10 libc(3). +# Strangely only a few link tasks fail like this one, so selectively +# override the otherwise correct rules.mk Makefile containing binutils ld(1). +ifeq ($(OS_ARCH),SunOS) +OS_LIBS += -lc +$(PROGRAM): $(PROGOBJS) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +$(SIMPLE_PROGRAMS): %$(BIN_SUFFIX): %.$(OBJ_SUFFIX) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +endif d178 3 a180 3 --- security/nss/cmd/shlibsign/Makefile.orig 2003-04-16 00:42:09.000000000 +0200 +++ security/nss/cmd/shlibsign/Makefile 2005-04-27 18:13:37.842242152 +0200 @@@@ -87,6 +87,17 @@@@ d198 1 a198 1 @@@@ -100,8 +110,8 @@@@ d210 3 a212 3 --- security/nss/cmd/shlibsign/mangle/Makefile.orig 2003-02-05 00:16:54.000000000 +0100 +++ security/nss/cmd/shlibsign/mangle/Makefile 2005-04-27 16:51:22.816692955 +0200 @@@@ -61,6 +61,17 @@@@ d230 17 a246 5 Index: extensions/xmlterm/tests/Makefile.in --- extensions/xmlterm/tests/Makefile.in.orig 2001-03-10 04:25:14.000000000 +0100 +++ extensions/xmlterm/tests/Makefile.in 2005-04-27 18:34:43.020625605 +0200 @@@@ -70,3 +70,14 @@@@ include $(srcdir)/../config/xmlterm_config.mk a248 17 + +# The binutils ld(1) doesn't properly link with Solaris 10 libc(3). +# Strangely only a few link tasks fail like this one, so selectively +# override the otherwise correct rules.mk Makefile containing binutils ld(1). +ifeq ($(OS_ARCH),SunOS) +OS_LIBS += -lc +$(PROGRAM): $(PROGOBJS) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +$(SIMPLE_PROGRAMS): %$(BIN_SUFFIX): %.$(OBJ_SUFFIX) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +endif Index: browser/app/Makefile.in --- browser/app/Makefile.in.orig 2004-11-07 01:33:34.000000000 +0100 +++ browser/app/Makefile.in 2005-04-27 19:25:12.843462753 +0200 @@@@ -158,6 +158,19 @@@@ include $(topsrcdir)/config/static-rules.mk endif a254 2 +LDFLAGS += -L@@l_gccinst@@ +EXTRA_LIBS += -lgcc d256 1 a256 1 + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) d258 1 a258 1 + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) d261 7 a267 7 APP_VERSION = $(shell cat $(srcdir)/../config/version.txt) DEFINES += -DAPP_VERSION=\"$(APP_VERSION)\" Index: embedding/browser/gtk/tests/Makefile.in --- embedding/browser/gtk/tests/Makefile.in.orig 2003-10-07 04:43:00.000000000 +0200 +++ embedding/browser/gtk/tests/Makefile.in 2005-04-27 19:52:07.615790759 +0200 @@@@ -114,6 +114,19 @@@@ a275 2 +LDFLAGS += -L@@l_gccinst@@ +EXTRA_LIBS += -lgcc d277 1 a277 1 + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) d279 1 a279 1 + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) a280 630 + CXXFLAGS += $(MOZ_GTK_CFLAGS) $(MOZ_GTK2_CFLAGS) ifdef ENABLE_GNOME Repair build configuration and replace conflicting identifiers (like global namespace variable names 'L' or 'R' - a bad idea) to correct build errors on Solaris x86 and Solaris SPARC. Index: layout/base/public/nsBidi.h --- layout/base/public/nsBidi.h.orig 2002-11-23 00:49:26.000000000 +0100 +++ layout/base/public/nsBidi.h 2005-04-27 15:23:33.786839294 +0200 @@@@ -281,36 +281,36 @@@@ #define DIRPROP_FLAG_MULTI_RUNS (1UL<<31) /* are there any characters that are LTR or RTL? */ -#define MASK_LTR (DIRPROP_FLAG(L)|DIRPROP_FLAG(EN)|DIRPROP_FLAG(AN)|DIRPROP_FLAG(LRE)|DIRPROP_FLAG(LRO)) -#define MASK_RTL (DIRPROP_FLAG(R)|DIRPROP_FLAG(AL)|DIRPROP_FLAG(RLE)|DIRPROP_FLAG(RLO)) +#define MASK_LTR (DIRPROP_FLAG(Moz_L)|DIRPROP_FLAG(Moz_EN)|DIRPROP_FLAG(Moz_AN)|DIRPROP_FLAG(Moz_LRE)|DIRPROP_FLAG(Moz_LRO)) +#define MASK_RTL (DIRPROP_FLAG(Moz_R)|DIRPROP_FLAG(Moz_AL)|DIRPROP_FLAG(Moz_RLE)|DIRPROP_FLAG(Moz_RLO)) /* explicit embedding codes */ -#define MASK_LRX (DIRPROP_FLAG(LRE)|DIRPROP_FLAG(LRO)) -#define MASK_RLX (DIRPROP_FLAG(RLE)|DIRPROP_FLAG(RLO)) -#define MASK_OVERRIDE (DIRPROP_FLAG(LRO)|DIRPROP_FLAG(RLO)) +#define MASK_LRX (DIRPROP_FLAG(Moz_LRE)|DIRPROP_FLAG(Moz_LRO)) +#define MASK_RLX (DIRPROP_FLAG(Moz_RLE)|DIRPROP_FLAG(Moz_RLO)) +#define MASK_OVERRIDE (DIRPROP_FLAG(Moz_LRO)|DIRPROP_FLAG(Moz_RLO)) -#define MASK_EXPLICIT (MASK_LRX|MASK_RLX|DIRPROP_FLAG(PDF)) -#define MASK_BN_EXPLICIT (DIRPROP_FLAG(BN)|MASK_EXPLICIT) +#define MASK_EXPLICIT (MASK_LRX|MASK_RLX|DIRPROP_FLAG(Moz_PDF)) +#define MASK_BN_EXPLICIT (DIRPROP_FLAG(Moz_BN)|MASK_EXPLICIT) /* paragraph and segment separators */ -#define MASK_B_S (DIRPROP_FLAG(B)|DIRPROP_FLAG(S)) +#define MASK_B_S (DIRPROP_FLAG(Moz_B)|DIRPROP_FLAG(Moz_S)) /* all types that are counted as White Space or Neutral in some steps */ -#define MASK_WS (MASK_B_S|DIRPROP_FLAG(WS)|MASK_BN_EXPLICIT) -#define MASK_N (DIRPROP_FLAG(O_N)|MASK_WS) +#define MASK_WS (MASK_B_S|DIRPROP_FLAG(Moz_WS)|MASK_BN_EXPLICIT) +#define MASK_N (DIRPROP_FLAG(Moz_O_N)|MASK_WS) /* all types that are included in a sequence of European Terminators for (W5) */ -#define MASK_ET_NSM_BN (DIRPROP_FLAG(ET)|DIRPROP_FLAG(NSM)|MASK_BN_EXPLICIT) +#define MASK_ET_NSM_BN (DIRPROP_FLAG(Moz_ET)|DIRPROP_FLAG(Moz_NSM)|MASK_BN_EXPLICIT) /* types that are neutrals or could becomes neutrals in (Wn) */ -#define MASK_POSSIBLE_N (DIRPROP_FLAG(CS)|DIRPROP_FLAG(ES)|DIRPROP_FLAG(ET)|MASK_N) +#define MASK_POSSIBLE_N (DIRPROP_FLAG(Moz_CS)|DIRPROP_FLAG(Moz_ES)|DIRPROP_FLAG(Moz_ET)|MASK_N) /* * These types may be changed to "e", * the embedding type (L or R) of the run, * in the Bidi algorithm (N2) */ -#define MASK_EMBEDDING (DIRPROP_FLAG(NSM)|MASK_POSSIBLE_N) +#define MASK_EMBEDDING (DIRPROP_FLAG(Moz_NSM)|MASK_POSSIBLE_N) /* the dirProp's L and R are defined to 0 and 1 values in nsCharType */ #define GET_LR_FROM_LEVEL(level) ((DirProp)((level)&1)) @@@@ -573,18 +573,18 @@@@ * the text must be zero-terminated. * * @@param aParaLevel specifies the default level for the paragraph; - * it is typically 0 (LTR) or 1 (RTL). + * it is typically 0 (Moz_LTR) or 1 (Moz_RTL). * If the function shall determine the paragraph level from the text, * then aParaLevel can be set to * either NSBIDI_DEFAULT_LTR * or NSBIDI_DEFAULT_RTL; * if there is no strongly typed character, then - * the desired default is used (0 for LTR or 1 for RTL). + * the desired default is used (0 for Moz_LTR or 1 for Moz_RTL). * Any other value between 0 and NSBIDI_MAX_EXPLICIT_LEVEL is also valid, - * with odd levels indicating RTL. + * with odd levels indicating Moz_RTL. * * @@param aEmbeddingLevels (in) may be used to preset the embedding and override levels, - * ignoring characters like LRE and PDF in the text. + * ignoring characters like Moz_LRE and Moz_PDF in the text. * A level overrides the directional property of its corresponding * (same index) character if the level has the * NSBIDI_LEVEL_OVERRIDE bit set.

@@@@ -620,7 +620,7 @@@@ * It is not necessary if the paragraph is treated as a single line.

* * After line-breaking, rules (L1) and (L2) for the treatment of - * trailing WS and for reordering are performed on + * trailing Moz_WS and for reordering are performed on * an nsBidi object that represents a line.

* * Important: the line nsBidi object shares data with @@@@ -946,7 +946,7 @@@@ /** * Give a Unichar - * return PR_TRUE if the Unichar is a Bidi control character (LRE, RLE, PDF, LRO, RLO, LRM, RLM) + * return PR_TRUE if the Unichar is a Bidi control character (Moz_LRE, Moz_RLE, Moz_PDF, Moz_LRO, Moz_RLO, Moz_LRM, Moz_RLM) * return PR_FALSE, otherwise */ PRBool IsBidiControl(PRUnichar aChar); @@@@ -978,7 +978,7 @@@@ /** the overall paragraph or line directionality - see nsBidiDirection */ nsBidiDirection mDirection; - /** characters after trailingWSStart are WS and are */ + /** characters after trailingWSStart are Moz_WS and are */ /* implicitly at the paraLevel (rule (L1)) - levels may not reflect that */ PRInt32 mTrailingWSStart; Index: layout/base/src/nsBidi.cpp --- layout/base/src/nsBidi.cpp.orig 2005-04-27 14:12:15.099746000 +0200 +++ layout/base/src/nsBidi.cpp 2005-04-27 15:26:21.014728623 +0200 @@@@ -63,32 +63,32 @@@@ is easier with the same names for the Bidi types in the code as there. */ enum { - L = eCharType_LeftToRight, - R = eCharType_RightToLeft, - EN = eCharType_EuropeanNumber, - ES = eCharType_EuropeanNumberSeparator, - ET = eCharType_EuropeanNumberTerminator, - AN = eCharType_ArabicNumber, - CS = eCharType_CommonNumberSeparator, - B = eCharType_BlockSeparator, - S = eCharType_SegmentSeparator, - WS = eCharType_WhiteSpaceNeutral, - O_N = eCharType_OtherNeutral, - LRE = eCharType_LeftToRightEmbedding, - LRO = eCharType_LeftToRightOverride, - AL = eCharType_RightToLeftArabic, - RLE = eCharType_RightToLeftEmbedding, - RLO = eCharType_RightToLeftOverride, - PDF = eCharType_PopDirectionalFormat, - NSM = eCharType_DirNonSpacingMark, - BN = eCharType_BoundaryNeutral, + Moz_L = eCharType_LeftToRight, + Moz_R = eCharType_RightToLeft, + Moz_EN = eCharType_EuropeanNumber, + Moz_ES = eCharType_EuropeanNumberSeparator, + Moz_ET = eCharType_EuropeanNumberTerminator, + Moz_AN = eCharType_ArabicNumber, + Moz_CS = eCharType_CommonNumberSeparator, + Moz_B = eCharType_BlockSeparator, + Moz_S = eCharType_SegmentSeparator, + Moz_WS = eCharType_WhiteSpaceNeutral, + Moz_O_N = eCharType_OtherNeutral, + Moz_LRE = eCharType_LeftToRightEmbedding, + Moz_LRO = eCharType_LeftToRightOverride, + Moz_AL = eCharType_RightToLeftArabic, + Moz_RLE = eCharType_RightToLeftEmbedding, + Moz_RLO = eCharType_RightToLeftOverride, + Moz_PDF = eCharType_PopDirectionalFormat, + Moz_NSM = eCharType_DirNonSpacingMark, + Moz_BN = eCharType_BoundaryNeutral, dirPropCount }; /* to avoid some conditional statements, use tiny constant arrays */ -static Flags flagLR[2]={ DIRPROP_FLAG(L), DIRPROP_FLAG(R) }; -static Flags flagE[2]={ DIRPROP_FLAG(LRE), DIRPROP_FLAG(RLE) }; -static Flags flagO[2]={ DIRPROP_FLAG(LRO), DIRPROP_FLAG(RLO) }; +static Flags flagLR[2]={ DIRPROP_FLAG(Moz_L), DIRPROP_FLAG(Moz_R) }; +static Flags flagE[2]={ DIRPROP_FLAG(Moz_LRE), DIRPROP_FLAG(Moz_RLE) }; +static Flags flagO[2]={ DIRPROP_FLAG(Moz_LRO), DIRPROP_FLAG(Moz_RLO) }; #define DIRPROP_FLAG_LR(level) flagLR[(level)&1] #define DIRPROP_FLAG_E(level) flagE[(level)&1] @@@@ -348,10 +348,10 @@@@ mParaLevel&=1; } if(aParaLevel&1) { - mFlags=DIRPROP_FLAG(R); + mFlags=DIRPROP_FLAG(Moz_R); mDirection=NSBIDI_RTL; } else { - mFlags=DIRPROP_FLAG(L); + mFlags=DIRPROP_FLAG(Moz_L); mDirection=NSBIDI_LTR; } @@@@ -509,14 +509,14 @@@@ flags|=DIRPROP_FLAG(dirProps[i]=dirProp=GetCharType(uchar)); } else { /* a surrogate pair */ - dirProps[i++]=BN; /* first surrogate in the pair gets the BN type */ - flags|=DIRPROP_FLAG(dirProps[i]=dirProp=GetCharType(GET_UTF_32(uchar, aText[i])))|DIRPROP_FLAG(BN); + dirProps[i++]=Moz_BN; /* first surrogate in the pair gets the Moz_BN type */ + flags|=DIRPROP_FLAG(dirProps[i]=dirProp=GetCharType(GET_UTF_32(uchar, aText[i])))|DIRPROP_FLAG(Moz_BN); } ++i; - if(dirProp==L) { + if(dirProp==Moz_L) { mParaLevel=0; break; - } else if(dirProp==R || dirProp==AL) { + } else if(dirProp==Moz_R || dirProp==Moz_AL) { mParaLevel=1; break; } else if(i==length) { @@@@ -539,8 +539,8 @@@@ flags|=DIRPROP_FLAG(dirProps[i]=GetCharType(uchar)); } else { /* a surrogate pair */ - dirProps[i++]=BN; /* second surrogate in the pair gets the BN type */ - flags|=DIRPROP_FLAG(dirProps[i]=GetCharType(GET_UTF_32(uchar, aText[i])))|DIRPROP_FLAG(BN); + dirProps[i++]=Moz_BN; /* second surrogate in the pair gets the Moz_BN type */ + flags|=DIRPROP_FLAG(dirProps[i]=GetCharType(GET_UTF_32(uchar, aText[i])))|DIRPROP_FLAG(Moz_BN); } ++i; } @@@@ -590,7 +590,7 @@@@ * Handling the stack of explicit levels (Xn): * * With the Bidi stack of explicit levels, - * as pushed with each LRE, RLE, LRO, and RLO and popped with each PDF, + * as pushed with each Moz_LRE, Moz_RLE, Moz_LRO, and Moz_RLO and popped with each Moz_PDF, * the explicit level must never exceed NSBIDI_MAX_EXPLICIT_LEVEL==61. * * In order to have a correct push-pop semantics even in the case of overflows, @@@@ -646,15 +646,15 @@@@ for(i=0; i0) { --countOver61; } else if(countOver60>0 && (embeddingLevel&~NSBIDI_LEVEL_OVERRIDE)!=NSBIDI_MAX_EXPLICIT_LEVEL) { - /* handle LRx overflows from level 60 */ + /* handle Moz_LRx overflows from level 60 */ --countOver60; } else if(stackTop>0) { /* this is the pop operation; it also pops level 61 while countOver60>0 */ @@@@ -698,23 +698,23 @@@@ embeddingLevel=stack[stackTop]; /* } else { (underflow) */ } - flags|=DIRPROP_FLAG(BN); + flags|=DIRPROP_FLAG(Moz_BN); break; - case B: + case Moz_B: /* - * We do not really expect to see a paragraph separator (B), + * We do not really expect to see a paragraph separator (Moz_B), * but we should do something reasonable with it, * especially at the end of the text. */ stackTop=0; countOver60=countOver61=0; embeddingLevel=level=mParaLevel; - flags|=DIRPROP_FLAG(B); + flags|=DIRPROP_FLAG(Moz_B); break; - case BN: - /* BN, LRE, RLE, and PDF are supposed to be removed (X9) */ + case Moz_BN: + /* Moz_BN, Moz_LRE, Moz_RLE, and Moz_PDF are supposed to be removed (X9) */ /* they will get their levels set correctly in AdjustWSLevels() */ - flags|=DIRPROP_FLAG(BN); + flags|=DIRPROP_FLAG(Moz_BN); break; default: /* all other types get the "real" level */ @@@@ -733,7 +733,7 @@@@ } /* - * We need to set reasonable levels even on BN codes and + * We need to set reasonable levels even on Moz_BN codes and * explicit codes because we will later look at same-level runs (X10). */ levels[i]=level; @@@@ -742,7 +742,7 @@@@ flags|=DIRPROP_FLAG_LR(mParaLevel); } - /* subsequently, ignore the explicit codes and BN (X9) */ + /* subsequently, ignore the explicit codes and Moz_BN (X9) */ /* again, determine if the text is mixed-directional or single-directional */ mFlags=flags; @@@@ -799,8 +799,8 @@@@ /* determine if the text is mixed-directional or single-directional */ nsBidiDirection nsBidi::DirectionFromFlags(Flags aFlags) { - /* if the text contains AN and neutrals, then some neutrals may become RTL */ - if(!(aFlags&MASK_RTL || aFlags&DIRPROP_FLAG(AN) && aFlags&MASK_POSSIBLE_N)) { + /* if the text contains Moz_AN and neutrals, then some neutrals may become Moz_RTL */ + if(!(aFlags&MASK_RTL || aFlags&DIRPROP_FLAG(Moz_AN) && aFlags&MASK_POSSIBLE_N)) { return NSBIDI_LTR; } else if(!(aFlags&MASK_LTR)) { return NSBIDI_RTL; @@@@ -891,73 +891,73 @@@@ /* (W1..W7) */ switch(dirProp) { - case L: - lastStrong=L; + case Moz_L: + lastStrong=Moz_L; break; - case R: - lastStrong=R; + case Moz_R: + lastStrong=Moz_R; break; - case AL: + case Moz_AL: /* (W3) */ - lastStrong=AL; - dirProp=R; + lastStrong=Moz_AL; + dirProp=Moz_R; break; - case EN: + case Moz_EN: /* we have to set historyOfEN correctly */ - if(lastStrong==AL) { + if(lastStrong==Moz_AL) { /* (W2) */ - dirProp=AN; + dirProp=Moz_AN; } else { - if(lastStrong==L) { + if(lastStrong==Moz_L) { /* (W7) */ - dirProp=L; + dirProp=Moz_L; } - /* this EN stays after (W2) and (W4) - at least before (W7) */ + /* this Moz_EN stays after (W2) and (W4) - at least before (W7) */ historyOfEN|=EN_ALL; } break; - case ES: - if( historyOfEN&PREV_EN_AFTER_W2 && /* previous was EN before (W4) */ - nextDirProp==EN && lastStrong!=AL /* next is EN and (W2) won't make it AN */ + case Moz_ES: + if( historyOfEN&PREV_EN_AFTER_W2 && /* previous was Moz_EN before (W4) */ + nextDirProp==Moz_EN && lastStrong!=Moz_AL /* next is EN and (W2) won't make it Moz_AN */ ) { /* (W4) */ - if(lastStrong!=L) { - dirProp=EN; + if(lastStrong!=Moz_L) { + dirProp=Moz_EN; } else { /* (W7) */ - dirProp=L; + dirProp=Moz_L; } historyOfEN|=EN_AFTER_W4; } else { /* (W6) */ - dirProp=O_N; + dirProp=Moz_O_N; } break; - case CS: - if( historyOfEN&PREV_EN_AFTER_W2 && /* previous was EN before (W4) */ - nextDirProp==EN && lastStrong!=AL /* next is EN and (W2) won't make it AN */ + case Moz_CS: + if( historyOfEN&PREV_EN_AFTER_W2 && /* previous was Moz_EN before (W4) */ + nextDirProp==Moz_EN && lastStrong!=Moz_AL /* next is Moz_EN and (W2) won't make it Moz_AN */ ) { /* (W4) */ - if(lastStrong!=L) { - dirProp=EN; + if(lastStrong!=Moz_L) { + dirProp=Moz_EN; } else { /* (W7) */ - dirProp=L; + dirProp=Moz_L; } historyOfEN|=EN_AFTER_W4; - } else if(prevDirProp==AN && /* previous was AN */ - (nextDirProp==AN || /* next is AN */ - nextDirProp==EN && lastStrong==AL) /* or (W2) will make it one */ + } else if(prevDirProp==Moz_AN && /* previous was Moz_AN */ + (nextDirProp==Moz_AN || /* next is Moz_AN */ + nextDirProp==Moz_EN && lastStrong==Moz_AL) /* or (W2) will make it one */ ) { /* (W4) */ - dirProp=AN; + dirProp=Moz_AN; } else { /* (W6) */ - dirProp=O_N; + dirProp=Moz_O_N; } break; - case ET: - /* get sequence of ET; advance only next, not current, previous or historyOfEN */ + case Moz_ET: + /* get sequence of Moz_ET; advance only next, not current, previous or historyOfEN */ while(next>=EN_SHIFT; /* * Technically, this should be done before the switch() in the form - * if(nextDirProp==NSM) { + * if(nextDirProp==Moz_NSM) { * dirProps[next]=nextDirProp=dirProp; * } * @@@@ -1004,9 +1004,9 @@@@ break; } - /* here, it is always [prev,this,next]dirProp!=BN; it may be next>i+1 */ + /* here, it is always [prev,this,next]dirProp!=Moz_BN; it may be next>i+1 */ - /* perform (Nn) - here, only L, R, EN, AN, and neutrals are left */ + /* perform (Nn) - here, only Moz_L, Moz_R, Moz_EN, Moz_AN, and neutrals are left */ /* this is one iteration late for the neutrals */ if(DIRPROP_FLAG(dirProp)&MASK_N) { if(neutralStart<0) { @@@@ -1014,7 +1014,7 @@@@ neutralStart=i; beforeNeutral=prevDirProp; } - } else /* not a neutral, can be only one of { L, R, EN, AN } */ { + } else /* not a neutral, can be only one of { Moz_L, Moz_R, Moz_EN, Moz_AN } */ { /* * Note that all levels[] values are still the same at this * point because this function is called for an entire @@@@ -1026,17 +1026,17 @@@@ if(neutralStart>=0) { nsBidiLevel final; /* end of a sequence of neutrals (dirProp is "afterNeutral") */ - if(beforeNeutral==L) { - if(dirProp==L) { - final=0; /* make all neutrals L (N1) */ + if(beforeNeutral==Moz_L) { + if(dirProp==Moz_L) { + final=0; /* make all neutrals Moz_L (N1) */ } else { final=level; /* make all neutrals "e" (N2) */ } - } else /* beforeNeutral is one of { R, EN, AN } */ { - if(dirProp==L) { + } else /* beforeNeutral is one of { Moz_R, Moz_EN, Moz_AN } */ { + if(dirProp==Moz_L) { final=level; /* make all neutrals "e" (N2) */ } else { - final=1; /* make all neutrals R (N1) */ + final=1; /* make all neutrals Moz_R (N1) */ } } /* perform (In) on the sequence of neutrals */ @@@@ -1051,24 +1051,24 @@@@ /* perform (In) on the non-neutral character */ /* - * in the cases of (W5), processing a sequence of ET, - * and of (X9), skipping BN, + * in the cases of (W5), processing a sequence of Moz_ET, + * and of (X9), skipping Moz_BN, * there may be multiple characters from i to =0) { /* @@@@ -1092,17 +1092,17 @@@@ nsBidiLevel level=levels[neutralStart], final; /* end of a sequence of neutrals (aEOR is "afterNeutral") */ - if(beforeNeutral==L) { - if(aEOR==L) { - final=0; /* make all neutrals L (N1) */ + if(beforeNeutral==Moz_L) { + if(aEOR==Moz_L) { + final=0; /* make all neutrals Moz_L (N1) */ } else { final=level; /* make all neutrals "e" (N2) */ } - } else /* beforeNeutral is one of { R, EN, AN } */ { - if(aEOR==L) { + } else /* beforeNeutral is one of { Moz_R, Moz_EN, Moz_AN } */ { + if(aEOR==Moz_L) { final=level; /* make all neutrals "e" (N2) */ } else { - final=1; /* make all neutrals R (N1) */ + final=1; /* make all neutrals Moz_R (N1) */ } } /* perform (In) on the sequence of neutrals */ @@@@ -1140,7 +1140,7 @@@@ levels[i]=paraLevel; } - /* reset BN to the next character's paraLevel until B/S, which restarts above loop */ + /* reset Moz_BN to the next character's paraLevel until B/S, which restarts above loop */ /* here, i+1 is guaranteed to be 0) { flag=DIRPROP_FLAG(dirProps[--i]); Index: calendar/libxpical/token.c --- calendar/libxpical/token.c.orig 2003-10-24 22:40:32 +0200 +++ calendar/libxpical/token.c 2005-08-13 13:13:58 +0200 @@@@ -266,7 +266,7 @@@@ unsigned char seed[16]; get_random_info(seed); - seed[0] |= 0x80; + seed[0] |= 0x01; memcpy(node, seed, sizeof(*node)); } Index: security/nss/lib/pki1/oiddata.h --- security/nss/lib/pki1/oiddata.h.orig 2002-01-04 06:22:07 +0100 +++ security/nss/lib/pki1/oiddata.h 2005-10-06 08:23:42 +0200 @@@@ -39,6 +39,9 @@@@ static const char OIDDATA_CVS_ID[] = "@@(#) $RCSfile: oiddata.h,v $ $Revision: 1.1 $ $Date: 2002/01/04 05:22:07 $ $Name: FIREFOX_1_0_7_RELEASE $ ; @@(#) $RCSfile: oiddata.h,v $ $Revision: 1.1 $ $Date: 2002/01/04 05:22:07 $ $Name: FIREFOX_1_0_7_RELEASE $"; #endif /* DEBUG */ +#ifndef PKI1T_H +#include "pki1t.h" +#endif #ifndef NSSPKI1T_H #include "nsspki1t.h" #endif /* NSSPKI1T_H */ @ 1.8.4.1 log @Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class) @ text @d1 105 a105 6 Index: browser/app/Makefile.in --- browser/app/Makefile.in.orig 2005-09-07 03:51:58 +0200 +++ browser/app/Makefile.in 2005-11-30 14:56:57 +0100 @@@@ -169,6 +169,19 @@@@ include $(topsrcdir)/config/static-rules.mk endif d107 11 a117 15 +# The binutils ld(1) doesn't properly link with Solaris 10 libc(3). +# Strangely only a few link tasks fail like this one, so selectively +# override the otherwise correct rules.mk Makefile containing binutils ld(1). +ifeq ($(OS_ARCH),SunOS) +OS_LIBS += -lc +LDFLAGS += -L@@l_gccinst@@ +EXTRA_LIBS += -lgcc +$(PROGRAM): $(PROGOBJS) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +$(SIMPLE_PROGRAMS): %$(BIN_SUFFIX): %.$(OBJ_SUFFIX) $(LIBS_DEPS) $(EXTRA_DEPS) Makefile Makefile.in + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) +endif + APP_VERSION = $(shell cat $(srcdir)/../config/version.txt) DEFINES += -DAPP_VERSION="$(APP_VERSION)" d119 1 d121 3 a123 3 --- config/make-jars.pl.orig 2005-09-28 20:19:34 +0200 +++ config/make-jars.pl 2005-11-30 14:56:49 +0100 @@@@ -48,6 +48,7 @@@@ d129 1 a129 1 getopts("d:s:t:c:j:f:avlD:o:p:xz:e"); d131 9 a139 4 Index: embedding/browser/gtk/tests/Makefile.in --- embedding/browser/gtk/tests/Makefile.in.orig 2005-02-04 00:01:41 +0100 +++ embedding/browser/gtk/tests/Makefile.in 2005-11-30 14:56:57 +0100 @@@@ -131,6 +131,19 @@@@ a147 2 +LDFLAGS += -L@@l_gccinst@@ +EXTRA_LIBS += -lgcc d149 1 a149 1 + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) d151 1 a151 1 + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) d153 4 a156 2 + CXXFLAGS += $(MOZ_GTK_CFLAGS) $(MOZ_GTK2_CFLAGS) d158 1 a158 6 ifdef ENABLE_GNOME Index: extensions/xmlterm/tests/Makefile.in --- extensions/xmlterm/tests/Makefile.in.orig 2004-04-19 00:14:17 +0200 +++ extensions/xmlterm/tests/Makefile.in 2005-11-30 14:56:57 +0100 @@@@ -75,3 +75,14 @@@@ include $(srcdir)/../config/xmlterm_config.mk a159 2 include $(topsrcdir)/config/rules.mk + d166 1 a166 1 + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) d168 1 a168 1 + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) d170 4 d175 3 a177 3 --- js/src/xpconnect/shell/Makefile.in.orig 2005-04-05 14:35:51 +0200 +++ js/src/xpconnect/shell/Makefile.in 2005-11-30 14:56:49 +0100 @@@@ -63,6 +63,17 @@@@ d195 5 a199 12 Index: layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp --- layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp.orig 2005-10-03 23:12:35 +0200 +++ layout/svg/renderer/src/cairo/nsSVGCairoCanvas.cpp 2005-11-30 14:56:49 +0100 @@@@ -50,6 +50,11 @@@@ #include "nsRect.h" #include "nsISVGCairoSurface.h" #include +#ifdef CAIRO_HAS_XLIB_SURFACE +#include +#else +#error Require Cairo with Xlib backend +#endif d201 12 a212 67 #ifdef MOZ_X11 extern "C" { Index: layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp --- layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp.orig 2005-10-13 20:30:21 +0200 +++ layout/svg/renderer/src/cairo/nsSVGCairoGlyphMetrics.cpp 2005-11-30 14:56:49 +0100 @@@@ -50,6 +50,7 @@@@ #include "nsIDOMSVGRect.h" #include "nsSVGTypeCIDs.h" #include "nsIComponentManager.h" +#include #include extern cairo_surface_t *gSVGCairoDummySurface; Index: nsprpub/pr/include/md/_freebsd.h --- nsprpub/pr/include/md/_freebsd.h.orig 2004-11-23 22:22:35 +0100 +++ nsprpub/pr/include/md/_freebsd.h 2005-11-30 14:56:49 +0100 @@@@ -43,6 +43,7 @@@@ #if __FreeBSD__ >= 2 #include /* for __FreeBSD_version */ #endif +#include #include #define PR_LINKER_ARCH "freebsd" Index: nsprpub/pr/src/md/unix/unix.c --- nsprpub/pr/src/md/unix/unix.c.orig 2005-08-18 19:24:37 +0200 +++ nsprpub/pr/src/md/unix/unix.c 2005-11-30 14:56:49 +0100 @@@@ -65,7 +65,8 @@@@ * PRInt32* pointer to a _PRSockLen_t* pointer. */ #if defined(HAVE_SOCKLEN_T) \ - || (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) + || (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) \ + || defined(FREEBSD) #define _PRSockLen_t socklen_t #elif defined(IRIX) || defined(HPUX) || defined(OSF1) || defined(SOLARIS) \ || defined(AIX4_1) || defined(LINUX) || defined(SONY) \ @@@@ -73,7 +74,7 @@@@ || defined(SUNOS4) || defined(NCR) || defined(DARWIN) \ || defined(NEXTSTEP) || defined(QNX) #define _PRSockLen_t int -#elif (defined(AIX) && !defined(AIX4_1)) || defined(FREEBSD) \ +#elif (defined(AIX) && !defined(AIX4_1)) \ || defined(NETBSD) || defined(OPENBSD) || defined(UNIXWARE) \ || defined(DGUX) || defined(VMS) || defined(NTO) || defined(RISCOS) #define _PRSockLen_t size_t Index: nsprpub/pr/src/pthreads/ptio.c --- nsprpub/pr/src/pthreads/ptio.c.orig 2005-08-18 19:24:38 +0200 +++ nsprpub/pr/src/pthreads/ptio.c 2005-11-30 14:56:49 +0100 @@@@ -3460,6 +3460,17 @@@@ &on, sizeof(on)); } #endif +#if (defined(_PR_INET6_PROBE) || defined(_PR_INET6)) && \ + defined(__FreeBSD__) && defined(IPV6_V6ONLY) + if (domain == PR_AF_INET6) { + int opt = 0; + if (setsockopt(osfd, IPPROTO_IPV6, IPV6_V6ONLY, + &opt, sizeof(opt))) { + close(osfd); + return NULL; + } + } +#endif fd = pt_SetMethods(osfd, ftype, PR_FALSE, PR_FALSE); if (fd == NULL) close(osfd); } d214 3 a216 3 --- security/nss/cmd/shlibsign/Makefile.orig 2004-04-25 17:02:53 +0200 +++ security/nss/cmd/shlibsign/Makefile 2005-11-30 14:56:57 +0100 @@@@ -91,6 +91,17 @@@@ d234 1 a234 1 @@@@ -104,8 +115,8 @@@@ d246 3 a248 3 --- security/nss/cmd/shlibsign/mangle/Makefile.orig 2004-04-25 17:02:54 +0200 +++ security/nss/cmd/shlibsign/mangle/Makefile 2005-11-30 14:56:57 +0100 @@@@ -65,6 +65,17 @@@@ d266 5 a270 17 Index: security/nss/lib/pki1/oiddata.h --- security/nss/lib/pki1/oiddata.h.orig 2005-03-14 19:02:00 +0100 +++ security/nss/lib/pki1/oiddata.h 2005-11-30 14:57:06 +0100 @@@@ -42,6 +42,9 @@@@ static const char OIDDATA_CVS_ID[] = "@@(#) $RCSfile: oiddata.h,v $ $Revision: 1.4 $ $Date: 2005/03/14 18:02:00 $ ; @@(#) $RCSfile: oiddata.h,v $ $Revision: 1.4 $ $Date: 2005/03/14 18:02:00 $"; #endif /* DEBUG */ +#ifndef PKI1T_H +#include "pki1t.h" +#endif #ifndef NSSPKI1T_H #include "nsspki1t.h" #endif /* NSSPKI1T_H */ Index: widget/src/xremoteclient/Makefile.in --- widget/src/xremoteclient/Makefile.in.orig 2005-04-04 21:08:51 +0200 +++ widget/src/xremoteclient/Makefile.in 2005-11-30 14:56:49 +0100 @@@@ -88,6 +88,17 @@@@ d273 17 d296 2 d299 1 a299 1 + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) -lxpcom $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) d301 1 a301 1 + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) -lxpcom $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) d304 7 a310 7 ifeq ($(OS_ARCH), OpenVMS) DEFINES += -DGENERIC_MOTIF_REDEFINES endif Index: xpcom/tools/registry/Makefile.in --- xpcom/tools/registry/Makefile.in.orig 2005-06-30 04:04:23 +0200 +++ xpcom/tools/registry/Makefile.in 2005-11-30 14:56:49 +0100 @@@@ -71,3 +71,13 @@@@ d319 2 d322 1 a322 1 + $(LD) -o $@@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(LIBS) -lxpcom $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) d324 1 a324 1 + $(LD) -o $@@ $< $(LDFLAGS) $(LIBS_DIR) $(LIBS) -lxpcom $(OS_LIBS) $(EXTRA_LIBS) $(BIN_FLAGS) $(WRAP_MALLOC_LIB) d326 630 @ 1.7 log @One more: Fix generation of random multicast MAC address. In case no real/physical IEEE 802 address is available, both the expired "draft-leach-uuids-guids-01" (section "4. Node IDs when no IEEE 802 network card is available") and RFC 2518 (section "6.4.1 Node Field Generation Without the IEEE 802 Address") recommend (quoted from RFC 2518): "The ideal solution is to obtain a 47 bit cryptographic quality random number, and use it as the low 47 bits of the node ID, with the _most_ significant bit of the first octet of the node ID set to 1. This bit is the unicast/multicast bit, which will never be set in IEEE 802 addresses obtained from network cards; hence, there can never be a conflict between UUIDs generated by machines with and without network cards." Unfortunately, this incorrectly explains how to implement this and the Mozilla UUID generator code inherited this generation bug from the broken reference code in the standards draft. They should instead specify the "_least_ significant bit of the first octet of the node ID" as the multicast bit in a memory and hexadecimal string representation of a 48-bit IEEE 802 MAC address. This standards bug arised from a false interpretation, as the multicast bit is actually the _most_ significant bit in IEEE 802.3 (Ethernet) _transmission order_ of an IEEE 802 MAC address. The standards authors forgot that the bitwise order of an _octet_ from a MAC address _memory_ and hexadecimal string representation is still always from left (MSB, bit 7) to right (LSB, bit 0). @ text @d943 13 @ 1.6 log @prefix flaky global namespace variable names, improve OpenPKG OEM branding graphics, hard code system ld(1) into buildconf to port to Solaris 10 (which no longer distributes static system libs), and... upgrading package: firefox 1.0.2 -> 1.0.3 @ text @d931 12 @ 1.5 log @correct buildconf by not specifying typeaheadfind which is broken since Firefox 1.0PR @ text @d131 800 @ 1.4 log @Bash this beasty package further on to hopefully build correctly at some point in the future. Patches are welcome to get this package building, please. @ text @d120 11 @ 1.3 log @blind upgrade (it seems to be still broken under build-time anyway) @ text @d1 1 d12 13 d46 74 @ 1.2 log @SA-2004.017-png @ text @a31 48 --- modules/libimg/png/pngrtran.c.orig Wed Oct 2 20:20:24 2002 +++ modules/libimg/png/pngrtran.c Wed Jan 15 11:30:23 2003 @@@@ -1965,8 +1965,8 @@@@ /* This changes the data from RRGGBB to RRGGBBXX */ if (flags & PNG_FLAG_FILLER_AFTER) { - png_bytep sp = row + (png_size_t)row_width * 3; - png_bytep dp = sp + (png_size_t)row_width; + png_bytep sp = row + (png_size_t)row_width * 6; + png_bytep dp = sp + (png_size_t)row_width * 2; for (i = 1; i < row_width; i++) { *(--dp) = hi_filler; @@@@ -1987,8 +1987,8 @@@@ /* This changes the data from RRGGBB to XXRRGGBB */ else { - png_bytep sp = row + (png_size_t)row_width * 3; - png_bytep dp = sp + (png_size_t)row_width; + png_bytep sp = row + (png_size_t)row_width * 6; + png_bytep dp = sp + (png_size_t)row_width * 2; for (i = 0; i < row_width; i++) { *(--dp) = *(--sp); Steve G Libpng accesses memory that is out of bounds when creating an error message Index: pngerror.c --- modules/libimg/png/pngerror.c.orig 2002-10-03 13:32:27.000000000 +0200 +++ modules/libimg/png/pngerror.c 2004-04-28 13:24:22.000000000 +0200 @@@@ -135,10 +135,13 @@@@ buffer[iout] = 0; else { + png_size_t len; + if ((len = png_strlen(error_message)) > 63) + len = 63; buffer[iout++] = ':'; buffer[iout++] = ' '; - png_memcpy(buffer+iout, error_message, 64); - buffer[iout+63] = 0; + png_memcpy(buffer+iout, error_message, len); + buffer[iout+len] = 0; } } @ 1.1 log @new package: firefox 0.8 (Graphical Web Browser) @ text @d32 48 @