[pacman-dev] [PATCH 5/5] makepkg: unify source file times for improved build reproducibility
Levente Polyak
anthraxx at archlinux.org
Fri May 12 10:41:23 UTC 2017
Signed-off-by: Levente Polyak <anthraxx at archlinux.org>
---
scripts/makepkg.sh.in | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index bd92c526..83c80fa7 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1731,6 +1731,9 @@ if (( !REPKG )); then
if (( PREPAREFUNC )); then
run_prepare
fi
+
+ # unify source times before building for reproducibility
+ find "$srcdir" -exec touch -h -d "@${SOURCE_DATE_EPOCH}" {} +
fi
if (( PKGVERFUNC )); then
--
2.12.2
More information about the pacman-dev
mailing list