On 3/10/15 10:30, Chris Schram wrote:
> While attempting to update virtuoso under El Capitan, I'm getting a
> complaint that I need to have (the old) Java 1.6.0 installed, which I do.
>
> javac -version returns "javac 1.6.0_65"
>
> I have, at least temporarily removed the current jdk-8u60 from java.com;
> no joy.
[]
> The following additional package will be installed:
>   system-java16-dev
> Do you want to continue? [Y/n] (assuming default)
> Setting runtime build-lock...
> dpkg-deb -b
> /sw/src/fink.build/root-fink-buildlock-system-java16-dev-1.6.0-1
> /sw/src/fink.build
> dpkg-deb: building package `fink-buildlock-system-java16-dev-1.6.0-1' in
> `/sw/src/fink.build/fink-buildlock-system-java16-dev-1.6.0-1_2015.10.02-2
> 3.44.08_darwin-x86_64.deb'.
> Installing build-lock package...
> /sw/bin/dpkg-lockwait -i
> /sw/src/fink.build/fink-buildlock-system-java16-dev-1.6.0-1_2015.10.02-23
> .44.08_darwin-x86_64.deb
> Selecting previously deselected package
> fink-buildlock-system-java16-dev-1.6.0-1.
> (Reading database ... 290155 files and directories currently installed.)
> Unpacking fink-buildlock-system-java16-dev-1.6.0-1 (from
> .../fink-buildlock-system-java16-dev-1.6.0-1_2015.10.02-23.44.08_darwin-x
> 86_64.deb) ...
> Setting up fink-buildlock-system-java16-dev-1.6.0-1
> (2015.10.02-23.44.08) ...
>
> sudo -u fink-bld [ENV] sh -c /tmp/fink.imghD
[]
> Also include the following system information:
> Package manager version: 0.39.0
> Distribution version: selfupdate-rsync Fri Oct  2 23:39:58 2015, 10.11,
> x86_64
> Trees: local/main stable/main unstable/crypto unstable/main
> local/injected
> Xcode.app: 7.0.1
> Xcode command-line tools: 7.0.0.0.1.1441394355
> Max. Fink build jobs:  1

It seems Apple loves stirring the stinking mess that is Java on the Mac. 
This time they moved the JavaVirtualMachines directory from 
/System/Library/Java, where fink expects to find it for java-1.6.0, to 
/Library/Java. If you don't want to wait until a new version of fink 
fixes this, you can do the following:

Edit (as root) the file /sw/lib/perl5/Fink/VirtPackage.pm and change 
line 438 from

$javadir = '/System/Library/Frameworks/JavaVM.framework/Versions' if 
$javadir =~ /System/;

to

$javadir = '/System/Library/Frameworks/JavaVM.framework/Versions' if 
($javadir =~ /System/  or $ver =~ /1.6.0/);

that is, add "or $ver =~ /1.6.0/" to the if clause at the end of the line.

Then system-java16-dev should show up as installed, and you can proceed.

-- 
Martin



------------------------------------------------------------------------------
_______________________________________________
Fink-beginners mailing list
Fink-beginners@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to