Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 784119 - sys-apps/dbus[-X]: running tests should not require a X server on headless/wayland systems
Summary: sys-apps/dbus[-X]: running tests should not require a X server on headless/wa...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-19 11:32 UTC by Adrian Ratiu
Modified: 2021-10-14 11:47 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Ratiu 2021-04-19 11:32:36 UTC
While dbus itself can be configured and built without X11 for eg. like it happens when running a plain `emerge sys-apps/dbus` (configure step output `Building X11 code: no`), I am not sure if it's possible to run the dbus tests without X11 as apparently it's a hard dependency. Is it possible?

Reproducible: Always

Steps to Reproduce:
Run FEATURES=test emerge sys-apps/dbus
on a system with X11 disabled.
Actual Results:  
Various failures depending how the system is configured like:

The following USE changes are necessary to proceed:
# required by x11-base/xorg-server-1.20.10-r2::gentoo
# required by x11-drivers/xf86-input-libinput-0.30.0::gentoo
# required by x11-base/xorg-drivers-1.20-r2::gentoo[input_devices_libinput]
>=media-libs/libglvnd-1.3.2-r2 X

Expected Results:  
FEATURES=test should work without requiring X11?
Comment 1 Mike Gilbert gentoo-dev 2021-04-19 15:36:00 UTC
It's certainly worth a try.

We would probably need to set VIRTUALX_REQUIRED=manual and declare a custom dependency.

> BDEPEND="test? ( X? ( ${VIRTUALX_DEPEND} ) )"

We would also need to make the virtx call in src_test conditional on the X USE flag.