ports/124866: Update port: www/nspluginwrapper: Fix glib threading issue.

Dave Grochowski malus.x at gmail.com
Sun Jun 22 08:10:02 UTC 2008


>Number:         124866
>Category:       ports
>Synopsis:       Update port: www/nspluginwrapper: Fix glib threading issue.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 22 08:10:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Dave Grochowski
>Release:        7.0-STABLE
>Organization:
Lockheed Martin
>Environment:
FreeBSD quad 7.0-STABLE FreeBSD 7.0-STABLE #4: Fri Jun 20 03:05:50 EDT 2008     root at quad:/usr/obj/usr/src/sys/QUAD  amd64
>Description:
This patch initializes glib for multithreading. It should fix a crash with Flash 9, though I do not believe this will fix the problems that most FreeBSD users are having with Flash 9.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -urN www/nspluginwrapper.orig/Makefile www/nspluginwrapper/Makefile
--- www/nspluginwrapper.orig/Makefile	2008-06-22 03:51:38.555402346 -0400
+++ www/nspluginwrapper/Makefile	2008-06-22 03:54:44.957384095 -0400
@@ -7,7 +7,7 @@
 
 PORTNAME=	nspluginwrapper
 PORTVERSION=	0.9.91.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www linux emulators
 MASTER_SITES=	http://gwenole.beauchesne.info/projects/nspluginwrapper/files/
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${RPMFILE}
diff -urN www/nspluginwrapper.orig/files/patch-Makefile www/nspluginwrapper/files/patch-Makefile
--- www/nspluginwrapper.orig/files/patch-Makefile	1969-12-31 19:00:00.000000000 -0500
+++ www/nspluginwrapper/files/patch-Makefile	2008-06-22 03:53:56.611116372 -0400
@@ -0,0 +1,13 @@
+Index: Makefile
+===================================================================
+--- Makefile	(revision 480)
++++ Makefile	(revision 481)
+@@ -101,7 +101,7 @@
+ npviewer_CFLAGS += -I$(LSB_INC_DIR)/glib-2.0
+ npviewer_CFLAGS += -I$(LSB_INC_DIR)/gtk-2.0
+ npviewer_LDFLAGS = $(LDFLAGS_32) -L$(LSB_OBJ_DIR)
+-npviewer_LDFLAGS += -lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -ldl -lglib-2.0 -lX11 -lXt
++npviewer_LDFLAGS += -lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -ldl -lglib-2.0 -lgthread-2.0 -lX11 -lXt
+ else
+ npviewer_CFLAGS += $(GTK_CFLAGS)
+ npviewer_LDFLAGS = $(GTK_LDFLAGS) $(X_LDFLAGS)
diff -urN www/nspluginwrapper.orig/files/patch-src-npw-viewer.c www/nspluginwrapper/files/patch-src-npw-viewer.c
--- www/nspluginwrapper.orig/files/patch-src-npw-viewer.c	1969-12-31 19:00:00.000000000 -0500
+++ www/nspluginwrapper/files/patch-src-npw-viewer.c	2008-06-22 03:53:26.914173902 -0400
@@ -0,0 +1,12 @@
+Index: src/npw-viewer.c
+===================================================================
+--- src/npw-viewer.c	(revision 480)
++++ src/npw-viewer.c	(revision 481)
+@@ -3001,6 +3001,7 @@
+   XtToolkitInitialize();
+   x_app_context = XtCreateApplicationContext();
+   x_display = XtOpenDisplay(x_app_context, NULL, "npw-viewer", "npw-viewer", NULL, 0, &argc, argv);
++  g_thread_init(NULL);
+   gtk_init(&argc, &argv);
+ 
+   // Initialize RPC communication channel


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list