summaryrefslogtreecommitdiff
path: root/libre/grub
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@parabola.nu>2024-01-07 15:22:55 -0700
committerLuke T. Shumaker <lukeshu@parabola.nu>2024-01-07 20:18:29 -0700
commit620ba961e77afd0aab2c11db336334b588e84089 (patch)
tree35928a9c2c7be125cfd2ebbb5b92aeb1d8d0935c /libre/grub
parent14a544b18cf971ec8a116caaf4da0de2d8c4b127 (diff)
libre/grub: pull reproducible-build bits from Arch
Diffstat (limited to 'libre/grub')
-rw-r--r--libre/grub/PKGBUILD6
1 files changed, 6 insertions, 0 deletions
diff --git a/libre/grub/PKGBUILD b/libre/grub/PKGBUILD
index db7b34157..7a73b6e38 100644
--- a/libre/grub/PKGBUILD
+++ b/libre/grub/PKGBUILD
@@ -223,6 +223,9 @@ prepare() {
./bootstrap \
--gnulib-srcdir="${srcdir}/gnulib/" \
--no-git
+
+ echo "Make translations reproducible..."
+ sed -i '1i /^PO-Revision-Date:/ d' po/*.sed
}
# Usage: _build_grub DIRSUFFIX 'Human Description' CPU-PLATFORM CONFIG_OPTIONS...
@@ -252,6 +255,9 @@ _build_grub() {
--target="${bld_cpu}" \
"${bld_configure_options[@]}"
+ echo "Make info pages reproducible..."
+ touch -d "@${SOURCE_DATE_EPOCH}" $(find -name '*.texi')
+
echo "Run make for ${bld_desc} build..."
make
}