From 6fbf95ab1889463e81db6f511fcbcde7b9ed8480 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Mon, 9 May 2022 17:07:22 -0700 Subject: [PATCH] make Perl hash iteration reproducible By default Perl doesn't iterate over hashes in a reproducible manner, to avoid DDoS. Since we aren't providing untrusted inputs, it is fine to disable this behaviour. Among other things, this makes the .dbd and some .h generation reproducible. More information here: - https://reproducible-builds.org/docs/stable-outputs/ - https://perldoc.perl.org/perlrun#PERL_HASH_SEED --- configure/CONFIG | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure/CONFIG b/configure/CONFIG index df454b29b..e72537db1 100644 --- a/configure/CONFIG +++ b/configure/CONFIG @@ -34,6 +34,11 @@ ifeq ($(origin EPICS_HOST_ARCH), undefined) EHA := endif +# Make Perl hash iteration reproducible. +# See: https://reproducible-builds.org/docs/stable-outputs/ +# +export PERL_HASH_SEED = 0 + -include $(CONFIG)/RELEASE -include $(CONFIG)/RELEASE.$(EPICS_HOST_ARCH) -include $(CONFIG)/RELEASE.$(EPICS_HOST_ARCH).Common