FS#65039 - [xorg-server-xvfb] xvfb-run does not accept --auto-display

Attached to Project: Arch Linux
Opened by Chih-Hsuan Yen (yan12125) - Saturday, 04 January 2020, 04:01 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 04 January 2020, 10:15 GMT
Task Type Support Request
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

xvfb-run says it accepts -d or --auto-display to find a display number automatically:

$ xvfb-run -h | grep -A 1 'auto-display '
-d --auto-display use the X server to find a display number
automatically

But only -d is actually accepted:

$ xvfb-run -d /bin/true
$ xvfb-run --auto-display /bin/true
xvfb-run: unrecognized option '--auto-display'

Additional info:
extra/xorg-server-xvfb 1.20.6-2

The fix is quite simple:

--- /usr/bin/xvfb-run.orig 2020-01-04 11:51:20.716023413 +0800
+++ /usr/bin/xvfb-run 2020-01-04 11:59:02.252686628 +0800
@@ -101,7 +101,7 @@

# Parse the command line.
ARGS=$(getopt --options +ade:f:hn:lp:s:w: \
- --long auto-servernum,error-file:auth-file:,help,server-num:,listen-tcp,xauth-protocol:,server-args:,wait: \
+ --long auto-servernum,auto-display,error-file:auth-file:,help,server-num:,listen-tcp,xauth-protocol:,server-args:,wait: \
--name "$PROGNAME" -- "$@")
GETOPT_STATUS=$?

Seems /usr/bin/xvfb-run is from https://git.archlinux.org/svntogit/packages.git/tree/trunk/xvfb-run?h=packages/xorg-server, and the latter is from https://src.fedoraproject.org/rpms/xorg-x11-server/blob/master/f/xvfb-run.sh. I'm just too lazy to report it to Fedora devs :P

Steps to reproduce:
See above
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Saturday, 04 January 2020, 10:15 GMT
Reason for closing:  Fixed

Loading...