Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 718686 - x11-base/xorg-server should require USE="udev" if INPUT_DEVICES="libinput"
Summary: x11-base/xorg-server should require USE="udev" if INPUT_DEVICES="libinput"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-21 01:50 UTC by Walter Dnes
Modified: 2020-04-21 18:52 UTC (History)
1 user (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 Walter Dnes 2020-04-21 01:50:41 UTC
I like to keep my system as lean as possible. To that end I negate a lot of USE flags in make.conf and package.use. For many years I've been building and running xorg-server with USE="-udev". I do have =sys-fs/eudev-3.2.9 installed. 

=x11-base/xorg-server-1.20.7 builds quite happily with INPUT_DEVICES="libinput" and USE="-udev". The text console works fine. But after running startx, X comes up and keyboard and mouse are unresponsive; I can't even {CTRL}{ALT}{F1} to a text console. The system is not frozen. I can ssh in from another machine and kill xorg-server, returning to a functional text console. Building xorg-server with USE="udev" solves the problem.

The news article https://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg88809.html mentions in passing that "both evdev and libinput require udev ***DURING RUNTIME***". In my case, at least, eudev at runtime is not sufficient; xorg-server must be built with USE="udev". I know this may look like an edge case, but the ebuild should attempt to avoid building a non-functional xorg-server. Making USE="udev" mandatory appears to solve the problem.

Reproducible: Always

Steps to Reproduce:
1. "emerge =sys-fs/eudev-3.2.9" with 'USE="-udev"'and 'INPUT_DEVICES="libinput"
2. start up X (in my case with startx)

Actual Results:  
X come up but mouse and keyboard are totally unresponsive.
Comment 1 Larry the Git Cow gentoo-dev 2020-04-21 18:52:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=837557fc8d33959a33c0a8d7d38c14142b575e63

commit 837557fc8d33959a33c0a8d7d38c14142b575e63
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2020-04-21 18:47:24 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2020-04-21 18:52:11 +0000

    x11-base/xorg-drivers: Depend on udev support for libinput/evdev
    
    Closes: https://bugs.gentoo.org/718686
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 ...rg-drivers-1.20-r1.ebuild => xorg-drivers-1.20-r2.ebuild} | 12 ++++++++----
 x11-base/xorg-drivers/xorg-drivers-9999.ebuild               | 10 ++++++++--
 2 files changed, 16 insertions(+), 6 deletions(-)