Bug#286718: java-package fails to build sun 1.5.0 update 1

Andreas Pakulat Andreas Pakulat <apaku@gmx.de>, 286718@bugs.debian.org
Tue Dec 21 11:12:03 2004


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

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

Package: java-package
Version: 0.18
Severity: important

Hi,

java-package doesn't work with Sun's jdk 1.5.0 Update 1:

fakeroot make-jpkg jdk-1_5_0-linux-i586.bin
Creating temporary directory: /tmp/make-jpkg.XXXXFvpoqb
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh
j2re.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk.sh

Detected product:
    Java(TM) Software Development Kit (J2SDK)
    Standard Edition, Version 1.5.0+final
    Sun Microsystems(TM), Inc.	    
...
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

df -h | grep tmp:
/dev/mapper/vgmorpheus-lvtmp 1,1G  8,2M  984M   1% /tmp

I attached a patch which adds support for both the
jdk-1_5_0_1-linux-i586.bin filename and the size of the extracted
archive (131 MB according to above output)

Andreas

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-cherry
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

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

-- no debconf information

--===============2046289573==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="diff.out"

diff -ur java-package-0.17/lib/sun-j2sdk.sh java-package-0.17.new/lib/sun-j2sdk.sh
--- java-package-0.17/lib/sun-j2sdk.sh	2004-11-12 15:33:34.000000000 +0100
+++ java-package-0.17.new/lib/sun-j2sdk.sh	2004-12-21 18:47:28.000000000 +0100
@@ -35,6 +35,11 @@
 	    j2se_expected_min_size=134 # 136608 kB
 	    found=true
 	    ;;
+	"jdk-1_5_0_1-linux-i586.bin")
+	    j2se_version=1.5.0+update1
+	    j2se_expected_min_size=131 # 
+	    found=true
+	    ;;
       esac
       ;;
     "ia64-linux")

--===============2046289573==--