feat: add reproducible build parameters#480
Merged
18202781743 merged 1 commit intolinuxdeepin:masterfrom Nov 17, 2025
Merged
Conversation
Added CMAKE_SKIP_BUILD_RPATH flag to enable reproducible builds across different build environments. This flag prevents CMake from embedding build-specific RPATH information into binaries, ensuring that the same source code produces identical binary outputs regardless of the build directory or environment. The DEB_CMAKE_EXTRA_FLAGS variable is now included in all dh_auto_configure calls for mipsel, mips64el, sw_64 architectures and the default configuration. This ensures consistent application of reproducible build settings across all supported architectures. Log: Added reproducible build support for consistent binary generation Influence: 1. Verify that builds produce identical binaries when built from different directories 2. Test package installation and runtime behavior on supported architectures 3. Confirm that RPATH information is not embedded in compiled binaries 4. Validate build process on mipsel, mips64el, and sw_64 architectures 5. Check that existing functionality remains unchanged with new build parameters feat: 添加可重复编译参数 添加 CMAKE_SKIP_BUILD_RPATH 标志以实现跨不同构建环境的可重复编译。该标志 防止 CMake 将构建特定的 RPATH 信息嵌入到二进制文件中,确保无论构建目录或 环境如何,相同的源代码都能产生相同的二进制输出。 现在在所有 dh_auto_configure 调用中包含了 DEB_CMAKE_EXTRA_FLAGS 变量,适 用于 mipsel、mips64el、sw_64 架构和默认配置。这确保在所有支持的架构上一 致应用可重复构建设置。 Log: 新增可重复构建支持,确保一致的二进制文件生成 Influence: 1. 验证从不同目录构建时是否产生相同的二进制文件 2. 在支持的架构上测试软件包安装和运行时行为 3. 确认编译后的二进制文件中未嵌入 RPATH 信息 4. 在 mipsel、mips64el 和 sw_64 架构上验证构建过程 5. 检查现有功能在使用新构建参数后是否保持不变
Contributor
deepin pr auto review我来对这个 git diff 进行代码审查:
总结: |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR ensures reproducible Debian package builds by adding a CMake flag to skip embedding RPATH info and uniformly propagating it across all dh_auto_configure invocations for default and target architectures. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
yixinshark
approved these changes
Nov 17, 2025
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, yixinshark 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.
Added CMAKE_SKIP_BUILD_RPATH flag to enable reproducible builds across different build environments. This flag prevents CMake from embedding build-specific RPATH information into binaries, ensuring that the same source code produces identical binary outputs regardless of the build directory or environment.
The DEB_CMAKE_EXTRA_FLAGS variable is now included in all dh_auto_configure calls for mipsel, mips64el, sw_64 architectures and the default configuration. This ensures consistent application of reproducible build settings across all supported architectures.
Log: Added reproducible build support for consistent binary generation
Influence:
feat: 添加可重复编译参数
添加 CMAKE_SKIP_BUILD_RPATH 标志以实现跨不同构建环境的可重复编译。该标志
防止 CMake 将构建特定的 RPATH 信息嵌入到二进制文件中,确保无论构建目录或
环境如何,相同的源代码都能产生相同的二进制输出。
现在在所有 dh_auto_configure 调用中包含了 DEB_CMAKE_EXTRA_FLAGS 变量,适 用于 mipsel、mips64el、sw_64 架构和默认配置。这确保在所有支持的架构上一
致应用可重复构建设置。
Log: 新增可重复构建支持,确保一致的二进制文件生成
Influence:
Summary by Sourcery
Enable reproducible builds by preventing CMake from embedding build-specific RPATH and propagating extra flags in Debian packaging scripts
Build: