Bug#342557: gcj-4.0: Upgrading gcj makes javah disappear
Package: gcj-4.0
Version: 4.0.2-5j1
Severity: critical
Justification: breaks unrelated software
Hi,
I noticed several times that after upgrades /usr/bin/javah disappears.
I usually notice this when compilation of JNI code breaks. Now I
found out the problem being caused by the upgrade of gcj-4.0.
Before upgrade:
# ls -l /usr/bin/javah
lrwxrwxrwx 1 root root 23 2005-12-04 18:20 /usr/bin/javah -> /etc/alternatives/javah
# update-alternatives --display javah
javah - status is manual.
link currently points to /usr/lib/j2sdk1.5-sun/bin/javah
/usr/lib/j2sdk1.5-sun/bin/javah - priority 315
slave javah.1.gz: /usr/lib/j2sdk1.5-sun/man/man1/javah.1.gz
/usr/bin/javah-j2sdk1.4-ibm - priority 314
/etc/alternatives/kaffe-system/bin/javah - priority 300
slave javah.1.gz: /usr/share/man/man1/javah.kaffe.1.gz
/usr/bin/javah-cp - priority 350
slave javah.1.gz: /usr/share/man/man1/javah-cp.1.gz
Current `best' version is /usr/bin/javah-cp.
Upgrading:
# apt-get install libgcj6-dev
Reading package lists... Done
Building dependency tree... Done
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
gcj-4.0 gij-4.0
The following packages will be upgraded:
gcj-4.0 gij-4.0 libgcj6-dev
3 upgraded, 0 newly installed, 0 to remove and 89 not upgraded.
Need to get 0B/10.9MB of archives.
After unpacking 8192B disk space will be freed.
Do you want to continue [Y/n]?
Reading changelogs... Done
Reading changelogs... Done
Reading changelogs... Done
(Reading database ... 210196 files and directories currently installed.)
Preparing to replace libgcj6-dev 4.0.2-4 (using .../libgcj6-dev_4.0.2-5j1_amd64.deb) ...
Unpacking replacement libgcj6-dev ...
Preparing to replace gij-4.0 4.0.2-4 (using .../gij-4.0_4.0.2-5j1_amd64.deb) ...
Unpacking replacement gij-4.0 ...
Preparing to replace gcj-4.0 4.0.2-4 (using .../gcj-4.0_4.0.2-5j1_amd64.deb) ...
Unpacking replacement gcj-4.0 ...
Setting up gij-4.0 (4.0.2-5j1) ...
Setting up libgcj6-dev (4.0.2-5j1) ...
Setting up gcj-4.0 (4.0.2-5j1) ...
After upgrade:
# ls -l /usr/bin/javah
ls: /usr/bin/javah: No such file or directory
# update-alternatives --display javah
javah - status is manual.
link currently absent
/usr/lib/j2sdk1.5-sun/bin/javah - priority 315
slave javah.1.gz: /usr/lib/j2sdk1.5-sun/man/man1/javah.1.gz
/usr/bin/javah-j2sdk1.4-ibm - priority 314
/etc/alternatives/kaffe-system/bin/javah - priority 300
slave javah.1.gz: /usr/share/man/man1/javah.kaffe.1.gz
/usr/bin/javah-cp - priority 350
slave javah.1.gz: /usr/share/man/man1/javah-cp.1.gz
Current `best' version is /usr/bin/javah-cp.
Gabor
-- System Information:
Debian Release: testing/unstable
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14.3
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages gcj-4.0 depends on:
ii gcc-4.0 4.0.2-4 The GNU C compiler
ii gij-4.0 4.0.2-5j1 The GNU Java bytecode interpreter
ii ibm-j2sdk1.4 [java-common 1.4.2 Java(TM) 2 SDK, Standard Edition,
ii java-common 0.23 Base of all Java packages
ii libc6 2.3.5-8.1 GNU C Library: Shared libraries an
ii libgcc1 1:4.0.2-4 GCC support library
ii libgcj6-common 4.0.2-5j1 Java runtime library for use with
ii libgcj6-dev 4.0.2-5j1 Java development headers and stati
ii sun-j2sdk1.5 [java-common 1.5.0+update03 Java(TM) 2 SDK, Standard Edition,
ii zlib1g 1:1.2.3-8 compression library - runtime
Versions of packages gcj-4.0 recommends:
ii fastjar 1:4.0.2-5 Jar creation utility
-- no debconf information
Reply to: