Bug#401461: /usr/bin/xbsh Depends: libgcj7-awt

Justin B Rye jbr at edlug.org.uk
Sun Dec 3 19:59:38 CET 2006


Package: bsh
Version: 2.0b4-4
Severity: normal

openoffice.org-writer      Recommends: openoffice.org-java-common
openoffice.org-java-common Depends:    bsh

So anybody installing the writer on its own will end up with a
desktop menu-entry invoking /usr/bin/xbsh.  But the GTK libraries it
requires have not been installed - running it just outputs to my
~/.xsession-errors file:

 Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
    at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
    at java.awt.Font.tk(libgcj.so.70)
    at java.awt.Font.getPeerFromToolkit(libgcj.so.70)
    at java.awt.Font.<init>(libgcj.so.70)
    at bsh.util.AWTConsole.<init>(Unknown Source)
    at bsh.util.AWTConsole.<init>(Unknown Source)
    at bsh.util.AWTConsole.main(Unknown Source)
    at bsh.Console.main(Unknown Source)
 Caused by: java.lang.UnsatisfiedLinkError: libgtkpeer: libgtkpeer.so: cannot open shared object file: No such file or directory
    at java.lang.Runtime._load(libgcj.so.70)
    at java.lang.Runtime.loadLibrary(libgcj.so.70)
    at java.lang.System.loadLibrary(libgcj.so.70)
    at gnu.java.awt.peer.gtk.GtkToolkit.<clinit>(libgcj.so.70)
    at java.lang.Class.initializeClass(libgcj.so.70)
    at java.lang.Class.forName(libgcj.so.70)
    at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
    ...7 more

Now, the OOO metapackage at least nods in the right direction:

openoffice.org             Suggests:   openoffice.org-officebean
openoffice.org-officebean  Depends:    libgcj7-awt

...but you can't rely on any of these extended-family relationships;
Debian users are entitled to expect that when they run

 sudo aptitude --with-recommends install bsh

it'll pull in all the libraries its binaries require.

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i586)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18.hurakan
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages bsh depends on:
ii  gij [java2-runtime]           4:4.1.1-13 The GNU Java bytecode interpreter
ii  gij-4.1 [java1-runtime]       4.1.1-17   The GNU Java bytecode interpreter
ii  libjline-java                 0.9.5-2    Java library for handling console 

Versions of packages bsh recommends:
pn  xlibs                         <none>     (no description available)

-- no debconf information
-- 
JBR
Ankh kak! (Ancient Egyptian blessing)





More information about the pkg-java-maintainers mailing list