Source: mobilitydb
Version: 1.3.0~alpha-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timezone
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
mobilitydb could not be built reproducibly.

This is because the package included a timestamp that, whilst based on
SOURCE_DATE_EPOCH, varied on the current timezone.

Patch attached that specifies UTC.

  [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
diff --git mobilitydb/datagen/CMakeLists.txt mobilitydb/datagen/CMakeLists.txt
index 0706735..98a9e1f 100644
--- mobilitydb/datagen/CMakeLists.txt
+++ mobilitydb/datagen/CMakeLists.txt
@@ -2,7 +2,7 @@
 configure_file(mobilitydb_datagen.in.control 
${CMAKE_BINARY_DIR}/mobilitydb_datagen.control)
 
 # Configure the header template directly into the extension file
-string(TIMESTAMP GENERATION_DATE "%Y-%m-%d %H:%M:%S")
+string(TIMESTAMP GENERATION_DATE "%Y-%m-%d %H:%M:%S" UTC)
 configure_file(
     header.in.sql
     ${CMAKE_BINARY_DIR}/${MOBILITYDB_DATAGEN_EXTENSION_FILE}

Reply via email to