From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Aug 7 22:10:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BCBE17B0 for ; Wed, 7 Aug 2013 22:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9C8C52DBD for ; Wed, 7 Aug 2013 22:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r77MA09B080905 for ; Wed, 7 Aug 2013 22:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r77MA0k7080904; Wed, 7 Aug 2013 22:10:00 GMT (envelope-from gnats) Resent-Date: Wed, 7 Aug 2013 22:10:00 GMT Resent-Message-Id: <201308072210.r77MA0k7080904@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, Jonathan Chen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D8B05617 for ; Wed, 7 Aug 2013 22:02:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id ABDED2D78 for ; Wed, 7 Aug 2013 22:02:52 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r77M2pCX059416 for ; Wed, 7 Aug 2013 22:02:51 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r77M2p19059412; Wed, 7 Aug 2013 22:02:51 GMT (envelope-from nobody) Message-Id: <201308072202.r77M2p19059412@oldred.freebsd.org> Date: Wed, 7 Aug 2013 22:02:51 GMT From: Jonathan Chen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/181124: java/eclipse-devel broken after glib-2.36.3 update 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: Wed, 07 Aug 2013 22:10:00 -0000 >Number: 181124 >Category: ports >Synopsis: java/eclipse-devel broken after glib-2.36.3 update >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Aug 07 22:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Jonathan Chen >Release: FreeBSD 9.1-STABLE >Organization: >Environment: FreeBSD jonathan.chen 9.1-STABLE FreeBSD 9.1-STABLE #0 r252120: Fri Aug 2 11:06:27 NZST 2013 root@jonathan.chen:/usr/obj/usr/src/sys/TAO amd64 >Description: Eclipse-devel builds but fails to run with: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: no swt-gtk-4233 in java.library.path no swt-gtk in java.library.path glib-2.36+ has removed some deprecated functions. >How-To-Repeat: >Fix: Please review attached patch. Patch attached with submission follows: diff -ruN /usr/ports/java/eclipse-devel/files/freebsd-support.patch ./files/freebsd-support.patch --- /usr/ports/java/eclipse-devel/files/freebsd-support.patch 2013-03-04 08:41:41.347992087 +1300 +++ ./files/freebsd-support.patch 2013-08-08 09:24:43.561696432 +1200 @@ -2827,6 +2827,40 @@ # GLX lib # make_glx: $(GLX_LIB) +--- build.orig/eclipse-3.5.2-src/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h.orig 2012-06-28 01:39:42.000000000 +1200 ++++ build.orig/eclipse-3.5.2-src/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.h 2013-08-08 09:17:59.133694911 +1200 +@@ -38,6 +38,11 @@ + + #define OS_LOAD_FUNCTION LOAD_FUNCTION + ++/* ++ g_thread_init() is non-existent in glib-2.36+ ++ */ ++#define NO__1g_1thread_1init ++ + #ifndef GDK_WINDOWING_X11 + + /* X Structures */ +--- build.orig/eclipse-3.5.2-src/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c.orig 2013-08-08 09:18:14.525694799 +1200 ++++ build.orig/eclipse-3.5.2-src/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c 2013-08-08 09:19:42.847695428 +1200 +@@ -4434,11 +4434,17 @@ + JNIEXPORT jboolean JNICALL OS_NATIVE(_1g_1thread_1supported) + (JNIEnv *env, jclass that) + { ++ return 1; ++ /* ++ g_thread_supported is non-existent in glib-2.36+, ++ but is still referenced. ++ + jboolean rc = 0; + OS_NATIVE_ENTER(env, that, _1g_1thread_1supported_FUNC); + rc = (jboolean)g_thread_supported(); + OS_NATIVE_EXIT(env, that, _1g_1thread_1supported_FUNC); + return rc; ++ */ + } + #endif + --- build.orig/eclipse-3.5.2-src/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java 2009-12-23 15:12:33.298742157 -0500 +++ build/eclipse-3.5.2-src/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java 2009-12-23 15:14:12.577551971 -0500 @@ -23,18 +23,19 @@ >Release-Note: >Audit-Trail: >Unformatted: