From xi@vulcan.borderworlds.dk  Tue Sep 30 12:21:50 2003
Return-Path: <xi@vulcan.borderworlds.dk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A823916A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Sep 2003 12:21:50 -0700 (PDT)
Received: from vulcan.borderworlds.dk (213.237.93.241.adsl.hc.worldonline.dk [213.237.93.241])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1DE7543FAF
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Sep 2003 12:21:48 -0700 (PDT)
	(envelope-from xi@vulcan.borderworlds.dk)
Received: from vulcan.borderworlds.dk (localhost [127.0.0.1])
	by vulcan.borderworlds.dk (8.12.9p1/8.12.9) with ESMTP id h8UJME7x047649
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 30 Sep 2003 21:22:14 +0200 (CEST)
	(envelope-from xi@vulcan.borderworlds.dk)
Received: (from xi@localhost)
	by vulcan.borderworlds.dk (8.12.9p1/8.12.9/Submit) id h8UJMC9b047648;
	Tue, 30 Sep 2003 21:22:12 +0200 (CEST)
Message-Id: <200309301922.h8UJMC9b047648@vulcan.borderworlds.dk>
Date: Tue, 30 Sep 2003 21:22:12 +0200 (CEST)
From: Christian Laursen <xi@borderworlds.dk>
Reply-To: Christian Laursen <xi@borderworlds.dk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: linux-sun-jdk 1.4.2 is not detected when building java ports 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         57420
>Category:       java
>Synopsis:       linux-sun-jdk 1.4.2 is not detected when building java ports
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-java
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 30 12:30:17 PDT 2003
>Closed-Date:    Tue Sep 30 16:43:36 PDT 2003
>Last-Modified:  Tue Sep 30 16:43:36 PDT 2003
>Originator:     Christian Laursen
>Release:        FreeBSD 5.1-RELEASE-p8 i386
>Organization:
The Border Worlds 
>Environment:
System: FreeBSD vulcan.borderworlds.dk 5.1-RELEASE-p8 FreeBSD 5.1-RELEASE-p8 #13: Thu Sep 25 22:16:40 CEST 2003 root@vulcan.borderworlds.dk:/usr/obj/usr/src/sys/VULCAN i386


	
>Description:
When linux-sun-jdk-1.4.2.01_1 is installed and I try to build a
port that depends on java, it is not detected and the ports system
tries to build a jdk 1.2 instead.
	
>How-To-Repeat:
Have linux-sun-jdk-1.4.2.01_1 installed and try to build a java port
e.g. devel/apache-ant.
	
>Fix:

The below change fixes it for me, but I'm not sure that it is the
most elegant way to solve the problem.

--- java.diff begins here ---
--- ports/Mk/bsd.java.mk.orig	Tue Sep 30 21:15:09 2003
+++ ports/Mk/bsd.java.mk	Tue Sep 30 21:15:24 2003
@@ -56,7 +56,7 @@
 _JAVA_HOME_IBM_LINUX_1_4=		${LOCALBASE}/linux-ibm-jdk1.4.1
 _JAVA_HOME_SUN_LINUX_1_2=		${LOCALBASE}/linux-sun-jdk1.2.2
 _JAVA_HOME_SUN_LINUX_1_3=		${LOCALBASE}/linux-sun-jdk1.3.1
-_JAVA_HOME_SUN_LINUX_1_4=		${LOCALBASE}/linux-sun-jdk1.4.2
+_JAVA_HOME_SUN_LINUX_1_4=		${LOCALBASE}/linux-sun-jdk1.4.2_01
 
 # Set the JDK ports for all recognized JDK's
 _JAVA_PORT_FREEBSD_1_1=			java/jdk11
--- java.diff ends here ---


>Release-Note:
>Audit-Trail:

From: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>, xi@borderworlds.dk
Subject: Re: java/57420: linux-sun-jdk 1.4.2 is not detected when building java ports
Date: Tue, 30 Sep 2003 22:13:15 +0200

 On the other hand, maybe 'java/linux-sun-jdk14' should install in
 ${LOCALBASE}/linux-sun-jdk1.4.2 instead of
 ${LOCALBASE}/linux-sun-jdk1.4.2_01, as this is the case for all other
 JDK ports, even those with a JDK revision number.
 
 Herve
 
 On Tue, Sep 30, 2003 at 09:22:12PM +0200, Christian Laursen wrote:
 > >Description:
 > When linux-sun-jdk-1.4.2.01_1 is installed and I try to build a
 > port that depends on java, it is not detected and the ports system
 > tries to build a jdk 1.2 instead.
 > 	
 > >How-To-Repeat:
 > Have linux-sun-jdk-1.4.2.01_1 installed and try to build a java port
 > e.g. devel/apache-ant.
 > 	
 > >Fix:
 > 
 > The below change fixes it for me, but I'm not sure that it is the
 > most elegant way to solve the problem.
 > 
 > --- java.diff begins here ---
 > --- ports/Mk/bsd.java.mk.orig	Tue Sep 30 21:15:09 2003
 > +++ ports/Mk/bsd.java.mk	Tue Sep 30 21:15:24 2003
 > @@ -56,7 +56,7 @@
 >  _JAVA_HOME_IBM_LINUX_1_4=		${LOCALBASE}/linux-ibm-jdk1.4.1
 >  _JAVA_HOME_SUN_LINUX_1_2=		${LOCALBASE}/linux-sun-jdk1.2.2
 >  _JAVA_HOME_SUN_LINUX_1_3=		${LOCALBASE}/linux-sun-jdk1.3.1
 > -_JAVA_HOME_SUN_LINUX_1_4=		${LOCALBASE}/linux-sun-jdk1.4.2
 > +_JAVA_HOME_SUN_LINUX_1_4=		${LOCALBASE}/linux-sun-jdk1.4.2_01
 >  
 >  # Set the JDK ports for all recognized JDK's
 >  _JAVA_PORT_FREEBSD_1_1=			java/jdk11
 > --- java.diff ends here ---
State-Changed-From-To: open->closed 
State-Changed-By: glewis 
State-Changed-When: Tue Sep 30 16:43:08 PDT 2003 
State-Changed-Why:  
Herve is right.  I've just committed a fix. 

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