From nobody@FreeBSD.org  Fri Jan 27 21:40:07 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A4CEB106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Jan 2012 21:40:07 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 706C58FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Jan 2012 21:40:07 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0RLe7Gc008551
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Jan 2012 21:40:07 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q0RLe6qi008550;
	Fri, 27 Jan 2012 21:40:06 GMT
	(envelope-from nobody)
Message-Id: <201201272140.q0RLe6qi008550@red.freebsd.org>
Date: Fri, 27 Jan 2012 21:40:06 GMT
From: Jimmy Kelley <jimmy.kelley@charter.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] eclipse-devel crashes showing javadoc or Internal Web browser
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         164554
>Category:       ports
>Synopsis:       [PATCH] eclipse-devel crashes showing javadoc or Internal Web browser
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    glewis
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 27 21:50:04 UTC 2012
>Closed-Date:    Sun Jan 29 00:05:27 UTC 2012
>Last-Modified:  Sun Jan 29 00:10:11 UTC 2012
>Originator:     Jimmy Kelley
>Release:        9.0-RELEASE
>Organization:
>Environment:
FreeBSD jmobile.jimmy.local 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
eclipse-devel (3.7.0_3) crashes when opening the Internal Web Browser (Window->Show View->Other...->General->Internal Web Browser) or when hovering over a keyword to show some javadoc.
If started from a xterm, the error shown is:
/usr/local/lib/eclipse-devel/configuration/org.eclipse.osgi/bundles/117/1/.cp/libswt-xulrunner-gtk-3735.so: Undefined symbol "XPCOMGlueStartup"

This happens with or without the following setting in eclipse.ini:
-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/local/bin/xulrunner

The only browser I have installed on my system is ports/chromium.

The main eclipse port (3.6.2) works just fine.
>How-To-Repeat:
Try to open the Interal Web browser view.
Try to show some javadoc by hovering over a keyword.
>Fix:
Adding the attached patch to the end of the files/freebsd-support.patch should fix the problem by fixing the build to make the missing libswt-xpcominit-gtk-3735.so library.

Patch attached with submission follows:

--- build/eclipse-3.7.0-src/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh.orig	2011-05-27 13:45:22.000000000 -0500
+++ build/eclipse-3.7.0-src/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh	2012-01-23 11:51:27.000000000 -0600
@@ -25,7 +25,7 @@
 fi
 
 # Check if we have to compile external.xpt from external.idl
-COMPONENTS_DIR=`pwd`/../../components
+COMPONENTS_DIR=`pwd`/../../org.eclipse.swt/components
 if test ! -f ${COMPONENTS_DIR}/external.xpt; then
 	if test ! -f ${COMPONENTS_DIR}/external.idl; then
 		echo "Can't find ${COMPONENTS_DIR}/external.idl"
@@ -179,9 +181,10 @@
 	elif [ x`pkg-config --exists libxul && echo YES` = "xYES" ]; then
 		XULRUNNER_INCLUDES=`pkg-config --cflags libxul`
 		XULRUNNER_LIBS=`pkg-config --libs libxul`
+		XULRUNNER_LIBS=`echo ${XULRUNNER_LIBS} -lxpcomglue`
 		export XULRUNNER_INCLUDES
 		export XULRUNNER_LIBS
-		MAKE_MOZILLA=make_xulrunner
+		MAKE_MOZILLA=`echo make_xulrunner make_xpcominit`
 	else
 		echo "None of the following libraries were found:  Mozilla/XPCOM, Firefox/XPCOM, or XULRunner/XPCOM"
 		echo "    *** Mozilla embedding support will not be compiled."


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->glewis 
Responsible-Changed-By: glewis 
Responsible-Changed-When: Sun Jan 29 00:03:39 UTC 2012 
Responsible-Changed-Why:  
I'll take this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164554 
State-Changed-From-To: open->closed 
State-Changed-By: glewis 
State-Changed-When: Sun Jan 29 00:05:24 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164554 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/164554: commit references a PR
Date: Sun, 29 Jan 2012 00:05:20 +0000 (UTC)

 glewis      2012-01-29 00:05:11 UTC
 
   FreeBSD ports repository
 
   Modified files:
     java/eclipse-devel   Makefile 
     java/eclipse-devel/files freebsd-support.patch 
   Log:
   . Fix a crash when opening the internal web browser.
   
   PR:             164554
   Submitted by:   Jimmy Kelley <jimmy.kelley@charter.net>
   
   Revision  Changes    Path
   1.44      +1 -1      ports/java/eclipse-devel/Makefile
   1.4       +24 -1     ports/java/eclipse-devel/files/freebsd-support.patch
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
