jdk5.0 - size test problem

Erik lerouge@grabeuh.com
Wed Nov 24 14:44:03 2004


Package: java-package
Version: 0.17

Error mesage:
[snip]
Done.

Testing extracted archive...
Invalid size (131 MB) of extracted archive. Probably you have not
enough free disc space in the temporary directory. Note: You can
specify an alternate directory by setting the environment variable
TMPDIR.


Aborted.

Removing temporary directory: done

Command launched:
# make-jpkg jdk-1_5_0-linux-i586.bin

Problem:
The "debianization" of the package should happen and produce the followin=
g
file: sun-j2sdk1.5_1.5.0+final_i386.deb
After reading the program, it seems that the expected size declared for t=
he
Sun JDK 5.0 is wrong.
in /usr/share/java-package/sun-j2sdk.sh, I changed
  j2se_expected_min_size=3D134 # 136608 kB$
 to$
  j2se_expected_min_size=3D131 # 136608 kB$
as it is the size returned by the command
  local size=3D"$( diskusage "$extract_dir" )"
in the file /usr/share/java-package/common.sh, line 88.

I tried downloading twice the Sun JDK5.0. Twice I got the same md5sum:
23:18 lerouge@lilith ~/down% md5sum jdk-1_5_0-linux-i586.bin
81d0511feb32e7b7d61f7c07ee0b15e9  jdk-1_5_0-linux-i586.bin

Once I did the fix mentionned above, I got my .deb package:
23:24 root@lilith /tmp# ls -al sun-j2sdk1.5_1.5.0+final_i386.deb=B7$
-rw-------  1 root root 59M 2004-11-19 23:04
And it seems to work as I now have (no Java at all before):
0:06 lerouge@lilith ~/down% java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)

Hope it helps.

mes 0.02=80

LeRouge