From 26b6913f34276ff7c13b61d2e53a1fadc6937d73 Mon Sep 17 00:00:00 2001 From: rewine Date: Thu, 12 Nov 2026 16:18:10 +0800 Subject: [PATCH] fix: add login.defs to Build-Depends for cmake UID detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. CMake fails with "Could not find login.defs at /etc/login.defs" because the build chroot lacks the login.defs package 2. Add login.defs to Build-Depends so the file is present during build Log: No user-facing changes Influence: 1. Run sbuild/dpkg-buildpackage and confirm CMake configure passes 2. Verify UID_MIN/UID_MAX are autodetected from /etc/login.defs 3. Confirm no lintian warning about login.defs in Build-Depends fix: 在 Build-Depends 中添加 login.defs 以支持 cmake 的 UID 探测 1. 构建 chroot 缺少 login.defs 包,导致 CMake 报错 "Could not find login.defs at /etc/login.defs" 2. 在 Build-Depends 中添加 login.defs,确保构建时该文件存在 Log: 无用户可见变化 Influence: 1. 执行 sbuild/dpkg-buildpackage,确认 CMake 配置阶段通过 2. 验证 UID_MIN/UID_MAX 能从 /etc/login.defs 自动探测 3. 确认 login.defs 出现在 Build-Depends 不会引发 lintian 告警 --- debian/control | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/control b/debian/control index 118d855..04b6147 100644 --- a/debian/control +++ b/debian/control @@ -8,6 +8,7 @@ Build-Depends: debhelper-compat (= 13), libsystemd-dev [linux-any], libwayland-dev, libxau-dev, + login.defs, pkg-config, qt6-base-dev (>= 6.6.1~), systemd [linux-any],