Discussion:
Bug#987570: openjdk-11-jre-headless: libawt_xawt.so still listed as part of this package instead of openjdk-11-jre
(too old to reply)
Matthias Klose
2021-04-26 09:40:02 UTC
Permalink
Control: clone -1 -2
Control: reassign -2 src:davmail
Package: openjdk-11-jre-headless
Severity: important
After installing the latest security updates, davmail stopped working.
I looked into it and found out, that it required the file '/usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so' which was now missing even tho it's supposed to be installed as part of the openjdk-11-jre-headless package, which is installed as one of davmail's dependencies.
I asked for help in the #debian IRC channel, and we came to the conclusion that the file has been moved to the openjdk-11-jre package.
The package content list do not reflect those changes yet. Please adjust the list of the package contents for openjdk-11-jre-headless and openjdk-11-jre in Buster to avoid further confusion.
PS: It may also be a good idea to change the dependency from davmail from openjdk-11-jre-headless to openjdk-11-jre as well or add it as a recommended or at least suggested package.
Right, I'm curious which component needs libawt_xawt.so. The package already
lists libswt-gtk2-4-jni, libswt-cairo-gtk-4-jni, libopenjfx-java as suggestions,
so maybe these should be upgraded to recommendations as well? Or is it possible
to split out the UI components into a separate package?
Alexandre Rossi
2021-05-01 15:00:02 UTC
Permalink
severity 987601 normal
thanks

Hi,

Lowering severity as working around is trivial by installing openjdk-11-jre .
After installing the latest security updates, davmail stopped working.
I looked into it and found out, that it required the file '/usr/lib/jvm/java-1
1-openjdk-amd64/lib/libawt_xawt.so' which was now missing even tho it's supposed
to be installed as part of the openjdk-11-jre-headless package, which is instal
led as one of davmail's dependencies.
Indeed:
$ davmail
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load
library: /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so
[...]
$ sudo apt instal openjdk-11-jre
[...]
$ davmail
^C$
Right, I'm curious which component needs libawt_xawt.so. The package already
lists libswt-gtk2-4-jni, libswt-cairo-gtk-4-jni, libopenjfx-java as suggestions,
so maybe these should be upgraded to recommendations as well? Or is it possible
to split out the UI components into a separate package?
java.awt.* is used all over the source.

My current policy was to Suggest: deps required by the ui components.
This enables server users to skip those. I think I'll add default-jre
as a Suggest: for the mean time and look into splitting the jar
between server and ui classes. But I'll need upstream involvement for
this task.

Thanks for reporting,

Alex
Matthias Klose
2021-07-07 08:30:01 UTC
Permalink
Control: severity -1 serious
Post by Alexandre Rossi
Lowering severity as working around is trivial by installing openjdk-11-jre
this is not how to work-around it. Severity of an issue is not related to how
trivial the fix is.

Loading...