fix(desktop): build seatd server for the systemd unit

This commit is contained in:
Phoebus 2026-09-27 12:28:14 -07:00
parent 24b11ebb98
commit add7dfc873

View file

@ -1029,6 +1029,14 @@ pub fn package_use(config: &InstallConfig, hardware: &HardwareReport) -> String
// a seat on physical hardware, VMs, and under the greeter alike. // a seat on physical hardware, VMs, and under the greeter alike.
o.push_str("# Seat management (logind + seatd fallback)\n"); o.push_str("# Seat management (logind + seatd fallback)\n");
o.push_str("gui-libs/libseat systemd builtin server\n"); o.push_str("gui-libs/libseat systemd builtin server\n");
// seatd itself must build the server (daemon + systemd unit + `seat`
// group): without `server` USE the package ships only the client
// library and `systemctl enable seatd` fails with "Unit
// seatd.service does not exist" (proven by VM install run 11).
// `systemd` selects the logind backend; `builtin` keeps the
// compiled fallback. elogind stays off (REQUIRED_USE allows at most
// one of elogind/systemd).
o.push_str("sys-auth/seatd server systemd builtin\n");
o.push_str("# Workstation defaults (Wayland-first, local printing, PipeWire audio)\n"); o.push_str("# Workstation defaults (Wayland-first, local printing, PipeWire audio)\n");
o.push_str("media-sound/cava pipewire\n"); o.push_str("media-sound/cava pipewire\n");
o.push_str("net-p2p/transmission gtk\n"); o.push_str("net-p2p/transmission gtk\n");
@ -2457,6 +2465,8 @@ mod tests {
assert!(text.contains("media-video/pipewire sound-server systemd")); assert!(text.contains("media-video/pipewire sound-server systemd"));
// Seat management: libseat speaks seatd, logind and builtin. // Seat management: libseat speaks seatd, logind and builtin.
assert!(text.contains("gui-libs/libseat systemd builtin server")); assert!(text.contains("gui-libs/libseat systemd builtin server"));
// seatd ships its daemon + unit only with the server flag.
assert!(text.contains("sys-auth/seatd server systemd builtin"));
// Headless has no seat stack. // Headless has no seat stack.
let mut headless = InstallConfig::default(); let mut headless = InstallConfig::default();
headless.desktop.profile = DesktopProfile::None; headless.desktop.profile = DesktopProfile::None;