]> git.sven.stormbind.net Git - sven/vym.git/commitdiff
Add d/p/build-date-utc: Try to make package reproducible, pass on "UTC" timezone...
authorSven Hoexter <sven@stormbind.net>
Sun, 18 Oct 2026 18:19:48 +0000 (20:19 +0200)
committerSven Hoexter <sven@stormbind.net>
Sun, 18 Oct 2026 18:31:40 +0000 (20:31 +0200)
debian/changelog
debian/patches/build-date-utc [new file with mode: 0644]
debian/patches/series

index db70852f6d3bd2225bcdfa4a39d97d32bfe2e53d..9a979f778846b27a7e138b2440a2b97599ce4627 100644 (file)
@@ -1,3 +1,10 @@
+vym (3.0.0+git20260819-2) unstable; urgency=medium
+
+  * Add d/p/build-date-utc: Try to make package reproducible, pass on
+    "UTC" timezone when generating the BUILD_DATE_IN.
+
+ --
+
 vym (3.0.0+git20260819-1) unstable; urgency=medium
 
   * New upstream snapshot of vym 3.
diff --git a/debian/patches/build-date-utc b/debian/patches/build-date-utc
new file mode 100644 (file)
index 0000000..7504dec
--- /dev/null
@@ -0,0 +1,21 @@
+Description: Pass on UTC timezone to BUILD_DATE_IN
+ Currently the package is not building reproducible.
+ cmake 3.8 and later should honor SOURCE_DATE_EPOCH correctly,
+ so it's likely, according to https://reproducible-builds.org/docs/source-date-epoch/ ,
+ that we got a timezone mismatch here.
+Author: Sven Hoexter <hoexter@debian.org>
+Last-Update: 2026-10-18
+Forwarded: not-needed
+Index: vym/CMakeLists.txt
+===================================================================
+--- vym.orig/CMakeLists.txt
++++ vym/CMakeLists.txt
+@@ -63,7 +63,7 @@ find_package(Qt6 REQUIRED COMPONENTS Cor
+ find_package(Qt6 COMPONENTS ${QtComponents} REQUIRED)
+ 
+ # Build date
+-string(TIMESTAMP BUILD_DATE_IN "%Y-%m-%d")
++string(TIMESTAMP BUILD_DATE_IN "%Y-%m-%d" UTC)
+ add_compile_definitions(BUILD_DATE_IN="${BUILD_DATE_IN}")
+ configure_file(
+     ${CMAKE_SOURCE_DIR}/src/buildinfo.h.in
index 6585fe66b01a07f41088214ece188bb9fbe77515..e1e8ae63ee947b4acee6372dd874dedf370dd607 100644 (file)
@@ -1,2 +1,3 @@
 cmake-installs.patch
 disable-version-update.patch
+build-date-utc