Control: severity -1 important

Hi Andrej,

Thanks for the quick response.

Andrej Shadura schreef op 08.03.2023 10:44:
Hi,

On Wed, 8 Mar 2023, at 10:36, Victor Westerhuis wrote:
Package: plantuml
Version: 1:1.2020.2+ds-2
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: vic...@westerhu.is

Hi maintainer,

Plantuml immediately crashes on startup with the following stacktrace:

The requested library, /usr/lib/jvm/java-17-openjdk-amd64/lib/libawt_xawt.so, is found in openjdk-17-jre, which is not a dependency of default-jre-headless. It is, however, a dependency of default-jre. Manually installing default-jre
does indeed solve the error.

Thanks for the bug report. Does this happen always, or with some
specific command-line options? I was told before that plantuml is
known to work headless as well, although I hadn’t tested it myself.

The issue is in https://salsa.debian.org/debian/plantuml/-/blob/master/debian/plantuml.sh#L29-32: if the DISPLAY environment variable is unset the headless AWT backend is requested, which is correct. However, the opposite is not necessarily true: if DISPLAY is set, default-jre is not necessarily installed.

I have downgraded the severity, because explicitly unsetting DISPLAY before calling /usr/bin/plantuml fixes the crash.

--
Groet, Regards,

Victor Westerhuis

Reply via email to