From owner-freebsd-java@FreeBSD.ORG Tue Sep 30 13:30:20 2003 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A75316A4B3 for ; Tue, 30 Sep 2003 13:30:20 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50CA544005 for ; Tue, 30 Sep 2003 13:30:18 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8UKUHFY052206 for ; Tue, 30 Sep 2003 13:30:17 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8UKUH8p052205; Tue, 30 Sep 2003 13:30:17 -0700 (PDT) (envelope-from gnats) Date: Tue, 30 Sep 2003 13:30:17 -0700 (PDT) Message-Id: <200309302030.h8UKUH8p052205@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Herve Quiroz Subject: Re: java/57420: linux-sun-jdk 1.4.2 is not detected when building java ports X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Herve Quiroz List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2003 20:30:20 -0000 The following reply was made to PR java/57420; it has been noted by GNATS. From: Herve Quiroz To: FreeBSD-gnats-submit@FreeBSD.org Cc: Herve Quiroz , 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 ---