com php-src: Fix bug #69727: Support SOURCE_DATE_EPOCH fo r Build Date: NEWS configure.in

From: Date: Fri, 15 Dec 2017 21:03:01 +0000
Subject: com php-src: Fix bug #69727: Support SOURCE_DATE_EPOCH fo r Build Date: NEWS configure.in
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100606@lists.php.net to get a copy of this message
Commit: 8a179fa02b50685fba47e7d19af922b07791d616 Author: Jelle van der Waa <jelle@vdwaa.nl> Fri, 8 Dec 2017 19:19:22 +0100 Committer: Nikita Popov <nikita.ppv@gmail.com> Fri, 15 Dec 2017 22:03:01 +0100 Parents: f14f3ed7b4a0960e627f52c892dc86eaa8b30b33 Branches: PHP-7.1 PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8a179fa02b50685fba47e7d19af922b07791d616 Log: Fix bug #69727: Support SOURCE_DATE_EPOCH for Build Date When checking for reproducible builds php is build twice, once with the current date and once with a date in the future. To keep the build date supported and reproducible builds possible, SOURCE_DATE_EPOCH is introduced which can be set to the same epoch value for both builds. Bugs: https://bugs.php.net/69727 Changed paths: M NEWS M configure.in Diff: diff --git a/NEWS b/NEWS index e551dc7..c990615 100644 --- a/NEWS +++ b/NEWS @@ -19,6 +19,8 @@ PHP NEWS (Daniel Ciochiu) . Fixed bug #75074 (php-process crash when is_file() is used with strings longer 260 chars). (Anatol) + . Fixed bug #69727 (Remove timestamps from build to make it reproducible). + (jelle van der Waa) - CLI Server: . Fixed bug #60471 (Random "Invalid request (unexpected EOF)" using a router diff --git a/configure.in b/configure.in index 7d78ca0..40f4470 100644 --- a/configure.in +++ b/configure.in @@ -1285,7 +1285,8 @@ fi EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS" EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS" -PHP_BUILD_DATE=date '+%Y-%m-%d' +# SOURCE_DATE_EPOCH for reproducible builds https://reproducible-builds.org/specs/source-date-epoch/ +PHP_BUILD_DATE=date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE",[PHP build date]) case $host_alias in

« previous php.cvs (#100606) next »