From owner-freebsd-java@FreeBSD.ORG Thu Jul 7 16:00:29 2005 Return-Path: X-Original-To: java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C805E16A41C for ; Thu, 7 Jul 2005 16:00:29 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (arabica.esil.univ-mrs.fr [139.124.41.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2975243D48 for ; Thu, 7 Jul 2005 16:00:28 +0000 (GMT) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: from arabica.esil.univ-mrs.fr (localhost [127.0.0.1]) by arabica.esil.univ-mrs.fr (8.13.3/8.13.3) with ESMTP id j67G0AiK076959; Thu, 7 Jul 2005 18:00:10 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) Received: (from rv@localhost) by arabica.esil.univ-mrs.fr (8.13.3/8.13.3/Submit) id j67G095G076841; Thu, 7 Jul 2005 18:00:09 +0200 (CEST) (envelope-from herve.quiroz@esil.univ-mrs.fr) X-Authentication-Warning: arabica.esil.univ-mrs.fr: rv set sender to herve.quiroz@esil.univ-mrs.fr using -f Date: Thu, 7 Jul 2005 18:00:09 +0200 From: Herve Quiroz To: "Mikhail T." Message-ID: <20050707160009.GA73809@arabica.esil.univ-mrs.fr> Mail-Followup-To: "Mikhail T." , java@FreeBSD.org References: <200507070452.j674qW8c077481@blue.virtual-estates.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200507070452.j674qW8c077481@blue.virtual-estates.net> User-Agent: Mutt/1.4.2.1i Cc: java@FreeBSD.org Subject: Re: xalan-j and Java-1.5 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2005 16:00:29 -0000 Hi Mikhail, On Thu, Jul 07, 2005 at 12:52:32AM -0400, Mikhail T. wrote: > According to http://java.sun.com/j2se/1.5.0/compatibility.html , > Java-1.5 comes with Xerces from Apache, so there is no need to build it > for Xalan's sake if the used Java is of version 1.5 > > In addition, the xerces-j would not build with 1.5 anyway :-) > > Below is a patch for xalan-j -- please, commit or allow me to do so. > There is no need to bump portrevision, because the currently existin > package(s) will not change. You're right about the Xerces vs JDK 1.5 issue. I think I mentioned it in my last commit log. Anyway, here is the build output when using your patch: $ make -DUSE_JIKES=no JAVA_PREFERRED_PORTS=JAVA_PORT_NATIVE_BSDJAVA_JDK_1_5 ===> Building for xalan-j-2.6.0 Buildfile: build.xml prepare: [echo] Project:Xalan-Java version:2_6_0 build.xml $Revision: 1.206 $ xml.compile: [echo] Compiling DTM implementation and utilities [javac] Compiling 3 source files to /tmp/xalan-j/work/xalan-j_2_6_0/build/classes [javac] javac: target release 1.1 conflicts with default source release 1.5 BUILD FAILED /tmp/xalan-j/work/xalan-j_2_6_0/build.xml:256: Compile failed; see the compiler error output for details. Total time: 4 seconds *** Error code 1 Stop in /tmp/xalan-j. So we will need some more tweaking here if we want Xalan-J to work with JDK 1.5. I agree with you anyway: we need to fix this. I'll have another look at this ASAP. BTW, I suggest using the following macro to get the JDK version (documented in bsd.java.mk header): > +.if empty(JAVA_HOME:M*1.5*) > +RUN_DEPENDS+= ${JAVALIBDIR}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j > +.endif > + ==> .if "${JAVA_PORT_VERSION:C/^([0-9])\.([0-9])(.*)$/\1.\2/}" == "1.5" Herve