From: Douglas Royds Date: Sun, 18 Nov 2018 23:00:25 +0000 (+1300) Subject: ITS#8928 Reproducibility: Remove user, hostname, pwd from version string X-Git-Tag: OPENLDAP_REL_ENG_2_4_47~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43fd1006c91152abe8fe8ef0e54423c7b618c06b;p=thirdparty%2Fopenldap.git ITS#8928 Reproducibility: Remove user, hostname, pwd from version string When attempting a reproducible build, replace the WHOWHERE value with something fixed, "openldap". If you're not trying to do a reproducible build, SOURCE_DATE_EPOCH won't be set, so the existing WHOWHERE string will apply. See https://reproducible-builds.org/specs/source-date-epoch/ --- diff --git a/build/mkversion b/build/mkversion index e4f70eb3bb..4e35723621 100755 --- a/build/mkversion +++ b/build/mkversion @@ -50,7 +50,12 @@ if test $# != 1 ; then fi APPLICATION=$1 -WHOWHERE="$USER@`uname -n`:`pwd`" +# Reproducible builds set SOURCE_DATE_EPOCH, want constant strings +if [ -n "${SOURCE_DATE_EPOCH}" ]; then + WHOWHERE="openldap" +else + WHOWHERE="$USER@$(uname -n):$(pwd)" +fi cat << __EOF__ /* This work is part of OpenLDAP Software .