-
Notifications
You must be signed in to change notification settings - Fork 42
refactor: unify dtk5 and dtk6 version handling #559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Removed version mapping logic for DTK5 and DTK6 as part of unified build transformation. The changes include: 1. Removed DTK5_VERSION, DTK6_VERSION, and DTK5_MAJOR_MINOR variable definitions 2. Removed VERSION, PACK_VER, and BUILD_VER variable definitions 3. Removed -DBUILD_VERSION and -DDTK_VERSION CMake arguments from both DTK5 and DTK6 build configurations 4. Removed override_dh_makeshlibs target that used version-specific dependency specifications This refactoring is necessary because dtk5 and dtk6 now share the same version numbers, eliminating the need for separate version mapping logic. The unified build approach simplifies the build system and reduces maintenance complexity. Influence: 1. Verify that both DTK5 and DTK6 packages build successfully without version mapping 2. Test that the resulting packages have correct version numbers 3. Check that shared library dependencies are properly handled without version-specific overrides 4. Validate that Build-Profiles (nodtk5, nodtk6, nodoc) still work correctly 5. Test package installation and runtime functionality refactor: 统一dtk5和dtk6版本处理逻辑 作为统一构建改造的一部分,移除了DTK5和DTK6的版本映射逻辑。具体变更包括: 1. 移除了DTK5_VERSION、DTK6_VERSION和DTK5_MAJOR_MINOR变量定义 2. 移除了VERSION、PACK_VER和BUILD_VER变量定义 3. 从DTK5和DTK6构建配置中移除了-DBUILD_VERSION和-DDTK_VERSION CMake参数 4. 移除了使用版本特定依赖规范的override_dh_makeshlibs目标 此次重构是必要的,因为dtk5和dtk6现在使用相同的版本号,不再需要单独的版本 映射逻辑。统一构建方法简化了构建系统并降低了维护复杂度。 Influence: 1. 验证DTK5和DTK6包在没有版本映射的情况下能否成功构建 2. 测试生成的包是否具有正确的版本号 3. 检查共享库依赖关系在没有版本特定覆盖的情况下是否正确处理 4. 验证Build-Profiles(nodtk5、nodtk6、nodoc)是否仍能正常工作 5. 测试软件包安装和运行时功能
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRefactors the Debian packaging rules to remove DTK5/DTK6-specific version mapping and related build-time variables/overrides, relying instead on unified versioning and default dependency handling for both build variants. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey - I've left some high level feedback:
- Since VERSION/PACK_VER/BUILD_VER and DTK*_VERSION variables are removed, please double-check that no other debian/* files (e.g., .install, .links, .symbols, .substvars) or external scripts still reference them or rely on their previous format.
- With -DBUILD_VERSION and -DDTK_VERSION dropped from the CMake invocation, consider whether any C++/CMake code paths that previously depended on these defines now need an alternative mechanism (e.g., using project() version or generated header) to keep embedded version information consistent.
- By removing override_dh_makeshlibs, ensure that any versioned shlibs or symbol policy that was encoded there is now handled either by default debhelper behavior or explicit shlibs/symbols files, to avoid unintentionally relaxing dependency bounds between DTK5/DTK6 libraries.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Since VERSION/PACK_VER/BUILD_VER and DTK*_VERSION variables are removed, please double-check that no other debian/* files (e.g., .install, .links, .symbols, .substvars) or external scripts still reference them or rely on their previous format.
- With -DBUILD_VERSION and -DDTK_VERSION dropped from the CMake invocation, consider whether any C++/CMake code paths that previously depended on these defines now need an alternative mechanism (e.g., using project() version or generated header) to keep embedded version information consistent.
- By removing override_dh_makeshlibs, ensure that any versioned shlibs or symbol policy that was encoded there is now handled either by default debhelper behavior or explicit shlibs/symbols files, to avoid unintentionally relaxing dependency bounds between DTK5/DTK6 libraries.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
deepin pr auto review这份 1. 总体评价这次修改主要是移除不再使用的变量定义和构建参数。代码逻辑上没有引入新的功能或错误,属于"减法"操作,旨在简化构建脚本。这通常是好的做法,因为减少了维护成本和潜在的出错点。 2. 详细审查意见A. 语法与逻辑
B. 代码质量
C. 代码性能
D. 代码安全
3. 改进建议
总结这段代码变更在语法上是正确的,在性能上有微小的正面影响,但在逻辑和安全性上存在潜在风险。
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, asterwyx 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 |
Removed version mapping logic for DTK5 and DTK6 as part of unified build
transformation. The changes include:
definitions
DTK5 and DTK6 build configurations
dependency specifications
This refactoring is necessary because dtk5 and dtk6 now share the same
version numbers, eliminating the need for separate version mapping
logic. The unified build approach simplifies the build system and
reduces maintenance complexity.
Influence:
version mapping
version-specific overrides
correctly
refactor: 统一dtk5和dtk6版本处理逻辑
作为统一构建改造的一部分,移除了DTK5和DTK6的版本映射逻辑。具体变更包括:
此次重构是必要的,因为dtk5和dtk6现在使用相同的版本号,不再需要单独的版本
映射逻辑。统一构建方法简化了构建系统并降低了维护复杂度。
Influence:
Summary by Sourcery
Unify DTK5 and DTK6 version handling in the Debian packaging by removing obsolete version mapping and custom version arguments from the build rules.
Enhancements: