From 026e168dfba89be0f6d0f8165c66be873bb59b12 Mon Sep 17 00:00:00 2001 From: Sven Hoexter Date: Sun, 18 Oct 2026 20:19:48 +0200 Subject: [PATCH] Add d/p/build-date-utc: Try to make package reproducible, pass on "UTC" timezone when generating the BUILD_DATE_IN. --- debian/changelog | 7 +++++++ debian/patches/build-date-utc | 21 +++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 29 insertions(+) create mode 100644 debian/patches/build-date-utc diff --git a/debian/changelog b/debian/changelog index db70852..9a979f7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 index 0000000..7504dec --- /dev/null +++ b/debian/patches/build-date-utc @@ -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 +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 diff --git a/debian/patches/series b/debian/patches/series index 6585fe6..e1e8ae6 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ cmake-installs.patch disable-version-update.patch +build-date-utc -- 2.47.3