File: 1001-use-utc-timestamp.patch

package info (click to toggle)
libjpeg-turbo 1%3A2.1.5-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,244 kB
  • sloc: ansic: 57,369; asm: 30,823; javascript: 7,972; java: 3,321; sh: 1,215; pascal: 453; cpp: 390; makefile: 93
file content (19 lines) | stat: -rw-r--r-- 655 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
Author: Vagrant Cascadian <vagrant@reproducible-builds.org>
Description: Use UTC timezone for build timestamp

While CMake respects SOURCE_DATE_EPOCH, it still can produce a
different date depending on the timezone of the running system.

Specify timezone in UTC to enable a reproducible build.

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,7 +49,7 @@
   set(GENERATOR_IS_MULTI_CONFIG TRUE)
 endif()
 
-string(TIMESTAMP DEFAULT_BUILD "%Y%m%d")
+string(TIMESTAMP DEFAULT_BUILD "%Y%m%d" UTC)
 set(BUILD ${DEFAULT_BUILD} CACHE STRING "Build string (default: ${DEFAULT_BUILD})")
 
 # NOTE: On Windows, this does nothing except when using MinGW or Cygwin.