java.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. diff -u -r libgda-5.2.4/getsp.java libgda-5.2.4-java/getsp.java
  2. --- libgda-5.2.4/getsp.java 2014-02-05 21:28:20.000000000 +0100
  3. +++ libgda-5.2.4-java/getsp.java 2015-06-14 20:27:35.770310228 +0200
  4. @@ -25,7 +25,7 @@
  5. while (i<=j) {
  6. if (i==j || lp.charAt(i)==ps) {
  7. String lib=lp.substring(k,i);
  8. - String suffix="/lib/amd64/server";
  9. + String suffix="/lib/"+System.getProperty("os.arch")+"/server";
  10. k=i+1;
  11. if (lib.compareTo(".")!=0)
  12. r=(r==null)?(prefix+lib+suffix):(r+" "+prefix+lib+suffix);
  13. @@ -50,7 +50,7 @@
  14. if (r!=null) System.out.println(r);
  15. } else if (args[0].compareTo("-ldpath")==0) {
  16. - String lp1=System.getProperty("java.home")+"/lib/amd64/server";
  17. + String lp1=System.getProperty("java.home")+"/lib/"+System.getProperty("os.arch")+"/server";
  18. String lp2=System.getProperty("java.library.path");
  19. System.out.println(lp1+":"+lp2);
  20. }
  21. diff -u -r libgda-5.2.4/m4/java.m4 libgda-5.2.4-java/m4/java.m4
  22. --- libgda-5.2.4/m4/java.m4 2015-06-13 10:36:25.000000000 +0200
  23. +++ libgda-5.2.4-java/m4/java.m4 2015-06-14 20:16:59.865581930 +0200
  24. @@ -175,6 +175,11 @@
  25. JTYPE="Sun JRE 1.7"
  26. JFLAGS="-Xlint:unchecked -Xlint:deprecation"
  27. ;;
  28. + JRE1.8.*)
  29. + try_java=true
  30. + JTYPE="Sun JRE 1.8"
  31. + JFLAGS="-Xlint:unchecked -Xlint:deprecation"
  32. + ;;
  33. JREgcj-4*)
  34. try_java=true
  35. JTYPE="GCJ"