Bug#337129: marked as done (java-package: Does not work with IBM Java 5.0 (patch included))

Debian Bug Tracking System owner at bugs.debian.org
Wed Nov 9 16:33:17 UTC 2005


Your message dated Wed, 09 Nov 2005 08:17:05 -0800
with message-id <E1EZsdF-00051Z-00 at spohr.debian.org>
and subject line Bug#337129: fixed in java-package 0.27
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 2 Nov 2005 19:25:59 +0000
>From kevin.squire at gmail.com Wed Nov 02 11:25:59 2005
Return-path: <kevin.squire at gmail.com>
Received: from xproxy.gmail.com [66.249.82.195] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EXOFC-0000nv-00; Wed, 02 Nov 2005 11:25:58 -0800
Received: by xproxy.gmail.com with SMTP id t10so364368wxc
        for <submit at bugs.debian.org>; Wed, 02 Nov 2005 11:25:57 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:mime-version:content-type;
        b=KtYUtLdRcOnijrIWI9aiTSoCEYb5Ifr7yfnPrzNL0nDSG4o2UoVlm1UcBlXxZjdDx07Nc39xJdFc/K/oHcJOF9MLiE3RXQCRi7tJSLaluj45Nkmo6JAt2ZECEg4n+qvSKdUVoov+7CQIT8s0KrpfhKyQGxzYmebN96V4DdvZyk8=
Received: by 10.65.232.19 with SMTP id j19mr2172398qbr;
        Wed, 02 Nov 2005 11:25:57 -0800 (PST)
Received: by 10.65.119.10 with HTTP; Wed, 2 Nov 2005 11:25:57 -0800 (PST)
Message-ID: <37f60ca30511021125m6c44d294jec58b550e0dee49a at mail.gmail.com>
Date: Wed, 2 Nov 2005 11:25:57 -0800
From: Kevin Squire <kevin.squire at gmail.com>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: java-package: Does not work with IBM Java 5.0 (patch included)
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_9186_18179669.1130959557408"
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	RCVD_IN_BL_SPAMCOP_NET autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02

------=_Part_9186_18179669.1130959557408
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Subject: java-package: Does not work with IBM Java 5.0 (patch included)
Package: java-package
Version: 0.26
Severity: normal

*** Please type your report below this line ***

Version 0.26 of java-package does not work with IBM's Java release 5.0.
I've included a patch which updates the package to fix this.  The
package should allow the use of java-package with all available versions
of IBM's sdk and jre.

Kevin

-- System Information:
Debian Release: testing/unstable
  APT prefers breezy-updates
  APT policy: (500, 'breezy-updates'), (500, 'breezy-security'), (500,
'breezy')Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-9-686
Locale: LANG=3Den_US.UTF-8, LC_CTYPE=3Den_US.UTF-8 (charmap=3DUTF-8)

Versions of packages java-package depends on:
ii  coreutils                 5.2.1-2ubuntu2 The GNU core utilities
ii  debhelper                 4.9.5ubuntu1   helper programs for debian/rul=
es
ii  fakeroot                  1.5.1ubuntu2   Gives a fake root environment
ii  unzip                     5.52-3ubuntu2  De-archiver for .zip files

java-package recommends no packages.

-- no debconf information

------=_Part_9186_18179669.1130959557408
Content-Type: text/x-patch; name=java_package_ibm_update.diff; 
	charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="java_package_ibm_update.diff"

diff -Naur java-package-0.26.orig/debian/control java-package-0.26/debian/control
--- java-package-0.26.orig/debian/control	2005-08-29 14:37:54.000000000 -0700
+++ java-package-0.26/debian/control	2005-11-02 08:34:11.000000000 -0800
@@ -17,5 +17,5 @@
  Environments and Development Kits:
  .
   * Sun Microsystems(TM) 1.4 and 1.5 Standard Edition
-  * IBM(TM) 1.3 and 1.4 Standard Edition
+  * IBM(TM) 1.3, 1.4, and 5.0 Standard Edition
   * Blackdown Java-Linux 1.3 and 1.4 Standard Edition
diff -Naur java-package-0.26.orig/ibm-j2re5.0/install java-package-0.26/ibm-j2re5.0/install
--- java-package-0.26.orig/ibm-j2re5.0/install	1969-12-31 16:00:00.000000000 -0800
+++ java-package-0.26/ibm-j2re5.0/install	2005-11-02 08:04:18.000000000 -0800
@@ -0,0 +1,58 @@
+suffix=j2re5.0-ibm
+j2se_base="/usr/lib/$suffix"
+priority=314
+
+if [ ! -e "$j2se_base/debian/info" ]; then
+    exit 0
+fi
+
+# alternative <program>
+function program_alternative() {
+    local program="$1"
+    cat >/usr/bin/$program-$suffix <<EOF
+#! /bin/sh
+exec $j2se_base/jre/bin/$program \${1+"\$@"}
+EOF
+    chmod 755 /usr/bin/$program-$suffix
+    update-alternatives \
+        --install "/usr/bin/$program" "$program" \
+        "/usr/bin/$program-$suffix" "$priority"
+}
+
+program_alternative java
+program_alternative javaw
+program_alternative rmid
+program_alternative rmiregistry
+
+# the plugin is only available for i386 architecture
+
+if [ $(dpkg --print-architecture) = i386 ] ; then
+
+    # assemble the plugin path
+    plugin_dir="$j2se_base/jre/bin"
+
+    # netscape
+    netscape_dir="/usr/lib/netscape/plugins-libc6"
+    [ -d "$netscape_dir" ] || install -d -m 755 "$netscape_dir"
+    update-alternatives \
+        --install "$netscape_dir/libjavaplugin.so" \
+            "netscape-javaplugin.so" \
+            "$plugin_dir/libjavaplugin_oji.so" "$priority"
+
+    # mozilla
+    mozilla_dir="/usr/lib/mozilla/plugins"
+    [ -d "$mozilla_dir" ] || install -d -m 755 "$mozilla_dir"
+    update-alternatives \
+        --install "$mozilla_dir/libjavaplugin.so" \
+            "mozilla-javaplugin.so" \
+            "$plugin_dir/libjavaplugin_ojigtk2.so" "$priority"
+
+    # firefox
+    firefox_dir="/usr/lib/mozilla-firefox/plugins"
+    [ -d "$firefox_dir" ] || install -d -m 755 "$firefox_dir"
+    update-alternatives \
+        --install "$firefox_dir/libjavaplugin.so" \
+            "firefox-javaplugin.so" \
+            "$plugin_dir/libjavaplugin_ojigtk2.so" "$priority"
+
+fi
diff -Naur java-package-0.26.orig/ibm-j2re5.0/remove java-package-0.26/ibm-j2re5.0/remove
--- java-package-0.26.orig/ibm-j2re5.0/remove	1969-12-31 16:00:00.000000000 -0800
+++ java-package-0.26/ibm-j2re5.0/remove	2005-11-02 08:05:45.000000000 -0800
@@ -0,0 +1,39 @@
+suffix=j2re5.0-ibm
+j2se_base="/usr/lib/$suffix"
+
+if [ ! -e "$j2se_base/debian/info" ]; then
+    exit 0
+fi
+
+# alternative <program>
+function program_alternative() {
+    local program="$1"
+    update-alternatives \
+        --remove "$program" "/usr/bin/$program-$suffix"
+    rm "/usr/bin/$program-$suffix"
+}
+
+program_alternative java
+program_alternative javaw
+program_alternative rmid
+program_alternative rmiregistry
+
+# the plugin is only available for i386 architecture
+if [ $(dpkg --print-architecture) = i386 ] ; then
+
+    # assemble the plugin path
+    plugin_dir="$j2se_base/jre/bin"
+
+    # netscape
+    update-alternatives \
+        --remove "netscape-javaplugin.so" "$plugin_dir/libjavaplugin_oji.so"
+
+    # mozilla
+    update-alternatives \
+        --remove "mozilla-javaplugin.so" "$plugin_dir/libjavaplugin_ojigtk2.so"
+
+    # firefox
+    update-alternatives \
+        --remove "firefox-javaplugin.so" "$plugin_dir/libjavaplugin_ojigtk2.so"
+
+fi
diff -Naur java-package-0.26.orig/ibm-j2sdk5.0/install java-package-0.26/ibm-j2sdk5.0/install
--- java-package-0.26.orig/ibm-j2sdk5.0/install	1969-12-31 16:00:00.000000000 -0800
+++ java-package-0.26/ibm-j2sdk5.0/install	2005-11-01 12:10:17.000000000 -0800
@@ -0,0 +1,68 @@
+suffix=j2sdk5.0-ibm
+j2se_base="/usr/lib/$suffix"
+priority=314
+
+if [ ! -e "$j2se_base/debian/info" ]; then
+    exit 0
+fi
+
+# alternative <program>
+function program_alternative() {
+    local program="$1"
+    cat >/usr/bin/$program-$suffix <<EOF
+#! /bin/sh
+exec $j2se_base/bin/$program \${1+"\$@"}
+EOF
+    chmod 755 /usr/bin/$program-$suffix
+    update-alternatives \
+        --install "/usr/bin/$program" "$program" \
+        "/usr/bin/$program-$suffix" "$priority"
+}
+
+
+program_alternative appletviewer
+program_alternative idlj
+program_alternative jar
+program_alternative java
+program_alternative javac
+program_alternative javadoc
+program_alternative javah
+program_alternative javap
+program_alternative jdb
+program_alternative rmic
+program_alternative rmid
+program_alternative rmiregistry
+program_alternative serialver
+
+# the plugin is only available for i386 architecture
+
+if [ $(dpkg --print-architecture) = i386 ] ; then
+
+    # assemble the plugin path
+    plugin_dir="$j2se_base/jre/bin"
+
+    # netscape
+    netscape_dir="/usr/lib/netscape/plugins-libc6"
+    [ -d "$netscape_dir" ] || install -d -m 755 "$netscape_dir"
+    update-alternatives \
+        --install "$netscape_dir/libjavaplugin.so" \
+            "netscape-javaplugin.so" \
+            "$plugin_dir/libjavaplugin_oji.so" "$priority"
+
+    # mozilla
+    mozilla_dir="/usr/lib/mozilla/plugins"
+    [ -d "$mozilla_dir" ] || install -d -m 755 "$mozilla_dir"
+    update-alternatives \
+        --install "$mozilla_dir/libjavaplugin.so" \
+            "mozilla-javaplugin.so" \
+            "$plugin_dir/libjavaplugin_ojigtk2.so" "$priority"
+
+    # firefox
+    firefox_dir="/usr/lib/mozilla-firefox/plugins"
+    [ -d "$firefox_dir" ] || install -d -m 755 "$firefox_dir"
+    update-alternatives \
+        --install "$firefox_dir/libjavaplugin.so" \
+            "firefox-javaplugin.so" \
+            "$plugin_dir/libjavaplugin_ojigtk2.so" "$priority"
+
+fi
diff -Naur java-package-0.26.orig/ibm-j2sdk5.0/remove java-package-0.26/ibm-j2sdk5.0/remove
--- java-package-0.26.orig/ibm-j2sdk5.0/remove	1969-12-31 16:00:00.000000000 -0800
+++ java-package-0.26/ibm-j2sdk5.0/remove	2005-11-02 08:06:26.000000000 -0800
@@ -0,0 +1,48 @@
+suffix=j2sdk5.0-ibm
+j2se_base="/usr/lib/$suffix"
+
+if [ ! -e "$j2se_base/debian/info" ]; then
+    exit 0
+fi
+
+# alternative <program>
+function program_alternative() {
+    local program="$1"
+    update-alternatives \
+        --remove "$program" "/usr/bin/$program-$suffix"
+    rm "/usr/bin/$program-$suffix"
+}
+
+program_alternative appletviewer
+program_alternative idlj
+program_alternative jar
+program_alternative java
+program_alternative javac
+program_alternative javadoc
+program_alternative javah
+program_alternative javap
+program_alternative jdb
+program_alternative rmic
+program_alternative rmid
+program_alternative rmiregistry
+program_alternative serialver
+
+# the plugin is only available for i386 architecture
+if [ $(dpkg --print-architecture) = i386 ] ; then
+
+    # assemble the plugin path
+    plugin_dir="$j2se_base/jre/bin"
+
+    # netscape
+    update-alternatives \
+        --remove "netscape-javaplugin.so" "$plugin_dir/libjavaplugin_oji.so"
+
+    # mozilla
+    update-alternatives \
+        --remove "mozilla-javaplugin.so" "$plugin_dir/libjavaplugin_ojigtk2.so"
+
+    # firefox
+    update-alternatives \
+        --remove "firefox-javaplugin.so" "$plugin_dir/libjavaplugin_ojigtk2.so"
+
+fi
diff -Naur java-package-0.26.orig/lib/ibm-j2re.sh java-package-0.26/lib/ibm-j2re.sh
--- java-package-0.26.orig/lib/ibm-j2re.sh	2005-07-09 05:22:45.000000000 -0700
+++ java-package-0.26/lib/ibm-j2re.sh	2005-11-02 08:34:32.000000000 -0800
@@ -15,6 +15,11 @@
 	    j2se_expected_min_size=37 #  bytes
 	    found=true
 	    ;;
+        "ibm-java2-jre-50-linux-i386.tgz") # SUPPORTED
+            j2se_version=5.0
+            j2se_expected_min_size=40 # 40.7 Mbytes
+            found=true
+            ;;
       esac
       ;;
     amd64|x86_64-linux)
@@ -24,6 +29,11 @@
 	    j2se_expected_min_size=37
 	    found=true
 	    ;;
+        "ibm-java2-jre-50-linux-x86_64.tgz") # SUPPORTED
+            j2se_version=5.0
+            j2se_expected_min_size=42 # 42.7 Mbytes
+            found=true
+            ;;
       esac
       ;;
     s390|s390-linux)
@@ -48,6 +58,16 @@
 	    j2se_expected_min_size=34
 	    found=true
 	    ;;
+        "ibm-java2-jre-50-linux-s390.tgz") # SUPPORTED
+            j2se_version=5.0
+            j2se_expected_min_size=42 # 42.7 Mbytes
+            found=true
+            ;;
+        "ibm-java2-jre-50-linux-s390x.tgz") # SUPPORTED
+            j2se_version=5.0
+            j2se_expected_min_size=42 # 42.7 Mbytes
+            found=true
+            ;;
       esac
       ;;
     powerpc|powerpc-linux)
@@ -62,6 +82,11 @@
 	    j2se_expected_min_size=40 #  bytes
 	    found=true
 	    ;;
+        "ibm-java2-jre-50-linux-ppc.tgz") # SUPPORTED
+            j2se_version=5.0
+            j2se_expected_min_size=46 # 46.9 Mbytes
+            found=true
+            ;;
       esac
       ;;
     powerpc64|powerpc64-linux)
@@ -72,6 +97,7 @@
 	    found=true
 	    ;;
       esac
+      # Note: ibm-java2-jre-50-linux-ppc64 not available as of 20051002
       ;;
   esac
   if [[ -n "$found" ]]; then
diff -Naur java-package-0.26.orig/lib/ibm-j2sdk.sh java-package-0.26/lib/ibm-j2sdk.sh
--- java-package-0.26.orig/lib/ibm-j2sdk.sh	2005-08-29 14:37:56.000000000 -0700
+++ java-package-0.26/lib/ibm-j2sdk.sh	2005-11-02 08:31:06.000000000 -0800
@@ -15,6 +15,11 @@
 	    j2se_expected_min_size=49 # 56719533 bytes
 	    found=true
 	    ;;
+        "ibm-java2-sdk-50-linux-i386.tgz") # SUPPORTED
+	    j2se_version=5.0
+	    j2se_expected_min_size=50 # 58162719 bytes
+	    found=true
+	    ;;
       esac
       ;;
     amd64|x86_64-linux)
@@ -24,6 +29,11 @@
 	    j2se_expected_min_size=52
 	    found=true
 	    ;;
+        "ibm-java2-sdk-50-linux-x86_64.tgz") # SUPPORTED
+            j2se_version=5.0
+            j2se_expected_min_size=58 # 58.3 Mbytes
+            found=true
+            ;;
       esac
       ;;
     powerpc|powerpc-linux)
@@ -43,6 +53,11 @@
 	    j2se_expected_min_size=51 # 59313669 bytes
 	    found=true
 	    ;;
+        "ibm-java2-sdk-50-linux-ppc.tgz") # SUPPORTED
+            j2se_version=5.0
+            j2se_expected_min_size=64 # 64.2 Mbytes
+            found=true
+            ;;
       esac
       ;;
     powerpc64|powerpc64-linux)
@@ -52,6 +67,7 @@
 	    j2se_expected_min_size=55
 	    found=true
 	    ;;
+        # Note: ibm-java2-sdk-50-linux-ppc64 not available as of 20051002
       esac
       ;;
     s390|s390-linux)
@@ -76,6 +92,16 @@
 	    j2se_expected_min_size=20
 	    found=true
 	    ;;
+        "ibm-java2-sdk-50-linux-s390.tgz") # SUPPORTED
+            j2se_version=5.0
+            j2se_expected_min_size=58 # 58.3 Mbytes
+            found=true
+            ;;
+        "ibm-java2-sdk-50-linux-s390x.tgz") # SUPPORTED
+            j2se_version=5.0
+            j2se_expected_min_size=58 # 58.4 Mbytes
+            found=true
+            ;;
       esac
       ;;
   esac

------=_Part_9186_18179669.1130959557408--

---------------------------------------
Received: (at 337129-close) by bugs.debian.org; 9 Nov 2005 16:21:35 +0000
>From katie at spohr.debian.org Wed Nov 09 08:21:35 2005
Return-path: <katie at spohr.debian.org>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
	id 1EZsdF-00051Z-00; Wed, 09 Nov 2005 08:17:05 -0800
From: Barry Hawkins <barry at bytemason.org>
To: 337129-close at bugs.debian.org
X-Katie: $Revision: 1.56 $
Subject: Bug#337129: fixed in java-package 0.27
Message-Id: <E1EZsdF-00051Z-00 at spohr.debian.org>
Sender: Archive Administrator <katie at spohr.debian.org>
Date: Wed, 09 Nov 2005 08:17:05 -0800
Delivered-To: 337129-close at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: java-package
Source-Version: 0.27

We believe that the bug you reported is fixed in the latest version of
java-package, which is due to be installed in the Debian FTP archive:

java-package_0.27.dsc
  to pool/contrib/j/java-package/java-package_0.27.dsc
java-package_0.27.tar.gz
  to pool/contrib/j/java-package/java-package_0.27.tar.gz
java-package_0.27_all.deb
  to pool/contrib/j/java-package/java-package_0.27_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 337129 at bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Barry Hawkins <barry at bytemason.org> (supplier of updated java-package package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster at debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 08 Nov 2005 12:16:24 -0500
Source: java-package
Binary: java-package
Architecture: source all
Version: 0.27
Distribution: unstable
Urgency: low
Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
Changed-By: Barry Hawkins <barry at bytemason.org>
Description: 
 java-package - utility for building Java(TM) 2 related Debian packages
Closes: 301738 317492 337129
Changes: 
 java-package (0.27) unstable; urgency=low
 .
   * Added support for IBM Java2 5.0 JREs and JDKs (Closes: #337129)
   * Corrected missing alternatives links for all JREs and JDKs
     (Closes: #317492)
   * Added conditional wrapping around dh_compress to account for
     JRE/JDKs that do not ship manpages (Closes: 301738)
   * Removed java-common from Provides: for JRE and JDK packages.
Files: 
 87b5cc911589d30ad1cd3b6ea546175d 743 contrib/misc optional java-package_0.27.dsc
 ae08ba98304ea57c8c8b0b3c4d172376 20922 contrib/misc optional java-package_0.27.tar.gz
 b52619ae539be15f92aac0c15dfc55d3 22782 contrib/misc optional java-package_0.27_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDch9h4vzFZu62tMIRAiPLAKCh8vZx+3bNB6/tnGTJoUilH2RmSwCeO/J6
P8ecxmYONrQV3Pr7RoN4Nl0=
=Hga8
-----END PGP SIGNATURE-----




More information about the pkg-java-maintainers mailing list