Package: sablevm
Severity: normal

Hi,
I have gij installed.

I had installed sablevm, and set /etc/alternatives/java to sablevm (with
update-alternative --config) so, typing java launched /usr/bin/java-sablevm.
But after uninstalling, /etc/alternatives/java still pointed to
/usr/bin/java-sablevm: it had not been properly unregistered

In sablevm.postinst, there is

man=/usr/share/man/man1
    update-alternatives \
        --install /usr/bin/java java /usr/bin/java-sablevm 350 \
        --slave $man/java.1.gz java.1.gz $man/java-sablevm.1.gz


variable $man is set but not exported, and update-alternatives is not on the
same line (there is no slash after $man variable setting), so on next line, $man
references blank line. So, sablevm alternative is not properly registered

Unfortunately:
- there is no error message from update-alternatives
- with update-alternatives --config java, I can manually set
etc/alternatives/java pointing to sablevm, but then symlink for java manual is
not set
- Although I can use, update-alternatives --config, I cannot use
update-alternatives --remove, that's the reason why sablevm alternative is not
properly unset in prerm

It works fine either with:
    update-alternatives \
        --install /usr/bin/java java /usr/bin/java-sablevm 350 \
        --slave /usr/share/man/man1/java.1.gz java.1.gz 
/usr/share/man/man1/java-sablevm.1.gz

or

man=/usr/share/man/man1 \
    update-alternatives \
        --install /usr/bin/java java /usr/bin/java-sablevm 350 \
        --slave "$man/java.1.gz java.1.gz" "$man/java-sablevm.1.gz"

arno

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.21
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages sablevm depends on:
pn  java-common                   <none>     (no description available)
ii  libc6                         2.6-2      GNU C Library: Shared libraries
ii  libpopt0                      1.10-3     lib for parsing cmdline parameters
pn  libsablevm1                   <none>     (no description available)
ii  unzip                         5.52-10    De-archiver for .zip files

Versions of packages sablevm recommends:
pn  free-java-sdk                 <none>     (no description available)
pn  jikes                         <none>     (no description available)
pn  libgnujaxp-java               <none>     (no description available)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to