forked from marfrit/marfrit-packages
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) <noreply@anthropic.com>
This commit is contained in:
Vendored
+6
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user