Bug#286718: java-package: patch to support current Sun Java

Peter Marschall Peter Marschall <peter@adpm.de>, 286718@bugs.debian.org
Sun Jan 2 14:39:02 2005


This is a multi-part MIME message sent by reportbug.

--===============0015082825==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: java-package
Version: 0.17pm1
Followup-For: Bug #286718

Hi,

the attached patch supports the current versions of Sun's JDK and JRE.
The required diskspaces should be correct since I took them from the
..bin files.

Using this patch I successfully installed Sun's JDK 1.5.0+01.

Hope it helps
Peter

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-k7
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)

Versions of packages java-package depends on:
ii  debhelper                     4.2.28     helper programs for debian/rules

-- no debconf information

--===============0015082825==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="java-package-sun.patch"

--- lib/sun-j2re.sh	2004-11-12 15:33:34.000000000 +0100
+++ lib/sun-j2re.sh	2005-01-02 13:29:16.000000000 +0100
@@ -35,6 +35,11 @@
 	    j2se_expected_min_size=85 # 86832 kB
 	    found=true
 	    ;;
+	"jre-1_5_0_"[0-9][0-9]"-linux-i586.bin")
+	    j2se_version="1.5.0+${archive_name:10:2}"
+	    j2se_expected_min_size=58 # 58408 kB
+	    found=true
+	    ;;
       esac
       ;;
     "x86_64-linux")
@@ -44,6 +49,11 @@
 	    j2se_expected_min_size=68 # 69936 kB
 	    found=true
 	    ;;
+	"jre-1_5_0_"[0-9][0-9]"-linux-amd64.bin")
+	    j2se_version="1.5.0+${archive_name:10:2}"
+	    2se_expected_min_size=56 # 56867 kB
+	    found=true
+	    ;;
       esac
       ;;
   esac
--- lib/sun-j2sdk.sh	2004-11-12 15:33:34.000000000 +0100
+++ lib/sun-j2sdk.sh	2005-01-02 13:31:59.000000000 +0100
@@ -35,6 +35,11 @@
 	    j2se_expected_min_size=134 # 136608 kB
 	    found=true
 	    ;;
+	"jdk-1_5_0_"[0-9][0-9]"-linux-i586.bin")
+	    j2se_version="1.5.0+${archive_name:10:2}"
+	    j2se_expected_min_size=128 # 130324 kB
+	    found=true
+	    ;;
       esac
       ;;
     "ia64-linux")
@@ -63,6 +68,11 @@
 	    j2se_expected_min_size=110 # 112940 kB
 	    found=true
 	    ;;
+	"jdk-1_5_0_"[0-9][0-9]"-linux-amd64.bin")
+	    j2se_version="1.5.0+${archive_name:10:2}"
+	    j2se_expected_min_size=116 # 117773 kB
+	    found=true
+	    ;;
       esac
       ;;
   esac

--===============0015082825==--