Commit 2909bc6
committed
feat: add reproducible build parameters
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. 检查现有功能在使用新构建参数后是否保持不变1 parent 51e6b1f commit 2909bc6
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | | - | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | | - | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | | - | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
0 commit comments