You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.1 KiB

  1. From fd2351615540dee6c86466d6e1138340baeebde4 Mon Sep 17 00:00:00 2001
  2. From: Luiz Angelo Daros de Luca <luizluca@gmail.com>
  3. Date: Tue, 15 Feb 2022 01:37:06 -0300
  4. Subject: [PATCH] Make package reproducible
  5. Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
  6. ---
  7. build/build-dist.sh | 4 ++--
  8. 1 file changed, 2 insertions(+), 2 deletions(-)
  9. --- a/build/build-dist.sh
  10. +++ b/build/build-dist.sh
  11. @@ -80,7 +80,7 @@ stage_unix() {
  12. # FreeBSD does not accept -i without argument in a way also acceptable by GNU sed
  13. sed -i.tmp -e "s/~VER~/$VERSION/" \
  14. - -e "s/~DATE~/$(date)/" \
  15. + -e "s/~DATE~/$(SOURCE_DATE_EPOCH)/" \
  16. -e "s/~HOST~/$(hostname -s)/" \
  17. -e "s/~GITHEAD~/$(git rev-parse HEAD)/" \
  18. "$DIST_ROOT/unix/$PV/easyrsa" || die "Cannot update easyrsa version data"
  19. @@ -122,7 +122,7 @@ stage_win() {
  20. done
  21. sed -i.tmp -e "s/~VER~/$VERSION/" \
  22. - -e "s/~DATE~/$(date)/" \
  23. + -e "s/~DATE~/$(SOURCE_DATE_EPOCH)/" \
  24. -e "s/~HOST~/$(hostname -s)/" \
  25. -e "s/~GITHEAD~/$(git rev-parse HEAD)/" \
  26. "$DIST_ROOT/$win/$PV/easyrsa" || die "Cannot update easyrsa version data"