Bug#1100115: font-manager: please make the build reproducible
Chris Lamb
lamby at debian.org
Tue Mar 11 13:17:23 GMT 2025
Source: font-manager
Version: 0.9.4-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
font-manager could not be built reproducibly as it embedded timestamps
into some XML files. For example:
./usr/share/metainfo/com.github.FontManager.FontManager.metainfo.xml
@@ -173,15 +173,15 @@
</screenshots>
<releases>
- <release version="0.9.4" date="2026-04-12">
+ <release version="0.9.4" date="2025-03-11">
<description translate="no">
A patch is attached that generates this value using SOURCE_DATE_EPOCH.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible-build.patch 2025-03-11 13:12:08.368880432 +0000
@@ -0,0 +1,21 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2025-03-11
+
+--- font-manager-0.9.4.orig/meson.build
++++ font-manager-0.9.4/meson.build
+@@ -73,8 +73,12 @@ pkglib_dir = join_paths(prefix, get_opti
+ pkglibexec_dir = join_paths(prefix, get_option('libexecdir'), meson.project_name())
+
+ datetime = '''
+-from datetime import date
+-print(date.today())
++import os
++import time
++print(time.strftime(
++ "%Y-%m-%d",
++ time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))
++))
+ '''
+
+ today = run_command(python, '-c', datetime, check: true).stdout().strip()
--- a/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series 2025-03-11 13:12:07.460876951 +0000
@@ -0,0 +1 @@
+reproducible-build.patch
More information about the Reproducible-bugs
mailing list