Source: fceux
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 /usr/games/fceux:

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

  2021-11-21·13:43:00
  vs.
  2021-11-22·15:43:00

There is a already patch which adds support for SOURCE_DATE_EPOCH, but
the timestamps still vary dependent on timezone. The attached patch
updates the SOURCE_DATE_EPOCH patch to use the UTC timezone in the cmake
TIMESTAMP call.

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


Thanks for maintaining fceux!


live well,
  vagrant
From c6b223023940277a269eed92763d5a163dd09aba Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Mon, 2 May 2022 02:59:02 +0000
Subject: [PATCH] debian/patches: Update SOURCE_DATE_EPOCH patch to specify UTC
 timezone.

The cmake TIMESTAMP function defaults to the local timezone.

https://tests.reproducible-builds.org/debian/issues/unstable/timestamps_in_cmake_issue.html
---
 debian/patches/support_SOURCE_DATE_EPOCH.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/patches/support_SOURCE_DATE_EPOCH.patch b/debian/patches/support_SOURCE_DATE_EPOCH.patch
index ee6e494..35a2939 100644
--- a/debian/patches/support_SOURCE_DATE_EPOCH.patch
+++ b/debian/patches/support_SOURCE_DATE_EPOCH.patch
@@ -8,7 +8,7 @@
 +# the FCEUX_BUILD_TIMESTAMP preprocessor definition.
 +# Note: with CMake >= 3.8.0, this will respect SOURCE_DATE_EPOCH. For more info,
 +#       see <https://reproducible-builds.org/docs/source-date-epoch/>.
-+string(TIMESTAMP BUILD_TS "%Y-%m-%d %H:%M:%S")
++string(TIMESTAMP BUILD_TS "%Y-%m-%d %H:%M:%S" UTC)
 +add_definitions( -DFCEUX_BUILD_TIMESTAMP=\"${BUILD_TS}\" )
 +
  if (WIN32)
-- 
2.36.0

Attachment: signature.asc
Description: PGP signature

Reply via email to