| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Reviewer's guide (collapsed on small PRs)
Reviewer's GuideRemoves the unnecessary fonts-noto-cjk runtime dependency from the dde-api package in debian/control, keeping only the dependencies actually required at runtime. File-Level Changes
Tips and commands Interacting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Sorry, something went wrong.
deepin pr auto review★ 总体评分:100分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 --- a/debian/control
+++ b/debian/control
@@ -48,7 +48,6 @@ Depends:
blur-effect,
coreutils(>=8.30),
fontconfig,
- fonts-noto-cjk,
libcanberra-pulse,
locales,
rfkill, |
Sorry, something went wrong.
|
TAG Bot New tag: 6.0.47 |
Sorry, something went wrong.
- The dependency was introduced in 2018 along with adjust-grub-theme, whose GRUB themes then used "Noto Sans CJK SC" for menu text, resolved via fc-match and rendered with grub-mkfont - Since the V25 theme migration, the active deepin/deepin-fallback themes use Unifont only and ship a pre-generated unifont-regular-16.pf2, so no runtime font generation is needed anymore - The Noto-based v20 theme path (adjustThemeNormalV20) is dead code now, and the font-generation code (findFont/genPF2Font) has already been eliminated by the linker in released binaries - No other dde-api binary renders text, and language_support installs fonts-noto-cjk on demand via pkg_depends when adding ja/ko/zh locales --- chore(debian): 移除不再需要的 fonts-noto-cjk 运行时依赖 - 该依赖于 2018 年随 adjust-grub-theme 一并引入,当时 GRUB 主题的菜单文字 使用 "Noto Sans CJK SC" 字体,需通过 fc-match 查找字体文件并用 grub-mkfont 生成 pf2 字体 - V25 主题迁移后,当前生效的 deepin/deepin-fallback 主题仅使用 Unifont 字体,且自带预生成的 unifont-regular-16.pf2,运行时不再需要生成字体 - 基于 Noto 字体的 v20 主题路径(adjustThemeNormalV20)已成为死代码,字体 生成相关代码(findFont/genPF2Font)在已发布的二进制中已被链接器消除 - 其余二进制均不进行文本渲染;language_support 在添加 ja/ko/zh 语言时会 通过 pkg_depends 按需安装 fonts-noto-cjk Log: 移除 dde-api 不再需要的 fonts-noto-cjk 运行时依赖 Influence: 打包依赖,不影响运行时功能 PMS: TASK-394379
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Ivy233, mhduiy The full list of commands accepted by this bot can be found here. Details Needs approval from an approver in each of these files:Approvers can indicate their approval by writing /approve in a comment |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Remove fonts-noto-cjk from the dde-api runtime Depends in debian/control. It is a historical leftover: no code path in current dde-api uses Noto CJK fonts anymore, so the hard dependency is unnecessary.
原因分析 / Why it is no longer needed
1. 依赖的来源(2018)
fonts-noto-cjk 是 2018 年随 adjust-grub-theme 引入的(commit 69b1ee7,同批还加入了 fonts-noto-mono)。当时 GRUB 主题的菜单/标签字体是 Noto Sans CJK SC,需要运行时通过 fc-match 查找字体文件、再用 grub-mkfont 生成 pf2 字体,因此需要硬依赖该字体包。
2. 后续演进
3. 当前代码状态
验证 / Verification
已在 deepin V25.2.1(dde-api 6.0.45.0)实机确认:
风险评估 / Risk assessment
Related
PMS: TASK-394379
Summary by Sourcery
Enhancements: