1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Add a patch to run g_thread_init() as soon as Firefox starts. This is said

to fix some threading issues in Firefox, but I have not personally encountered
them (at least not ones fixed by this patch).

See http://bugzilla.mozilla.org/show_bug.cgi?id=247204 for more details.

Submitted by:	green
This commit is contained in:
Joe Marcus Clarke 2004-06-19 05:18:14 +00:00
parent 9daf9b3b45
commit 24a35882ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=111778
18 changed files with 180 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- browser/app/Makefile.in.orig Sat Jun 19 00:39:09 2004
+++ browser/app/Makefile.in Sat Jun 19 00:39:55 2004
@@ -75,6 +75,7 @@
$(STATIC_COMPONENTS_LINKER_PATH) \
$(EXTRA_DSO_LIBS) \
$(DIST)/lib/$(LIB_PREFIX)xulapp_s.$(LIB_SUFFIX) \
+ -lgthread-2.0 \
$(MOZ_JS_LIBS) \
$(XPCOM_LIBS) \
$(NSPR_LIBS) \

View File

@ -0,0 +1,10 @@
--- toolkit/xre/nsAppRunner.cpp.orig Sat Jun 19 00:37:07 2004
+++ toolkit/xre/nsAppRunner.cpp Sat Jun 19 00:37:39 2004
@@ -1710,6 +1710,7 @@
// in nsAppShell::Create, but we need to get in before gtk
// has been initialized to make sure everything is running
// consistently.
+ g_thread_init(NULL);
if (CheckArg("install"))
gdk_rgb_set_install(TRUE);

View File

@ -0,0 +1,10 @@
--- browser/app/Makefile.in.orig Sat Jun 19 00:39:09 2004
+++ browser/app/Makefile.in Sat Jun 19 00:39:55 2004
@@ -75,6 +75,7 @@
$(STATIC_COMPONENTS_LINKER_PATH) \
$(EXTRA_DSO_LIBS) \
$(DIST)/lib/$(LIB_PREFIX)xulapp_s.$(LIB_SUFFIX) \
+ -lgthread-2.0 \
$(MOZ_JS_LIBS) \
$(XPCOM_LIBS) \
$(NSPR_LIBS) \

View File

@ -0,0 +1,10 @@
--- toolkit/xre/nsAppRunner.cpp.orig Sat Jun 19 00:37:07 2004
+++ toolkit/xre/nsAppRunner.cpp Sat Jun 19 00:37:39 2004
@@ -1710,6 +1710,7 @@
// in nsAppShell::Create, but we need to get in before gtk
// has been initialized to make sure everything is running
// consistently.
+ g_thread_init(NULL);
if (CheckArg("install"))
gdk_rgb_set_install(TRUE);

View File

@ -0,0 +1,10 @@
--- browser/app/Makefile.in.orig Sat Jun 19 00:39:09 2004
+++ browser/app/Makefile.in Sat Jun 19 00:39:55 2004
@@ -75,6 +75,7 @@
$(STATIC_COMPONENTS_LINKER_PATH) \
$(EXTRA_DSO_LIBS) \
$(DIST)/lib/$(LIB_PREFIX)xulapp_s.$(LIB_SUFFIX) \
+ -lgthread-2.0 \
$(MOZ_JS_LIBS) \
$(XPCOM_LIBS) \
$(NSPR_LIBS) \

View File

@ -0,0 +1,10 @@
--- toolkit/xre/nsAppRunner.cpp.orig Sat Jun 19 00:37:07 2004
+++ toolkit/xre/nsAppRunner.cpp Sat Jun 19 00:37:39 2004
@@ -1710,6 +1710,7 @@
// in nsAppShell::Create, but we need to get in before gtk
// has been initialized to make sure everything is running
// consistently.
+ g_thread_init(NULL);
if (CheckArg("install"))
gdk_rgb_set_install(TRUE);

View File

@ -0,0 +1,10 @@
--- browser/app/Makefile.in.orig Sat Jun 19 00:39:09 2004
+++ browser/app/Makefile.in Sat Jun 19 00:39:55 2004
@@ -75,6 +75,7 @@
$(STATIC_COMPONENTS_LINKER_PATH) \
$(EXTRA_DSO_LIBS) \
$(DIST)/lib/$(LIB_PREFIX)xulapp_s.$(LIB_SUFFIX) \
+ -lgthread-2.0 \
$(MOZ_JS_LIBS) \
$(XPCOM_LIBS) \
$(NSPR_LIBS) \

View File

@ -0,0 +1,10 @@
--- toolkit/xre/nsAppRunner.cpp.orig Sat Jun 19 00:37:07 2004
+++ toolkit/xre/nsAppRunner.cpp Sat Jun 19 00:37:39 2004
@@ -1710,6 +1710,7 @@
// in nsAppShell::Create, but we need to get in before gtk
// has been initialized to make sure everything is running
// consistently.
+ g_thread_init(NULL);
if (CheckArg("install"))
gdk_rgb_set_install(TRUE);

View File

@ -0,0 +1,10 @@
--- browser/app/Makefile.in.orig Sat Jun 19 00:39:09 2004
+++ browser/app/Makefile.in Sat Jun 19 00:39:55 2004
@@ -75,6 +75,7 @@
$(STATIC_COMPONENTS_LINKER_PATH) \
$(EXTRA_DSO_LIBS) \
$(DIST)/lib/$(LIB_PREFIX)xulapp_s.$(LIB_SUFFIX) \
+ -lgthread-2.0 \
$(MOZ_JS_LIBS) \
$(XPCOM_LIBS) \
$(NSPR_LIBS) \

View File

@ -0,0 +1,10 @@
--- toolkit/xre/nsAppRunner.cpp.orig Sat Jun 19 00:37:07 2004
+++ toolkit/xre/nsAppRunner.cpp Sat Jun 19 00:37:39 2004
@@ -1710,6 +1710,7 @@
// in nsAppShell::Create, but we need to get in before gtk
// has been initialized to make sure everything is running
// consistently.
+ g_thread_init(NULL);
if (CheckArg("install"))
gdk_rgb_set_install(TRUE);

View File

@ -0,0 +1,10 @@
--- browser/app/Makefile.in.orig Sat Jun 19 00:39:09 2004
+++ browser/app/Makefile.in Sat Jun 19 00:39:55 2004
@@ -75,6 +75,7 @@
$(STATIC_COMPONENTS_LINKER_PATH) \
$(EXTRA_DSO_LIBS) \
$(DIST)/lib/$(LIB_PREFIX)xulapp_s.$(LIB_SUFFIX) \
+ -lgthread-2.0 \
$(MOZ_JS_LIBS) \
$(XPCOM_LIBS) \
$(NSPR_LIBS) \

View File

@ -0,0 +1,10 @@
--- toolkit/xre/nsAppRunner.cpp.orig Sat Jun 19 00:37:07 2004
+++ toolkit/xre/nsAppRunner.cpp Sat Jun 19 00:37:39 2004
@@ -1710,6 +1710,7 @@
// in nsAppShell::Create, but we need to get in before gtk
// has been initialized to make sure everything is running
// consistently.
+ g_thread_init(NULL);
if (CheckArg("install"))
gdk_rgb_set_install(TRUE);

View File

@ -0,0 +1,10 @@
--- browser/app/Makefile.in.orig Sat Jun 19 00:39:09 2004
+++ browser/app/Makefile.in Sat Jun 19 00:39:55 2004
@@ -75,6 +75,7 @@
$(STATIC_COMPONENTS_LINKER_PATH) \
$(EXTRA_DSO_LIBS) \
$(DIST)/lib/$(LIB_PREFIX)xulapp_s.$(LIB_SUFFIX) \
+ -lgthread-2.0 \
$(MOZ_JS_LIBS) \
$(XPCOM_LIBS) \
$(NSPR_LIBS) \

View File

@ -0,0 +1,10 @@
--- toolkit/xre/nsAppRunner.cpp.orig Sat Jun 19 00:37:07 2004
+++ toolkit/xre/nsAppRunner.cpp Sat Jun 19 00:37:39 2004
@@ -1710,6 +1710,7 @@
// in nsAppShell::Create, but we need to get in before gtk
// has been initialized to make sure everything is running
// consistently.
+ g_thread_init(NULL);
if (CheckArg("install"))
gdk_rgb_set_install(TRUE);

View File

@ -0,0 +1,10 @@
--- browser/app/Makefile.in.orig Sat Jun 19 00:39:09 2004
+++ browser/app/Makefile.in Sat Jun 19 00:39:55 2004
@@ -75,6 +75,7 @@
$(STATIC_COMPONENTS_LINKER_PATH) \
$(EXTRA_DSO_LIBS) \
$(DIST)/lib/$(LIB_PREFIX)xulapp_s.$(LIB_SUFFIX) \
+ -lgthread-2.0 \
$(MOZ_JS_LIBS) \
$(XPCOM_LIBS) \
$(NSPR_LIBS) \

View File

@ -0,0 +1,10 @@
--- toolkit/xre/nsAppRunner.cpp.orig Sat Jun 19 00:37:07 2004
+++ toolkit/xre/nsAppRunner.cpp Sat Jun 19 00:37:39 2004
@@ -1710,6 +1710,7 @@
// in nsAppShell::Create, but we need to get in before gtk
// has been initialized to make sure everything is running
// consistently.
+ g_thread_init(NULL);
if (CheckArg("install"))
gdk_rgb_set_install(TRUE);

View File

@ -0,0 +1,10 @@
--- browser/app/Makefile.in.orig Sat Jun 19 00:39:09 2004
+++ browser/app/Makefile.in Sat Jun 19 00:39:55 2004
@@ -75,6 +75,7 @@
$(STATIC_COMPONENTS_LINKER_PATH) \
$(EXTRA_DSO_LIBS) \
$(DIST)/lib/$(LIB_PREFIX)xulapp_s.$(LIB_SUFFIX) \
+ -lgthread-2.0 \
$(MOZ_JS_LIBS) \
$(XPCOM_LIBS) \
$(NSPR_LIBS) \

View File

@ -0,0 +1,10 @@
--- toolkit/xre/nsAppRunner.cpp.orig Sat Jun 19 00:37:07 2004
+++ toolkit/xre/nsAppRunner.cpp Sat Jun 19 00:37:39 2004
@@ -1710,6 +1710,7 @@
// in nsAppShell::Create, but we need to get in before gtk
// has been initialized to make sure everything is running
// consistently.
+ g_thread_init(NULL);
if (CheckArg("install"))
gdk_rgb_set_install(TRUE);