From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kPXhFZeRK2DIDQAA0tVLHw (envelope-from ) for ; Tue, 16 Feb 2021 09:34:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4NSiEZeRK2DaDQAAB5/wlQ (envelope-from ) for ; Tue, 16 Feb 2021 09:34:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 728102FC4A for ; Tue, 16 Feb 2021 10:34:10 +0100 (CET) Received: from localhost ([::1]:57770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBwkD-0002cs-74 for larch@yhetil.org; Tue, 16 Feb 2021 04:34:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBwk6-0002bY-9s for bug-guix@gnu.org; Tue, 16 Feb 2021 04:34:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56074) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBwk6-0007Md-1t for bug-guix@gnu.org; Tue, 16 Feb 2021 04:34:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lBwk5-0007TI-TS for bug-guix@gnu.org; Tue, 16 Feb 2021 04:34:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46532: plantuml in pure environment does not find X11 Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 16 Feb 2021 09:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46532 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "Dr. Arne Babenhauserheide" Received: via spool by 46532-submit@debbugs.gnu.org id=B46532.161346798928655 (code B ref 46532); Tue, 16 Feb 2021 09:34:01 +0000 Received: (at 46532) by debbugs.gnu.org; 16 Feb 2021 09:33:09 +0000 Received: from localhost ([127.0.0.1]:39387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBwjE-0007S7-Rd for submit@debbugs.gnu.org; Tue, 16 Feb 2021 04:33:09 -0500 Received: from flashner.co.il ([178.62.234.194]:51322) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBwjC-0007Rg-S8 for 46532@debbugs.gnu.org; Tue, 16 Feb 2021 04:33:07 -0500 Received: from localhost (unknown [31.210.181.184]) by flashner.co.il (Postfix) with ESMTPSA id 486E7400C0; Tue, 16 Feb 2021 09:33:00 +0000 (UTC) Date: Tue, 16 Feb 2021 11:32:25 +0200 From: Efraim Flashner Message-ID: References: <87r1lh4hnp.fsf@web.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Mc2Fki54+ANCEM+E" Content-Disposition: inline In-Reply-To: <87r1lh4hnp.fsf@web.de> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 46532@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.46 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 728102FC4A X-Spam-Score: -2.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: Zq9UTm54Ace4 --Mc2Fki54+ANCEM+E Content-Type: multipart/mixed; boundary="Z2QunQklyjz5Rizu" Content-Disposition: inline --Z2QunQklyjz5Rizu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 15, 2021 at 01:52:42PM +0100, Dr. Arne Babenhauserheide wrote: > Dear Guix hackers, >=20 > when installing plantuml in a pure environment, it throws an java.awt.AWT= Error: Can't connect to X11 window server using ':1' as the value of the DI= SPLAY variable. >=20 > To reproduce: >=20 > $ guix environment --ad-hoc --pure plantuml -- plantumlNo protocol specif= ied > 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.(X11GraphicsEnvironment.java:7= 4) > 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(GraphicsEnvi= ronment.java:82) > at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1181) > at net.sourceforge.plantuml.FileFormat.(FileFormat.java:93) > at net.sourceforge.plantuml.Option.(Option.java:97) > at net.sourceforge.plantuml.Run.main(Run.java:93) >=20 > When I leave out --pure, it works, so I assume that a dependency on X11 > might be missing. >=20 I have the following scriptlet that someone shared for running eolie in a container. I'm guessing it could be modified to run platuml if needed. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --Z2QunQklyjz5Rizu Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename=guix-container guix environment \ --preserve='^DISPLAY$' --container --network \ --expose=/etc/machine-id \ --expose=/etc/ssl/certs/ \ --share=$HOME/.local/share/eolie/=$HOME/.local/share/eolie/ \ --share=/tmp/.X11-unix/=/tmp/.X11-unix/ \ --share=$HOME/.Xauthority=$HOME/.Xauthority \ --ad-hoc eolie nss-certs dbus -- eolie --Z2QunQklyjz5Rizu-- --Mc2Fki54+ANCEM+E Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmArkSkACgkQQarn3Mo9 g1EAKhAAsQLd3I+Pn9SPEO4d1nvYSA/e08rgXbi0jvG7kJQof8/s5X2OXxY2e7+w OKG78wbm8WAnRqRi34MwlcfqhR0mUMLHzjzASqK6sXFy1PK15fkh3tSsaA41C6zC YkvD8So/wGwncv9uswgFLT4YFOGCZSCkneBvO0W+psAiUEcZ8Vr8So7FYVwCQuNx cLF0opCQnNWjdzbbE43YosK9rCmZOUD5nVUlmJL4EpBTbEUkzs+j8rAvWqv2u/J4 kf+xMJ3bQBrzrmKR6DTRi+3Oc73lGiVHPLXqKUnzxtIWW2dzfJ6fcLZDguEzdFva 1BI8VaZPgEWPSuI8bBGcwoGyEtOT2rFSAJvGewYOB+CLjQkCTSkZb9bjpYeuRTLr Jxy6rbre007nBiJTpzZyvCPnYkz+snHNv1ET8xhVORSV+EBoNTGh0CgW/wh9rAWp O9bHtYvIvgGrONET5r1O99rzykp125dZMFxbaF9yaHSLr/zgFnV2oQozWkyIL7St ZmhrE67v57GgWAN8xH4bfRNS1xUPamBkCpdp5Vljqmq9+PtyDg7KjRtKIEnIP1a6 8ChimVBnWFmf0w2gspkfdavyuew+S5CqPu6pNzLCld2RiKzOjkvzahK8SjhMwWVY /SU8eg4O1iHG/dvTDcox6g3oqVr8HuCrSLsITvKf0WHcpEDYSv4= =3zSt -----END PGP SIGNATURE----- --Mc2Fki54+ANCEM+E--