[ 
https://issues.apache.org/jira/browse/AVRO-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834511#action_12834511
 ] 

Scott Carey commented on AVRO-318:
----------------------------------

bq. The Java 5 stuff is just a requirement of Forrest. No way around it.
As in Forrest won't build without Java5 -- Java6 breaks it?  or as in that 
env.variable must be set?

If the latter, just have the script check to see if the env var is set, and if 
not then set it locally to 
{noformat}
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/
{noformat}
which on all recent Macs should be a symlink to either an actual java 1.5, or 
1.6 if that doesn't exist.

bin/java is contained within.

On Snow Leopard (OSX 10.6) there is no Java 5, only Zul... err Java 6.

Snow Leopard's java version mapping directory looks like this:
{noformat}
$ ls -lh /System/Library/Frameworks/JavaVM.framework/Versions/
total 64
lrwxr-xr-x  1 root  wheel     5B Dec 17 09:46 1.3 -> 1.3.1
drwxr-xr-x  3 root  wheel   102B Jul 20  2009 1.3.1
lrwxr-xr-x  1 root  wheel    10B Dec 17 09:46 1.4 -> CurrentJDK
lrwxr-xr-x  1 root  wheel    10B Dec 17 09:46 1.4.2 -> CurrentJDK
lrwxr-xr-x  1 root  wheel    10B Dec 17 09:46 1.5 -> CurrentJDK
lrwxr-xr-x  1 root  wheel    10B Dec 17 09:46 1.5.0 -> CurrentJDK
lrwxr-xr-x  1 root  wheel     5B Dec 17 09:46 1.6 -> 1.6.0
drwxr-xr-x  8 root  wheel   272B Sep 29 10:06 1.6.0
lrwxr-xr-x  1 root  wheel     3B Dec 17 09:46 CurrentJDK -> 1.6
{noformat}

> Build.sh cleanup: md5/sha1 on Mac OS X, don't fail hard if build/ exists, and 
> play nice with Forrest
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AVRO-318
>                 URL: https://issues.apache.org/jira/browse/AVRO-318
>             Project: Avro
>          Issue Type: Bug
>          Components: build
>            Reporter: Jeff Hammerbacher
>            Priority: Blocker
>             Fix For: 1.3.0
>
>
> I encountered three problems when trying to build Avro today (via "./build.sh 
> dist) to test interop:
> * md5sum and sha1sum do not exist on Mac (md5 is the replacement for the 
> former)
> * If "build/" exists, you fail hard with "mkdir: build: File exists"
> * If you don't have Java 5, Forrest fails with "'java5.home' is not defined.  
> Forrest requires Java 5." and other good stuff.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to