Repository navigation
fix: add login.defs to Build-Depends for cmake UID detection - #122
Merged
Merged
Conversation
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 告警
Reviewer's GuideConfigurationAdd login.defs to the build dependencies so CMake can detect UID limits during configuration.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review🤖 AI 代码审查报告📊 总体评价
🔍 详细分析1. 语法逻辑 ✅评价: 语法正确,逻辑清晰 ✅ 通过 潜在问题: 建议: [] 2. 代码质量 ✅评价: 代码结构清晰,注释完整 ✅ 通过 潜在问题: 建议: [] 3. 代码性能 ✅评价: 性能良好,资源使用合理 ✅ 通过 潜在问题: 建议: [] 4. 代码安全 🔒评价: 存在0个安全漏洞 ✅ 通过
安全漏洞详情: 建议: [] 💡 改进建议代码示例本报告由 AI 代码审查工具自动生成 |
Groveer
approved these changes
Nov 12, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Groveer, wineee The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Log: No user-facing changes
Influence:
fix: 在 Build-Depends 中添加 login.defs 以支持 cmake 的 UID 探测
Log: 无用户可见变化
Influence:
Summary by Sourcery
Bug Fixes: