[Lunar-commits] <moonbase> sun-jdk: fix the symlinks for default and latest

Zachary McGrew zmcgrew at lunar-linux.org
Sat Nov 12 20:47:48 CET 2011


commit 463c1b6b89ed67f6a421df701449a959b07fdca2
Author: Zachary McGrew <zmcgrew at lunar-linux.org>
Date:   Sat Nov 12 11:47:48 2011 -0800

    sun-jdk: fix the symlinks for default and latest
    
    Now programs can actually find java again!
---
 compilers/sun-jdk/BUILD |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/compilers/sun-jdk/BUILD b/compilers/sun-jdk/BUILD
index 2d3b47e..fecd483 100644
--- a/compilers/sun-jdk/BUILD
+++ b/compilers/sun-jdk/BUILD
@@ -13,7 +13,7 @@
   cp -r $SOURCE_DIRECTORY /usr/java &&
   # Sun's recommended symlinks:
   # This one _always_ points on latest Java release
-  ln -sf /usr/java/jdk${FVERSION} /usr/java/latest &&
+  ln -sf /usr/java/jdk${DVERSION} /usr/java/latest &&
   # This one _always_ points on default Java.
   # If not set manually by root it defaults to /usr/java/latest:
   if [ ! -h /usr/java/default ]; then
@@ -22,7 +22,7 @@
 
   # Some dumb distros say java is only library so install it in /usr/lib
   # We make symlink to help applications find java if they were developed in such ill environment
-  ln -sf /usr/java/jdk${FVERSION} /usr/lib/jdk${FVERSION} &&
+  ln -sf /usr/java/jdk${DVERSION} /usr/lib/jdk${DVERSION} &&
 
   # Some applications don't accept anything but /usr/bin
   for file in /usr/java/latest/bin/*; do


More information about the Lunar-commits mailing list