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

The build time is embedded in
/usr/lib/postgresql/14/lib/libpgrouting-3.4.so:

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

  2022/10/11
  vs.
  2022/10/12

The attached patch to CMakeLists.txt fixes this by passing the UTC
argument to the TIMESTAMP function.

According to my local tests, with this patch applied, and another patch
soon to be submitted for embedded kernel versions, pgrouting should
build reproducibly on tests.reproducible-builds.org!

Thanks for maintaining pgrouting!

live well,
  vagrant
From aacaaba547ed47a674f516e79052c44e5a8bced9 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Fri, 14 Oct 2022 20:18:06 +0000
Subject: [PATCH 1/2] CMakeLists.txt: Specify UTC for TIMESTAMP.

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1f61927..a6ace99 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,7 +29,7 @@ include(pgr/Version)
 add_definitions(-DPROJECT_VERSION="${PROJECT_VERSION}${PROJECT_VERSION_DEV}")
 set(PROJECT_LIB_NAME "${PROJECT_NAME_LOWER}-${PROJECT_LIB_VERSION}")
 
-string(TIMESTAMP COMPILATION_DATE "%Y/%m/%d")
+string(TIMESTAMP COMPILATION_DATE "%Y/%m/%d" UTC)
 
 set(MINORS 3.4 3.3 3.2 3.1 3.0 2.6)
 set(OLD_SIGNATURES
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to