mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 15:49:34 -05:00
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/
This commit is contained in:
parent
de998c3518
commit
c01e45daca
1 changed files with 6 additions and 1 deletions
|
|
@ -50,7 +50,12 @@ if test $# != 1 ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
APPLICATION=$1
|
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__
|
cat << __EOF__
|
||||||
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue