make the build reproducible (second try...)

This commit is contained in:
Christian Hesse 2019-12-30 23:04:47 +00:00
parent bf67a0a106
commit 78052b8d53

View File

@ -23,7 +23,7 @@ pkgname='grub'
pkgdesc='GNU GRand Unified Bootloader (2)' pkgdesc='GNU GRand Unified Bootloader (2)'
_pkgver=2.04 _pkgver=2.04
pkgver=${_pkgver/-/} pkgver=${_pkgver/-/}
pkgrel=4 pkgrel=5
epoch=2 epoch=2
url='https://www.gnu.org/software/grub/' url='https://www.gnu.org/software/grub/'
arch=('x86_64') arch=('x86_64')
@ -143,6 +143,9 @@ prepare() {
./bootstrap \ ./bootstrap \
--gnulib-srcdir="${srcdir}/gnulib/" \ --gnulib-srcdir="${srcdir}/gnulib/" \
--no-git --no-git
echo "Make translations reproducible..."
sed -i '1i /^PO-Revision-Date:/ d' po/*.sed
} }
_build_grub-common_and_bios() { _build_grub-common_and_bios() {
@ -179,7 +182,7 @@ _build_grub-common_and_bios() {
"${_configure_options[@]}" "${_configure_options[@]}"
if [ ! -z "${SOURCE_DATE_EPOCH}" ]; then if [ ! -z "${SOURCE_DATE_EPOCH}" ]; then
echo "Make the build reproducible..." echo "Make info pages reproducible..."
touch -d "@${SOURCE_DATE_EPOCH}" $(find -name '*.texi') touch -d "@${SOURCE_DATE_EPOCH}" $(find -name '*.texi')
fi fi