diff --git a/python-HyperKitty.changes b/python-HyperKitty.changes index a4a4c43..2850f1b 100644 --- a/python-HyperKitty.changes +++ b/python-HyperKitty.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 11 13:19:11 UTC 2025 - Bernhard Wiedemann + +- Add reproducible.patch for reproducible builds + ------------------------------------------------------------------- Thu Nov 7 11:33:38 UTC 2024 - Markéta Machová diff --git a/python-HyperKitty.spec b/python-HyperKitty.spec index b9057c6..f4fc262 100644 --- a/python-HyperKitty.spec +++ b/python-HyperKitty.spec @@ -92,6 +92,7 @@ Patch0: hyperkitty-settings.patch Patch98: gl-mr300-add-opengraph-metadata.patch # PATCH-FIX-UPSTREAM gl-mr470-introduce-feed-filtering.patch gl#mailman/hyperkitty#470 Patch99: gl-mr470-introduce-feed-filtering.patch +Patch100: reproducible.patch # BuildRequires: %{python_module Django >= %{django_min_version} with %python-Django < %{django_max_version}} BuildRequires: %{python_module Whoosh} diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..1e1cb66 --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,27 @@ +https://gitlab.com/mailman/hyperkitty/-/merge_requests/656 + +From 3961ea048f00da1004bbfe22f43ea2a494279d49 Mon Sep 17 00:00:00 2001 +From: "Bernhard M. Wiedemann" +Date: Mon, 16 Dec 2024 16:08:45 +0100 +Subject: [PATCH] Use content based hashing + +for deterministic .css files +Without this patch, the mode defaulted to `mtime` +and caused variations between builds. + +Fixes #527 + +This patch was done while working on reproducible builds for openSUSE, sponsored by the NLnet NGI0 fund. + +diff --git a/example_project/settings.py b/example_project/settings.py +index ec7f742..1c53df6 100644 +--- a/build_static_files/settings.py ++++ b/build_static_files/settings.py +@@ -304,6 +304,7 @@ SOCIALACCOUNT_PROVIDERS = { + # django-compressor + # https://pypi.python.org/pypi/django_compressor + # ++COMPRESS_CSS_HASHING_METHOD = 'content' + COMPRESS_PRECOMPILERS = ( + ('text/x-scss', 'sassc -t compressed {infile} {outfile}'), + ('text/x-sass', 'sassc -t compressed {infile} {outfile}'),