From e862679ebc1d97355c9860dc446c37d0b1020232 Mon Sep 17 00:00:00 2001 From: Samuel Tyler Date: Sun, 11 Jan 2026 22:51:12 +1100 Subject: [PATCH] Fix reproducibility --- steps/gettext-0.26/pass1.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/steps/gettext-0.26/pass1.sh b/steps/gettext-0.26/pass1.sh index 98ed3152..45af1619 100755 --- a/steps/gettext-0.26/pass1.sh +++ b/steps/gettext-0.26/pass1.sh @@ -118,11 +118,17 @@ src_prepare() { temp="$(mktemp -d)" pushd "$temp" tar -xf "$archive" - sed -i "s/%expect 10/%expect 7/" gettext-0.10.*/intl/plural.y + sed -i.bak "s/%expect 10/%expect 7/" gettext-0.10.*/intl/plural.y + for f in gettext-0.10.*/intl/plural.y; do + touch -r "$f.bak" "$f" + touch -r "$f.bak" "$(dirname "$f")" + done find . -path "*/intl/plural.c" | while read -r file; do pushd "$(dirname "$file")" rm plural.c bison -o plural.c plural.y + touch -r plural.y plural.c + touch -r plural.y . popd done tar -cf "$archive" gettext-*