Source: xtpcpp
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: kernel
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The running kernel version gets embedded into /usr/bin/xtpcpp:

  
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/xtpcpp.html

  8072  Linux-5.8.0-0.bpo.2-amd64       8072    Linux-4.19.0-12-amd64

The attached patch uses CMAKE_SYSTEM_NAME instead of CMAKE_SYSTEM to
avoid embedding the running kernel version into the binaries.

live well,
  vagrant
From 662c336ad2f1a74f5e9559de5d96c3cac65ff04a Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sun, 29 Nov 2020 09:50:42 +0000
Subject: [PATCH 1/2] Use CMAKE_SYSTEM_NAME instead of CMAKE_SYSTEM to avoid
 embedding the running kernel version into the binaries.

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e69db46..cf0a743 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -133,7 +133,7 @@ configure_file (${CMAKE_SOURCE_DIR}/debian/control.cmake ${CMAKE_SOURCE_DIR}/deb
 
 set(SOFTWARE_NAME "X!TandemPipeline")
 
-set(BUILD_SYSTEM_NAME "${CMAKE_SYSTEM}")
+set(BUILD_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}")
 
 set(XTPCPP_VERSION_MAJOR "0")
 set(XTPCPP_VERSION_MINOR "4")
-- 
2.29.2

Attachment: signature.asc
Description: PGP signature

Reply via email to