[packages/icedtea7: 46/103] - set JAVA_HOME and PATH... otherwise it works, but configure seems to take random javac from /usr/b

jajcus jajcus at pld-linux.org
Fri Apr 19 13:11:41 CEST 2013


commit 380399dca578937f876558263059751c4eef4165
Author: Jacek Konieczny <jajcus at pld-linux.org>
Date:   Fri Apr 16 13:52:49 2010 +0000

    - set JAVA_HOME and PATH... otherwise it works, but configure seems to take random javac from /usr/bin then, which may be unreliable
    
    Changed files:
        icedtea6.spec -> 1.39

 icedtea6.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/icedtea6.spec b/icedtea6.spec
index 8383f0d..0231b60 100644
--- a/icedtea6.spec
+++ b/icedtea6.spec
@@ -356,7 +356,12 @@ ln -s %{SOURCE3} drops
 ln -s %{SOURCE4} drops
 
 %build
-unset JAVA_HOME || :
+%if %{with bootstrap}
+export JAVA_HOME=%{_gcj_home}
+%else
+export JAVA_HOME=%{_jvmdir}/icedtea6
+%endif
+export PATH="$JAVA_HOME/bin:$PATH"
 
 %{__aclocal}
 %{__autoconf}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/icedtea7.git/commitdiff/f360048b2271851d733c2fc755b8e7cae2f337cf



More information about the pld-cvs-commit mailing list