Bug 2267450 - Xvfb subpackage missing util-linux package for the getopt command
Summary: Xvfb subpackage missing util-linux package for the getopt command
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11-server
Version: 39
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: José Expósito
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-03-02 16:39 UTC by John Goetz
Modified: 2024-03-04 15:03 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-03-04 14:53:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.