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

The build timestamp is embedded in the boost_python_meta_ext.so.0.0.1
library and the corresponding debug symbols:

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

  /usr/lib/x86_64-linux-gnu/boost_python_meta_ext.so.0.0.1

  __TIMESTAMP__·=·Thu·Mar·23·02:40:09·2023
vs.
  __TIMESTAMP__·=·Fri·Feb·18·22:37:54·2022

The attached patch fixes this by removing the timestamp.

With this patch applied, cctbx should build reproducibly on
tests.reproducible-builds.org!


An alternate approach would be to replace it with the timestamp
specified in SOURCE_DATE_EPOCH, if for some reason this binary
absolutely needs an embedded timestamp:

  https://reproducible-builds.org/docs/source-date-epoch/


Thanks for maintaining cctbx!

live well,
  vagrant
From e554ea5ffab260208f9ce81433005e612dc85bf5 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 22 Feb 2022 00:47:41 +0000
Subject: [PATCH] boost_adaptbx/meta_ext.cpp: Remove embedded timestamp.

https://reproducible-builds.org/docs/timestamps/
---
 boost_adaptbx/meta_ext.cpp | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/boost_adaptbx/meta_ext.cpp b/boost_adaptbx/meta_ext.cpp
index 5d2f45b..19f5782 100644
--- a/boost_adaptbx/meta_ext.cpp
+++ b/boost_adaptbx/meta_ext.cpp
@@ -207,9 +207,6 @@ namespace {
 #if defined(__TIME__)
     result += "__TIME__ = " __TIME__ "\n";
 #endif
-#if defined(__TIMESTAMP__)
-    result += "__TIMESTAMP__ = " __TIMESTAMP__ "\n";
-#endif
 #if defined(__alpha__)
     result += "__alpha__\n";
 #endif
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature

Reply via email to