Skip to content

Commit d21b1c5

Browse files
jellynikic
authored andcommitted
Allow defining of uname value for reproducible builds
Extend configure.ac to accept PHP_UNAME as env variable to set the value of the PHP_UNAME define in a reproducible manner. This allows distributions to set a fixed value for php_uname and keep the default behaviour if PHP_UNAME is not set. Motivation: https://reproducible-builds.org/ Closes GH-5671.
1 parent 4902b1c commit d21b1c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,8 @@ PHP_BUILD_DATE=`date -u +%Y-%m-%d`
13231323
fi
13241324
AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE",[PHP build date])
13251325

1326-
PHP_UNAME=`uname -a | xargs`
1326+
UNAME=`uname -a | xargs`
1327+
PHP_UNAME=${PHP_UNAME:-$UNAME}
13271328
AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output])
13281329
PHP_OS=`uname | xargs`
13291330
AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS",[uname output])

0 commit comments

Comments
 (0)