mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
vips: Add Debian's reproducible build patch
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Alexander Couzens
parent
ceb39d08a0
commit
25f8cf0081
20
libs/vips/patches/010-reproducible-build.patch
Normal file
20
libs/vips/patches/010-reproducible-build.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
Description: Make the build reproducible
|
||||
Author: Chris Lamb <lamby@debian.org>
|
||||
Reviewed-By: Laszlo Boszormenyi (GCS) <gcs@debian.org>
|
||||
Last-Update: 2018-07-24
|
||||
|
||||
--- vips-8.6.4.orig/configure.ac
|
||||
+++ vips-8.6.4/configure.ac
|
||||
@@ -26,7 +26,11 @@ VIPS_MAJOR_VERSION=vips_major_version()
|
||||
VIPS_MINOR_VERSION=vips_minor_version()
|
||||
VIPS_MICRO_VERSION=vips_micro_version()
|
||||
VIPS_VERSION=vips_version()
|
||||
-VIPS_VERSION_STRING=$VIPS_VERSION-`date -u -r ChangeLog`
|
||||
+if test "x$SOURCE_DATE_EPOCH" = "x"; then
|
||||
+ VIPS_VERSION_STRING=$VIPS_VERSION-`date -u -r ChangeLog`
|
||||
+else
|
||||
+ VIPS_VERSION_STRING=$VIPS_VERSION-`LC_ALL=C date --utc --date="@$SOURCE_DATE_EPOCH"`
|
||||
+fi
|
||||
|
||||
# libtool library versioning ... not user-visible (except as part of the
|
||||
# library file name) and does not correspond to major/minor/micro above
|
||||
Reference in New Issue
Block a user