From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-4.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id BCEDB226BA; Wed, 18 May 2022 13:11:44 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id 6C343226AB; Wed, 18 May 2022 13:11:42 +0000 (UTC) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by atuin.qyliss.net (Postfix) with ESMTPS id 14BB52263D for ; Wed, 18 May 2022 13:11:40 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 4800C5C00D8; Wed, 18 May 2022 09:11:39 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 18 May 2022 09:11:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1652879499; x=1652965899; bh=OtNTxLjvmF QdSJK8qKM1LqsjQeFyuNp0cPZHEmRDcb0=; b=C18fCKAlTqgd+lEoEM/hCHl7u8 9MIfd1j6qXHXyrRMsb0OtTCIzQXJJOlNSl2xG47U+hlWrmquPxlIZf8eEmMx4qfc wx5WuzLMPv7M6Jxk5A87CiI8AwgVcc7xWj11pddLn0RIChcYu7RrW9Jw0+Kw0mk/ R30EHIOc0RX+J6LSOptLAtiTnHU6EZXgAn9mDRJV2ikFxLBIXMRiB2FiKfNIHmjC qFPNbxsggK31cRRb8za6qjcLJPVJGP6EuH4fclfM2vlpzIWSah8dtdTBHqXbNIMg CsRaRi0IW0UZftFKe6EEkMp2vLNeEgu9hMz+Zn1b3DwQgtaTSAlhrNJiAOEQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1652879499; x=1652965899; bh=OtNTxLjvmFQdSJK8qKM1LqsjQeFy uNp0cPZHEmRDcb0=; b=Hp/gT+nTKTv6VvT+nd9NoLIwlBTCeYted/Tu2t0PEa/6 OuXabWB+TEbAEMmX0Uu7L8OU2DFmQSkBnkZ5KXjywjMQJIfbJyu2zRmChFBGRht/ 6gy+ytRvjOjkQwoiK+4RMPTrLhHVo/l71CdnVTuHa6j2zMFOpEVl0j8ECssONWmu d2BoyRnbH6C8Q1Ru5CLX5tCJZ/1cbnMFfQVAK+eylP6AIP0b+A9ns83lFUnLmeUy a8gVPBLGYkVtwj26Y7kWXPEOHHnJrCouufdiJFULQxGgE+pY0EXZnieM/BfuZoM0 HJo5YNMzYrAemsUoA58nx7Qgi9sUPq7/G5IkyJBdQA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrheelgdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeetlhihshhs rgcutfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpedvge eifeffkeejhfdvhfdtffelteehjeelueehhfdvudeiueeugeeujefgtdetvdenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehqhihlihhsshesvg hvvgdrqhihlhhishhsrdhnvght X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 18 May 2022 09:11:38 -0400 (EDT) Received: by eve.qyliss.net (Postfix, from userid 1000) id DC75329E; Wed, 18 May 2022 13:11:37 +0000 (UTC) Date: Wed, 18 May 2022 13:11:37 +0000 From: Alyssa Ross To: Ville Ilvonen Subject: Re: Documentation and diagrams Message-ID: <20220518131137.sv7qvdy6cllwszu7@eve> References: <165276675569.2703.7962474952768136863@atuin.qyliss.net> <20220517122508.ioizqbm6rcpk3waw@eve> <1efedd1a-739f-4569-0d97-ff3233dc4416@ecomail.io> <20220518125353.cw4faxgab22r2jr5@eve> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hnqtxqzmevvqtyvu" Content-Disposition: inline In-Reply-To: <20220518125353.cw4faxgab22r2jr5@eve> Message-ID-Hash: 4AYMYJ6H4OXAUXOY556ZFCXPYE5U7FJ5 X-Message-ID-Hash: 4AYMYJ6H4OXAUXOY556ZFCXPYE5U7FJ5 X-MailFrom: qyliss@eve.qyliss.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-discuss.spectrum-os.org-0; header-match-discuss.spectrum-os.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Paco , discuss@spectrum-os.org X-Mailman-Version: 3.3.5 Precedence: list List-Id: General high-level discussion about Spectrum Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --hnqtxqzmevvqtyvu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 18, 2022 at 12:53:53PM +0000, Alyssa Ross wrote: > On Wed, May 18, 2022 at 03:44:45PM +0300, Ville Ilvonen wrote: > > On Tue, May 17, 2022 at 10:00 PM Paco wrote: > > > > > > Hi all, > > > > > > > One question about draw.io: is there a tool we could use in the build > > > > process of our documentation to render the .drawio files to SVG, so we > > > > don't have to check in the SVG files? > > > > > > drawio supports being called on the command-line like this: > > > > > > drawio in.drawio --export --output out.png # or svg > > > > Yes, and no. Yes, command line but no in a headless environment. > > It was easy to test this before "jekyll build" with "drawio in.drawio > > --export --output test.svg" > > > > However, > > > > [vilvo@blop:~/dev/spectrum/Documentation]$ nix-build -I > > nixpkgs=../../nixpkgs-spectrum > > ... > > error: builder for > > '/nix/store/r8xf2kpba673ngi2fck4xsyvyc6pd3j1-spectrum-docs.drv' failed > > with exit code 133; > > last 10 log lines: > > > at new ElectronStore > > (/nix/store/iqinmbk2jzl8nay42hqkbd32mbj1jzq7-drawio-18.0.6/share/drawio/resources/app.asar/node_modules/electron-store/index.js:48:32) > > > at Object. > > (/nix/store/iqinmbk2jzl8nay42hqkbd32mbj1jzq7-drawio-18.0.6/share/drawio/resources/app.asar/electron.js:15:15) > > > at Module._compile (node:internal/modules/cjs/loader:1116:14) > > > at Object.Module._extensions..js > > (node:internal/modules/cjs/loader:1169:10) > > > at Module.load (node:internal/modules/cjs/loader:988:32) > > > at Module._load (node:internal/modules/cjs/loader:829:12) > > > at Function.c._load (node:electron/js2c/asar_bundle:5:13343) > > > at Object. (node:electron/js2c/browser_init:185:3104) > > > at Object../lib/browser/init.ts > > (node:electron/js2c/browser_init:185:3308) > > > /build/.attr-0l2nkwhif96f51f4amnlf414lhl4rv9vh8iffyp431v6s28gsr90: > > line 1: 5 Trace/breakpoint trap (core dumped) drawio in.drawio > > --export --output test.svg > > > > Issue is the same with drawio versions: > > - version 15.7.3 from nixpkgs > > - version 17.4.2 from nixpkgs-spectrum > > - latest rpm available - 18.0.6 from updated nixpkgs-spectrum > > Does it maybe require an X server / Wayland compositor to talk to? That > would be a pain to do in the build but maybe not impossible. I know > there are programs for dummy compositors out there but don't know how > easy they are to use. Actually, this looking more closely at the stack trace, this is more likely to be it not having a writeable XDG_CONFIG_HOME or HOME directory. So you could try setting those to temporary directories in the build. Something like export XDG_CONFIG_HOME="$(mktemp -d)" --hnqtxqzmevvqtyvu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIyBAABCAAdFiEEH9wgcxqlHM/ARR3h+dvtSFmyccAFAmKE8HIACgkQ+dvtSFmy ccBPsA/0Dxj7bpvWynostCM0CcKp38bQ1NPAdbPKzrD8U/jiGLp3hqMReOG5rp5f pJh9LkkwO0a/k08m2fQYr+UaSkXeT92kDcFhmtRWBUXaVyNdrlI0IjKSK4UUCv9y lXkGpKVzkNfEyttJ9yV5tFcLChGxMag3JmyO8vtw+L41QhN9UFUppPgqagWkE0bg yMVsRXFy1WsEUKzgiw6qgQCxL/VG5i6UzzoPodirLt9h6HerJkZi/L3Ih2l52Pil 1ISAbwnBoUowuDC0v5EGmCi2i31IaVI9LMZ7Fh37VTrVnq+EbSifBix+FaRUc3Pl AutNnSmK+tZxR6oCPVmW39e6HzvdvqZ6wVl+UawL77IJ339NquMU6UAekUeR5gbt uP3fdlqwxihDhdvB8kkQZQcPmkPFX/+V2K82X6HLi5IT7G4ppL3ZILkRiktmcpLE azXsuwhdqNXj03KOJ56n0nFLLE3uQxkxIQ/6PxX5trbMXxlPTmTb4JF/NObjydKj 0KdfOEqj0gUoLNEftAcjuC31yTaP1HMxlKUJSPNB5S4eiieWprmEkeYMBlyHOnrI rMoaZoh4q0n5QfP3uA4jyFgHH3Vb456c6R15CXwpeHOSGWPo+vCcdOABNnrK9r1I xom14vmoEG0oMZTIIYcPOPXuiwbFlwqPq+xqQWWA7QXUGqSOMQ== =mpuZ -----END PGP SIGNATURE----- --hnqtxqzmevvqtyvu--