File: versioninfo.cmake-set-build_date-using-u.patch

package info (click to toggle)
libdigidoc 3.10.5-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,528 kB
  • sloc: ansic: 29,054; makefile: 16
file content (25 lines) | stat: -rw-r--r-- 738 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 25 Dec 2020 10:14:21 +0000
X-Dgit-Generated: 3.10.5-2 7b334038faf5ff5f41f35caaec93deadf1fc6589
Subject: VersionInfo.cmake: Set BUILD_DATE using UTC timezone.

(Closes: #978064)

While cmake respects SOURCE_DATE_EPOCH for the timestamp, the
timestamp needs to be specified in UTC.

https://reproducible-builds.org/docs/timestamps/

---

--- libdigidoc-3.10.5.orig/cmake/modules/VersionInfo.cmake
+++ libdigidoc-3.10.5/cmake/modules/VersionInfo.cmake
@@ -6,7 +6,7 @@ else()
 	set( BUILD_VER 0 )
 endif()
 if(NOT BUILD_DATE)
-	string(TIMESTAMP BUILD_DATE "%d.%m.%Y")
+	string(TIMESTAMP BUILD_DATE "%d.%m.%Y" UTC)
 endif()
 
 set( VERSION ${PROJECT_VERSION}.${BUILD_VER} )