From brandt@fokus.fraunhofer.de  Tue Oct 28 05:21:39 2003
Return-Path: <brandt@fokus.fraunhofer.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 0A65D16A4CE; Tue, 28 Oct 2003 05:21:39 -0800 (PST)
Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 3AF9243F85; Tue, 28 Oct 2003 05:21:37 -0800 (PST)
	(envelope-from brandt@fokus.fraunhofer.de)
Received: from beagle.fokus.fraunhofer.de (beagle [193.175.132.100])
	by mailhub.fokus.fraunhofer.de (8.11.6p2/8.11.6) with ESMTP id h9SDLZP28500;
	Tue, 28 Oct 2003 14:21:36 +0100 (MET)
Received: from beagle.fokus.fraunhofer.de (localhost [127.0.0.1])
	by beagle.fokus.fraunhofer.de (8.12.9/8.12.9) with ESMTP id h9SDLZqF002306;
	Tue, 28 Oct 2003 14:21:35 +0100 (CET)
	(envelope-from hbb@beagle.fokus.fraunhofer.de)
Received: (from hbb@localhost)
	by beagle.fokus.fraunhofer.de (8.12.9/8.12.9/Submit) id h9SDLZec002296;
	Tue, 28 Oct 2003 14:21:35 +0100 (CET)
	(envelope-from hbb)
Message-Id: <200310281321.h9SDLZec002296@beagle.fokus.fraunhofer.de>
Date: Tue, 28 Oct 2003 14:21:35 +0100 (CET)
From: harti@freebsd.org
Reply-To: harti@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Cc: glewis@freebsd.org
Subject: jdk1.3 fails to build if LOCALBASE is not /usr/local
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         58618
>Category:       java
>Synopsis:       jdk1.3 fails to build if LOCALBASE is not /usr/local
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    glewis
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 28 05:30:17 PST 2003
>Closed-Date:    Tue Oct 28 10:15:32 PST 2003
>Last-Modified:  Tue Oct 28 10:15:32 PST 2003
>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:
Responsible-Changed-From-To: freebsd-java->glewis 
Responsible-Changed-By: glewis 
Responsible-Changed-When: Tue Oct 28 08:57:56 PST 2003 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=58618 
State-Changed-From-To: open->closed 
State-Changed-By: glewis 
State-Changed-When: Tue Oct 28 10:15:21 PST 2003 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=58618 
>Unformatted:
