A generic greeter daemon
0

Configure Feed

Select the types of activity you want to include in your feed.

Upgrade nix to 0.28

Fixes compilation on musl s390x

authored by

Sertonix and committed by
Kenny Levinsen
(Jan 13, 2026, 10:40 AM +0100) 26bf71eb 43832c2a

+17 -7
+10 -3
Cargo.lock
··· 1 1 # This file is automatically @generated by Cargo. 2 2 # It is not intended for manual editing. 3 - version = 3 3 + version = 4 4 4 5 5 [[package]] 6 6 name = "addr2line" ··· 78 78 version = "1.0.0" 79 79 source = "registry+https://github.com/rust-lang/crates.io-index" 80 80 checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 81 + 82 + [[package]] 83 + name = "cfg_aliases" 84 + version = "0.1.1" 85 + source = "registry+https://github.com/rust-lang/crates.io-index" 86 + checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" 81 87 82 88 [[package]] 83 89 name = "enquote" ··· 186 192 187 193 [[package]] 188 194 name = "nix" 189 - version = "0.27.1" 195 + version = "0.28.0" 190 196 source = "registry+https://github.com/rust-lang/crates.io-index" 191 - checksum = "2eb04e9c688eff1c89d72b407f168cf79bb9e867a9d3323ed6c01519eb9cc053" 197 + checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4" 192 198 dependencies = [ 193 199 "bitflags", 194 200 "cfg-if", 201 + "cfg_aliases", 195 202 "libc", 196 203 ] 197 204
+1 -1
agreety/Cargo.toml
··· 13 13 rpassword = "5.0" 14 14 getopts = "0.2" 15 15 enquote = "1.1" 16 - nix = "0.27" 16 + nix = "0.28"
+1 -1
greetd/Cargo.toml
··· 11 11 debug = [] 12 12 13 13 [dependencies] 14 - nix = { version = "0.27", features = ["ioctl", "signal", "user", "fs", "mman"] } 14 + nix = { version = "0.28", features = ["ioctl", "signal", "user", "fs", "mman"] } 15 15 pam-sys = "0.5.6" 16 16 serde = { version = "1.0", features = ["derive"] } 17 17 serde_json = "1.0"
+5 -2
greetd/src/terminal/mod.rs
··· 6 6 sys::stat::Mode, 7 7 unistd::{close, dup2, write}, 8 8 }; 9 - use std::{ffi::CStr, os::unix::io::RawFd}; 9 + use std::{ 10 + ffi::CStr, 11 + os::unix::io::{BorrowedFd, RawFd}, 12 + }; 10 13 11 14 #[allow(dead_code)] 12 15 pub enum KdMode { ··· 214 217 /// Clear this terminal by sending the appropciate escape codes to it. Only 215 218 /// affects text mode. 216 219 pub fn term_clear(&self) -> Result<(), Error> { 217 - let res = write(self.fd, b"\x1B[H\x1B[2J"); 220 + let res = write(unsafe { BorrowedFd::borrow_raw(self.fd) }, b"\x1B[H\x1B[2J"); 218 221 if let Err(v) = res { 219 222 Err(format!("terminal: unable to clear: {v}").into()) 220 223 } else {