[148683] trunk/dports/devel/apache-ant/Portfile

Ryan Schmidt ryandesign at macports.org
Sun May 15 23:52:15 PDT 2016


> On May 14, 2016, at 9:16 PM, blair at macports.org wrote:
> 
> Revision
> 148683
> Author
> blair at macports.org
> Date
> 2016-05-14 19:16:09 -0700 (Sat, 14 May 2016)
> Log Message
> 
> apache-ant: build +source variant build failure.
> 
> bash-3.2# /opt/local/bin/port -v build apache-ant +source
> --->  Fetching distfiles for apache-ant
> --->  Verifying checksums for apache-ant
> --->  Checksumming apache-ant-1.9.7-src.tar.bz2
> --->  Extracting apache-ant
> --->  Extracting apache-ant-1.9.7-src.tar.bz2
> --->  Configuring apache-ant
> --->  Building apache-ant
> Error: JAVA_HOME is not defined correctly.
>   We cannot execute /Library/Java/Home/bin/java
> Bootstrap FAILED
> Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apache-ant/apache-ant/work/apache-ant-1.9.7" && ./build.sh dist -Dchmod.fail=false -Ddist.name=apache-ant 
> Exit code: 1

> --- trunk/dports/devel/apache-ant/Portfile	2016-05-15 02:10:01 UTC (rev 148682)
> +++ trunk/dports/devel/apache-ant/Portfile	2016-05-15 02:16:09 UTC (rev 148683)
> 
> @@ -35,7 +35,7 @@
>  build.cmd               true
>  
>  platform darwin {
> -    build.env           JAVA_HOME=/Library/Java/Home
> +        build.env       JAVA_HOME=[exec /usr/libexec/java_home]
>  }

The java 1.0 portgroup's purpose to set the JAVA_HOME variable for you, so you might want to use that instead of doing it manually.




More information about the macports-dev mailing list