Subject: Re: devel/apache-ant problem
To: None <>
From: Antoine Reilles <>
List: tech-pkg
Date: 12/13/2005 22:34:38
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable


On Tue, Dec 13, 2005 at 02:03:36PM -0700, wrote:
> I am having a problem with the devel/apache-ant package.  The problem
> seems to be associated with executing the $JAVACMD command inside the
> bin/ant wrapper program.

>      +# use ${PREFIX}/bin/java (wrapper)
>      +if [ "$JAVACMD" =3D "" ] ; then
>      +  JAVACMD=3D@PREFIX@/bin/java
>      +fi
> The problem is that there is no $PREFIX/bin/java installed by java,
> and so the program fails.
It should be provided by pkg_alternatives
I don't know what happens if you do not have pkg_alternatives installed
pkg_alternatives should be installed as soon as you install a package
providing an alternative, and i counted on that for apache-ant.

A better solution for this would be to have a variable providing the
path to java in mk/, and use it instead of the
pkg_alternatives wrapper

> If the definition of JAVACMD is changed to
>     JAVACMD=3D$JAVA_HOME/bin/java
> it seems to work fine.
yes, but that will probably work only for sun's java. kaffe also
provides a java_home/bin/java, but do all java vm do the same ?
If yes, this is a change we should take
> Is there some other magic package that is supposed to be installed, or
> do I have things misconfigured?  How is this supposed to work
> correctly as written?
it's pkg_alternatives, but i don;t know much on how it works
anyway, it would be better for apache-ant not to depend on that, since
it looks like it may break.

Best regards,

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.4.2 (Darwin)