Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2006 10:07:18 +0200 (CEST)
From:      Herve Quiroz <hq@freebsd.org>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        gnome@freebsd.org
Subject:   [PATCH] devel/glib-java: fix build with Jikes
Message-ID:  <200604270807.k3R87I4S081874@arabica.esil.univ-mrs.fr>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	Herve Quiroz
>Organization:	
>Confidential:	no 
>Synopsis:	[PATCH] devel/glib-java: fix build with Jikes
>Severity:	non-critical
>Priority:	low
>Category:	ports 
>Class:		change-request
>Release:	FreeBSD 6.1-PRERELEASE i386
>Environment:
System: FreeBSD arabica.esil.univ-mrs.fr 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Wed Mar  1 10:26:16 CET
>Description:

When Jikes is installed on the system, the 'configure' stage fails:

  checking for jikes... jikes
  checking if jikes works... configure: error: The Java compiler jikes failed (see config.log, check the CLASSPATH?)

I would prefer to have BOOTCLASSPATH set only when Jikes is present on the
system but there seem to be some trouble with HAVE_JIKES in bsd.java.mk.

I believe this is the same reason why other gnome/java ports (e.g.
libgnome-java, libgtk-java) don't build on my system so I'll handle them next.

While I was there, I just removed USE_REINPLACE (reported by portlint).

Port maintainer (gnome@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- glib-java-0.2.4_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/glib-java/Makefile,v
retrieving revision 1.5
diff -u -u -r1.5 Makefile
--- Makefile	15 Apr 2006 08:21:17 -0000	1.5
+++ Makefile	27 Apr 2006 07:58:23 -0000
@@ -26,12 +26,15 @@
 JAVA_OS=	native
 USE_GCC=	3.4+
 USE_GNOME=	gnomehack glib20
-USE_REINPLACE=	yes
 CONFIGURE_ARGS=	--without-gcj-compile
 CONFIGURE_ENV=	CPPFLAGS="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/freebsd"
 GLIB_API_VERSION=	0.2
 PLIST_SUB=		GLIB_API_VERSION=${GLIB_API_VERSION} PORTNAME=${PORTNAME}
 PKGMESSAGE=		${WRKDIR}/pkg-message
+
+# Jikes related
+CONFIGURE_ENV+=	BOOTCLASSPATH=${JAVA_CLASSES}
+MAKE_ENV+=	BOOTCLASSPATH=${JAVA_CLASSES}
 
 do-install:
 	${MKDIR} ${PREFIX}/lib
--- glib-java-0.2.4_1.patch ends here ---




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604270807.k3R87I4S081874>