Subject: plantuml in pure environment does not find X11

From: "Dr. Arne Babenhauserheide" <[email-masked]>
Date: Mon, 15 Feb 2021 13:52:42 +0100

Dear Guix hackers,

when installing plantuml in a pure environment, it throws an java.awt.AWTError: Can't connect to X11 window server using ':1' as the value of the DISPLAY variable.

To reproduce:

$ guix environment --ad-hoc --pure plantuml -- plantumlNo protocol specified
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':1' as the value of the DISPLAY variable.
	at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
	at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
	at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
	at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
	at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1181)
	at net.sourceforge.plantuml.FileFormat.<clinit>(FileFormat.java:93)
	at net.sourceforge.plantuml.Option.<init>(Option.java:97)
	at net.sourceforge.plantuml.Run.main(Run.java:93)

When I leave out --pure, it works, so I assume that a dependency on X11
might be missing.

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken