File: 0001-build_info.hpp.in-Patch-to-use-CMAKE_SYSTEM_NAME-ins.patch

package info (click to toggle)
minia 3.2.6-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,024 kB
  • sloc: cpp: 1,377; sh: 395; python: 208; makefile: 9
file content (23 lines) | stat: -rw-r--r-- 980 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Wed, 3 Nov 2021 21:11:32 +0000
Bug-Debian: https://bugs.debian.org/998420
Subject: [PATCH] build_info.hpp.in: Patch to use CMAKE_SYSTEM_NAME instead
 of CMAKE_SYSTEM.

CMAKE_SYSTEM captures the kernel version, which can reasonably vary
between builds. Use CMAKE_SYSTEM_NAME instead, which does not include
the version.

https://tests.reproducible-builds.org/debian/issues/unstable/captures_kernel_version_via_CMAKE_SYSTEM_issue.html
---
 src/build_info.hpp.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/src/build_info.hpp.in
+++ b/src/build_info.hpp.in
@@ -23,4 +23,4 @@
 #define STR_MINIA_VERSION     "${gatb-tool-version}"
 #define STR_MINIA_COMPILATION_FLAGS   "${gatb-core-flags}"
 #define STR_MINIA_COMPILER            "${CMAKE_C_COMPILER}  (${CMAKE_CXX_COMPILER_VERSION})"
-#define STR_MINIA_OPERATING_SYSTEM    "${CMAKE_SYSTEM}"
+#define STR_MINIA_OPERATING_SYSTEM    "${CMAKE_SYSTEM_NAME}"