Bug 2267450

Summary: Xvfb subpackage missing util-linux package for the getopt command
Product: [Fedora] Fedora Reporter: John Goetz <theodore.goetz>
Component: xorg-x11-serverAssignee: José Expósito <jexposit>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 39CC: ajax, bskeggs, jexposit, ofourdan, rhughes, rstrode, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-03-04 14:53:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Goetz 2024-03-02 16:39:39 UTC
The xvfb-run script installed with the xorg-x11-server-Xvfb package uses the getopt command which is part of the util-linux package. However the util-linux is not installed when xorg-x11-server-Xvfb is installed.

Reproducible: Always

Steps to Reproduce:
podman pull docker.io/fedora/fedora:latest
podman run --rm -it docker.io/fedora/fedora:latest

  then inside container:

dnf install -y xorg-x11-server-Xvfb
xvfb-run echo 'hello'

Actual Results:  
The command

  xvfb-run echo 'hello'

errors with the following output:

/usr/bin/xvfb-run: line 105: getopt: command not found

Expected Results:  
The command

  xvfb-run echo 'hello'

should output with:

hello

Easy workaround: install the util-linux package. However, this might not be common knowledge.

Comment 1 José Expósito 2024-03-04 14:53:34 UTC
Thanks a lot for reporting this issue. It is fixed in https://src.fedoraproject.org/rpms/xorg-x11-server/c/43f6ceeda4e140feff387cb509965a6c32658485?branch=rawhide and the fix should be available on Fedora Rawhide soon.