From e103550ca5834aa12f81826868d542b1abb74e1d Mon Sep 17 00:00:00 2001 From: Markus Fritsche Date: Tue, 14 Apr 2026 20:23:53 +0000 Subject: [PATCH] lmcp deb: reproducible build via SOURCE_DATE_EPOCH reprepro refuses to re-include a .deb if the bytes differ from one already in pool/. Fixed mtimes via SOURCE_DATE_EPOCH make subsequent builds byte-identical, so CI re-runs of the same pkgver/pkgrel are accepted as no-ops instead of failing. Co-Authored-By: Claude Opus 4.6 (1M context) --- debian/lmcp/build-deb.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/lmcp/build-deb.sh b/debian/lmcp/build-deb.sh index 676f67dd3..e72419490 100755 --- a/debian/lmcp/build-deb.sh +++ b/debian/lmcp/build-deb.sh @@ -12,6 +12,12 @@ PKGREL=1 LMCP_TARBALL_SHA256=80a37fc41633ae285b86f2f6cdd97f0c922c03022dce09addd47aeb379f2bcff HERE=$(dirname "$(readlink -f "$0")") +# Reproducible build: pin all file mtimes + ar member timestamps to a fixed +# epoch tied to this packaging release (lmcp v0.3.0 — 2026-04-14 22:00 UTC). +# Without this, repeat builds produce different byte streams and reprepro +# refuses re-includes with "size expected: X, got: Y". +export SOURCE_DATE_EPOCH=1776200400 + work=$(mktemp -d) trap "rm -rf $work" EXIT