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.

20 lines
798 B

  1. Description: Make the build reproducible
  2. Author: Chris Lamb <lamby@debian.org>
  3. Reviewed-By: Laszlo Boszormenyi (GCS) <gcs@debian.org>
  4. Last-Update: 2018-07-24
  5. --- vips-8.6.4.orig/configure.ac
  6. +++ vips-8.6.4/configure.ac
  7. @@ -26,7 +26,11 @@ VIPS_MAJOR_VERSION=vips_major_version()
  8. VIPS_MINOR_VERSION=vips_minor_version()
  9. VIPS_MICRO_VERSION=vips_micro_version()
  10. VIPS_VERSION=vips_version()
  11. -VIPS_VERSION_STRING=$VIPS_VERSION-`date -u -r ChangeLog`
  12. +if test "x$SOURCE_DATE_EPOCH" = "x"; then
  13. + VIPS_VERSION_STRING=$VIPS_VERSION-`date -u -r ChangeLog`
  14. +else
  15. + VIPS_VERSION_STRING=$VIPS_VERSION-`LC_ALL=C date --utc --date="@$SOURCE_DATE_EPOCH"`
  16. +fi
  17. # libtool library versioning ... not user-visible (except as part of the
  18. # library file name) and does not correspond to major/minor/micro above