Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917051 - sys-apps/kmscon lacks OpenRC support and does not install man page
Summary: sys-apps/kmscon lacks OpenRC support and does not install man page
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ben Kohler
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-08 21:53 UTC by Thomas Capricelli
Modified: 2024-06-21 19:53 UTC (History)
3 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 Thomas Capricelli 2023-11-08 21:53:00 UTC
i have -systemd and installed kmscon:
% emerge sys-apps/kmscon

[ebuild  N    ] sys-apps/kmscon-9.0.0  USE="drm fbdev gles2 pango -debug -doc -pixman -systemd -test" 
[ebuild  N    ]  dev-libs/libtsm-4.0.2 

I expected some rc files, but not systemd, and I have:

% equery  files kmscon
 * Searching for kmscon ...
 * Contents of sys-apps/kmscon-9.0.0:
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system/kmscon.service
/lib/systemd/system/kmsconvt@.service
/usr
(...)


Is that normal... ?
I dont know how kmscon is supposed to be integrated (replacing agetty in inittab?) but those systemd files sure feel weird.

Reproducible: Always
Comment 1 Thomas Capricelli 2023-11-08 21:55:22 UTC
Also, the tarball contains a man page that is not installed.

This is especially worrying, as the (github) homepage first line is about "all doc is in the manpage".

Unfortunately, this is some kind of xml, so you can't read it throught github files browser.
Comment 2 Mike Gilbert gentoo-dev 2023-11-09 16:36:36 UTC
It looks like the "systemd" USE flag really controls the "multi-seat" feature, which requires libsystemd to function.

I assume kmscon is usable with systemd even with the "systemd" USE flag disabled.
Comment 3 Mike Gilbert gentoo-dev 2023-11-09 16:55:16 UTC
Regarding the man page: this is currently hidden behind the "doc" USE flag, which pulls in dev-util/gtk-doc.

Based on reading meson.build, I don't think gtk-doc is necessary. It looks like it just needs dev-libs/libxslt and app-text/docbook-xsl-stylesheets.
Comment 4 Ben Kohler gentoo-dev 2023-11-09 17:13:40 UTC
I don't know how integration with openrc is supposed to look, but it should launch successfully from an openrc system if you just launch it from an existing shell on tty1.

I can modify the ebuild to install man page unconditionally, I think this doc flag has been here since before I took over this package.
Comment 5 Thomas Capricelli 2023-11-09 23:18:48 UTC
(In reply to Ben Kohler from comment #4)
> I don't know how integration with openrc is supposed to look, but it should
> launch successfully from an openrc system if you just launch it from an

I'm not sure I'm supposed to do that, but that kinda seems to work by replacing agetty entries in /etc/inittab by lines like:

#c2:2345:respawn:/usr/bin/kmscon --vt /dev/tty2 --seats=seat0 --no-switchvt
#c3:2345:respawn:/usr/bin/kmscon --vt /dev/tty3 --seats=seat0 --no-switchvt
#c4:2345:respawn:/usr/bin/kmscon --vt /dev/tty4 --seats=seat0 --no-switchvt
c5:2345:respawn:/usr/bin/kmscon --vt /dev/tty5 --seats=seat0 --no-switchvt
c6:2345:respawn:/usr/bin/kmscon --vt /dev/tty6 --seats=seat0 --no-switchvt

I'm not sure if --seats is required, or if it' ok this way. I tried to find some documentation, but it's tricky. There's, for sure, no gentoo doc about it.