unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: "Dr. Arne Babenhauserheide" <arne_bab@web.de>, 46998@debbugs.gnu.org
Subject: bug#46998: wish: package xvfb-run
Date: Mon, 08 Mar 2021 21:57:35 +0100	[thread overview]
Message-ID: <2d0c2c60f9b60034d35bac18e581bfc1f79aa5cd.camel@telenet.be> (raw)
In-Reply-To: <87h7lmfon6.fsf@web.de>

[-- Attachment #1: Type: text/plain, Size: 2139 bytes --]

On Mon, 2021-03-08 at 01:57 +0100, Dr. Arne Babenhauserheide wrote:
> User-agent: mu4e 1.4.15; emacs 27.1
> (emacs:30177): dbind-WARNING **: 01:46:31.849: Could not open X display
> 
> http://deb.debian.org/debian/pool/main/x/xorg-server/xorg-server_1.20.10-3.diff.gz
> 
> +Usage: $PROGNAME [OPTION ...] COMMAND
> +Options:
> +DISPLAY=:$SERVERNUM XAUTHORITY=$AUTHFILE "$@"
> Dear Guix hackers,
> 
> One of my main tools for running graphical programs as part of my build
> pipelines is xvfb-run. Since it is not packaged in Guix, I’ve resorted
> to manual workarounds, but these have annoying drawbacks:
> 
> Xvfb :3 -screen 0 1024x768x16 & time DISPLAY=:3 HOME=/path/to/project/.emacs.d emacs …

build pipelines = (a) something for in guix package definitions, to be
run in the build container, or (b) as part of the Makefile or similar
for software, that you are compiling *outside* guix' build containter?

I'm assuming the latter as I read you're starting the editor "emacs".

> I now get errors about the maximum number of clients reached, because
> the Xvfb does not get reaped after the build:

If (a) is the case, and "after the build" here means "after guix build
PACKAGE" completes, then this seems a bug in how the guix daemon sets up it
build containers.

> Maximum number of clients reached
> Therefore I would ask whether it would be possible to package xvfb-run.
> It is provided as part of the patches of the xorg-package in Debian:

I'm no guix maintainer, but I don't see why not.  Myself I would prefer
this as a separate package "xvfb-run" that only has Debian's "xvfb-run"
script and its man page though.

In any case, the references to "stty", "awk", "cat", "xauth", "mktemp",
"xvfb", "touch", "rm", "fmt" would need to be replaced with the full
store path (using substitute* I presume).  The alternative would be
defining a wrapper script adjusting the $PATH, which doesn't seem ideal
for xvfb-run.

Are you planning to write a patch to guix yourself with (i) the adjusted
xorg-server, or (ii) a new xvfb-run package?

Greetings,
Maxime

> Best wishes,
> Arne

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

  reply	other threads:[~2021-03-08 20:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-08  0:57 bug#46998: wish: package xvfb-run Dr. Arne Babenhauserheide
2021-03-08 20:57 ` Maxime Devos [this message]
2021-03-08 21:40   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-03-09 14:26     ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2021-03-09 20:11       ` Dr. Arne Babenhauserheide

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2d0c2c60f9b60034d35bac18e581bfc1f79aa5cd.camel@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=46998@debbugs.gnu.org \
    --cc=arne_bab@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).