Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Oct 2003 14:21:35 +0100 (CET)
From:      harti@FreeBSD.org
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        glewis@FreeBSD.org
Subject:   java/58618: jdk1.3 fails to build if LOCALBASE is not /usr/local
Message-ID:  <200310281321.h9SDLZec002296@beagle.fokus.fraunhofer.de>
Resent-Message-ID: <200310281330.h9SDUH2c058638@freefall.freebsd.org>

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

>Number:         58618
>Category:       java
>Synopsis:       jdk1.3 fails to build if LOCALBASE is not /usr/local
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-java
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 28 05:30:17 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Hartmut Brandt
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
FhI Fokus
>Environment:
System: FreeBSD beagle.fokus.fraunhofer.de 5.1-CURRENT FreeBSD 5.1-CURRENT #5: Fri Sep 19 15:25:35 CEST 2003 hbb@beagle.fokus.fraunhofer.de:/opt/obj/usr/src/sys/BEAGLE i386


	
>Description:

When LOCALBASE is set to something else then the default /usr/local the
build fails to find libintl.h in ${LOCALBASE}/include.

	
>How-To-Repeat:

Set LOCALBASE to /packages/ports and make the port.

>Fix:

The problem is the following line in j2sdk1.3.1/ext/plugin/build/solaris/GNUmakefile:

INTL_DIR ?= /usr/local

This default is never overwritten. The following patch to the port's makefile
overwrites this definition:


Index: Makefile
===================================================================
RCS file: /export/cvs/freebsd/ports/java/jdk13/Makefile,v
retrieving revision 1.63
diff -u -r1.63 Makefile
--- Makefile	16 Oct 2003 23:06:29 -0000	1.63
+++ Makefile	28 Oct 2003 13:20:51 -0000
@@ -56,6 +56,7 @@
 		SYS_CFLAGS="${CFLAGS}" \
 		CLASSPATH="" \
 		LD_LIBRARY_PATH="" \
+		INTL_DIR="${LOCALBASE}" \
 		JAVA_COMPILER=""
 .if !defined(WITHOUT_PLUGIN)
 MAKE_ENV +=	LIBG_HDRS="${LOCALBASE}/include/glib12" \

	


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



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