File: use-UTC-timestamp-for-reproducibility.patch

package info (click to toggle)
flightgear 1%3A2020.3.19%2Bdfsg-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,168 kB
  • sloc: cpp: 245,588; ansic: 181,318; sh: 13,686; perl: 4,475; python: 3,139; xml: 899; asm: 642; makefile: 347; java: 314
file content (24 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 7970a34ab1342887ccf1d6f56eead7125b48c54d Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 17 Oct 2021 08:54:17 +0000
Subject: [PATCH] package/CMakeLists.txt: Use UTC timestamp.

While cmake respects SOURCE_DATE_EPOCH, the timezone may still change
the date stamp used.

https://reproducible-builds.org/docs/source-date-epoch/
---
 package/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/package/CMakeLists.txt
+++ b/package/CMakeLists.txt
@@ -3,7 +3,7 @@
 # switch to parsing this from flightgear/version file explicity,
 # but it's only needed by AppStream metainfo for the moment
 
-string(TIMESTAMP FG_CMAKE_TIMESTAMP "%Y-%m-%d")
+string(TIMESTAMP FG_CMAKE_TIMESTAMP "%Y-%m-%d" UTC)
 
 if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
     # our .desktop file specifies --launcher, so only install it for