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

Several files shipped with gnuradio include the build time:

  ./usr/lib/aarch64-linux-gnu/libgnuradio-runtime.so.3.8.2.0

  2061  Mon,·07·Dec·2020·14:42:43
  2061  Tue,·08·Dec·2020·16:42:43


While gnuradio includes a patch to respect SOURCE_DATE_EPOCH, it does
not handle the timezone variation. The attached patch to the patch
updates it to use the UTC timezone.

This patch does not resolve all reproducibility issues (e.g. build
paths), but should make gnuradio reproducible when it lands in bullseye
(where build paths are not tested).


Thanks for maintaining gnuradio!


live well,
  vagrant
From 93250947630cb7c26882805d1287e44c5a414e4d Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Mon, 14 Dec 2020 21:24:50 +0000
Subject: [PATCH 1/2] debian/patches: Update cmake timestamp patch to use UTC
 timezone.

Without this, the timestamp may vary based on the timezone of the
build system.
---
 .../patches/cmake-use-TIMESTAMP-function-to-generate-build_date | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/patches/cmake-use-TIMESTAMP-function-to-generate-build_date b/debian/patches/cmake-use-TIMESTAMP-function-to-generate-build_date
index d196d26..aa06074 100644
--- a/debian/patches/cmake-use-TIMESTAMP-function-to-generate-build_date
+++ b/debian/patches/cmake-use-TIMESTAMP-function-to-generate-build_date
@@ -30,7 +30,7 @@ Thanks to Sebastian Kosloswki for pointing out the right way in CMake
 +
 +# Use TIMESTAMP to be compatible with reproducible builds
 +# and put in in the cache so configure_file sees it
-+string(TIMESTAMP BUILD_DATE "%a, %d %b %Y %H:%M:%S")
++string(TIMESTAMP BUILD_DATE "%a, %d %b %Y %H:%M:%S" UTC)
 +set(BUILD_DATE ${BUILD_DATE} CACHE INTERNAL "Build date")
 +message(STATUS "Loading build date ${BUILD_DATE} into constants...")
 +message(STATUS "Loading version ${VERSION} into constants...")
-- 
2.29.2

Attachment: signature.asc
Description: PGP signature

Reply via email to