From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Dec 31 01:20:00 2012 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C74935E5 for ; Mon, 31 Dec 2012 01:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 9AF828FC0C for ; Mon, 31 Dec 2012 01:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBV1K0bI043665 for ; Mon, 31 Dec 2012 01:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBV1K06u043664; Mon, 31 Dec 2012 01:20:00 GMT (envelope-from gnats) Resent-Date: Mon, 31 Dec 2012 01:20:00 GMT Resent-Message-Id: <201212310120.qBV1K06u043664@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jimmy Kelley Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2A85A5D4 for ; Mon, 31 Dec 2012 01:15:43 +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 0FDF88FC08 for ; Mon, 31 Dec 2012 01:15:43 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qBV1FgFH087437 for ; Mon, 31 Dec 2012 01:15:42 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qBV1FgUG087436; Mon, 31 Dec 2012 01:15:42 GMT (envelope-from nobody) Message-Id: <201212310115.qBV1FgUG087436@red.freebsd.org> Date: Mon, 31 Dec 2012 01:15:42 GMT From: Jimmy Kelley To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/174846: libxul 10 does not work for Eclipse SWT plugin browser functions X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2012 01:20:00 -0000 >Number: 174846 >Category: ports >Synopsis: libxul 10 does not work for Eclipse SWT plugin browser functions >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 31 01:20:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Jimmy Kelley >Release: FreeBSD 9.1-PRERELEASE #2 >Organization: >Environment: FreeBSD jmobile.jimmy.local 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #2 r244321: Sun Dec 16 21:21:10 CST 2012 root@jmobile.jimmy.local:/usr/obj/usr/src/sys/GENERIC i386 >Description: The SWT plugin libraries for browser support in the eclipse port will not compile using libxul version 10. >How-To-Repeat: With the libxul port installed (replacing libxul 1.9 with libxul 10), build the eclipse port: cd /usr/ports/java/eclipse make The port build will succeed, but a check of the build logs in the work/eclipse-build-914dc6de2bfc5ee5819a229cf4877f7043040a92 directory will show errors in the building of the SWT native libraries. >Fix: Use the webkit-gtk2 library to provide the SWT browser functions instead of libxul. Patch attached with submission follows: --- Makefile.orig 2012-11-16 23:58:42.000000000 -0600 +++ Makefile 2012-12-30 18:22:40.000000000 -0600 @@ -7,7 +7,7 @@ PORTNAME= eclipse PORTVERSION= 3.7.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= java devel MASTER_SITES= http://download.eclipse.org/technology/linuxtools/eclipse-build/3.7.x_Indigo/:1 \ http://download.eclipse.org/tools/orbit/downloads/drops/R20110523182458/repository/plugins/:2 \ @@ -37,14 +37,14 @@ rsync:${PORTSDIR}/net/rsync \ unzip:${PORTSDIR}/archivers/unzip \ zip:${PORTSDIR}/archivers/zip -LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo +LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo \ + webkitgtk-1.0.0:${PORTSDIR}/www/webkit-gtk2 OPTIONS= TESTS "Build SDK test suite" off ONLY_FOR_ARCHS= i386 amd64 USE_ANT= yes -USE_GECKO= libxul19 USE_GL= glu USE_GMAKE= yes USE_GNOME= desktopfileutils gconf2 gtk20 gnomevfs2 libgnome libgnomeui pkgconfig --- files/freebsd-support.patch.orig 2012-11-16 23:58:42.000000000 -0600 +++ files/freebsd-support.patch 2012-12-29 13:07:54.000000000 -0600 @@ -7459,3 +7459,24 @@ else echo "None of the following libraries were found: Mozilla/XPCOM, Firefox/XPCOM, or XULRunner/XPCOM" echo " *** Mozilla embedding support will not be compiled." +--- build/eclipse-3.7.1-src/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh.orig 2012-12-25 21:01:56.000000000 -0600 ++++ build/eclipse-3.7.1-src/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh 2012-12-25 21:28:35.000000000 -0600 +@@ -491,7 +491,7 @@ + export MOZILLA_INCLUDES + export MOZILLA_LIBS + MAKE_MOZILLA=make_mozilla +- elif [ x`pkg-config --exists libxul && echo YES` = "xYES" ]; then ++ elif [ x`pkg-config --exists "libxul < 2" && echo YES` = "xYES" ]; then + XULRUNNER_INCLUDES=`pkg-config --cflags libxul` + XULRUNNER_LIBS=`pkg-config --libs libxul` + XULRUNNER_LIBS=`echo ${XULRUNNER_LIBS} -lxpcomglue` +--- build/eclipse-3.7.1-src/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_freebsd.mak.orig 2012-12-29 13:05:23.000000000 -0600 ++++ build/eclipse-3.7.1-src/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_freebsd.mak 2012-12-29 13:06:37.000000000 -0600 +@@ -27,6 +27,7 @@ + MOZILLA_PREFIX = swt-mozilla$(GCC_VERSION) + XULRUNNER_PREFIX = swt-xulrunner + XPCOMINIT_PREFIX = swt-xpcominit ++WEBKIT_PREFIX = swt-webkit + GLX_PREFIX = swt-glx + + SWT_LIB = lib$(SWT_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so >Release-Note: >Audit-Trail: >Unformatted: