Package: jikes-sun
Version: 0.10
Severity: wishlist
Tags: patch

        Hi,

 I wanted to try out jikes, but I have no idea whether that makes sense
 with sun-java5-jdk/sun-java5-bin.  If it does, here's a patch.

   Bye,

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

-- 
Loïc Minier <[EMAIL PROTECTED]>
diff -Nru /tmp/WXteXkAdxP/jikes-contrib-0.10/debian/changelog 
/tmp/Dt2MfXYvSB/jikes-contrib-0.11/debian/changelog
--- /tmp/WXteXkAdxP/jikes-contrib-0.10/debian/changelog 2006-09-03 
03:38:08.000000000 +0200
+++ /tmp/Dt2MfXYvSB/jikes-contrib-0.11/debian/changelog 2006-11-08 
18:57:58.000000000 +0100
@@ -1,3 +1,16 @@
+jikes-contrib (0.11) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Permit Sun Java(TM) from non-free.
+    - Swap the version / path_type to permit looping on sun-java*-bin
+      locations as well; makes more sense anyway.
+    - Test for /usr/lib/jvm/java-${version}.*-sun-${version}.*/jre/lib in the
+      loop as well.
+    - Update error message for a missing rt.jar.
+    - Allow sun-java5-bin in Depends as well.
+
+ -- Loic Minier <[EMAIL PROTECTED]>  Wed,  8 Nov 2006 18:56:38 +0100
+
 jikes-contrib (0.10) unstable; urgency=low
 
   * Corrected location of java rt.jar for the latest sun-j2sdk1.5
diff -Nru /tmp/WXteXkAdxP/jikes-contrib-0.10/debian/control 
/tmp/Dt2MfXYvSB/jikes-contrib-0.11/debian/control
--- /tmp/WXteXkAdxP/jikes-contrib-0.10/debian/control   2006-09-03 
03:15:27.000000000 +0200
+++ /tmp/Dt2MfXYvSB/jikes-contrib-0.11/debian/control   2006-11-08 
18:54:47.000000000 +0100
@@ -7,7 +7,7 @@
 
 Package: jikes-sun
 Architecture: all
-Depends: jikes, j2re1.3 (>=1.3.1) | j2sdk1.3 (>= 1.3.1) | j2re1.4 | 
sun-j2re1.4 (>>1.4.2) | sun-j2re1.5 | sun-j2sdk1.5
+Depends: jikes, j2re1.3 (>=1.3.1) | j2sdk1.3 (>= 1.3.1) | j2re1.4 | 
sun-j2re1.4 (>>1.4.2) | sun-j2re1.5 | sun-j2sdk1.5 | sun-java5-bin
 Recommends: java-package
 Provides: java-compiler
 Description: Wrapper for jikes using Sun Java classes
diff -Nru /tmp/WXteXkAdxP/jikes-contrib-0.10/src/jikes-sun 
/tmp/Dt2MfXYvSB/jikes-contrib-0.11/src/jikes-sun
--- /tmp/WXteXkAdxP/jikes-contrib-0.10/src/jikes-sun    2006-09-03 
03:37:17.000000000 +0200
+++ /tmp/Dt2MfXYvSB/jikes-contrib-0.11/src/jikes-sun    2006-11-08 
18:54:30.000000000 +0100
@@ -1,7 +1,7 @@
 #!/bin/sh -e
 
-for path_type in re sdk; do
-       for version in 1.6 1.5 1.4; do
+for version in 1.6 1.5 1.4; do
+       for path_type in re sdk; do
                if [ -e /usr/lib/j2${path_type}${version}-sun/jre/lib/rt.jar ]; 
then
                        JPATH=/usr/lib/j2${path_type}${version}-sun/jre/lib
                        break 2
@@ -10,6 +10,11 @@
                        break 2
                fi
        done
+       # Sun Java(TM) from non-free (in sun-java*-bin)
+       if [ -e /usr/lib/jvm/java-${version}.*-sun-${version}.*/jre/lib/rt.jar 
]; then
+               JPATH=/usr/lib/jvm/java-${version}.*-sun-${version}.*/jre/lib
+               break
+       fi
 done
 
 if [ "x$JPATH" = "x" ]; then
@@ -29,7 +34,7 @@
 
 # Print error
 echo
-echo "----- Cannot find SUN Java (created with java-package) "
+echo "----- Cannot find SUN Java (created with java-package or from non-free) "
 echo "----- or Blackdown files. Please file a bug against jikes-sun"
 echo
 exit 1

Reply via email to