From 010ebd4a161e424e09e5d89a336a84a0a42c456e Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Sat, 27 May 2017 07:08:56 +0200 Subject: [PATCH] sort input files when building packages (e.g. for openSUSE Linux) (random) filesystem order of input files influences ordering of functions in the output, thus without the patch, builds (in disposable VMs) would differ. See https://reproducible-builds.org/ for why this matters. --- bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap b/bootstrap index 95a6dda..610e817 100755 --- a/bootstrap +++ b/bootstrap @@ -8,7 +8,7 @@ src_listvar () { suffix=$2 var=$3 - find "${basedir}" -name "${suffix}" | tr '\n' ' ' | (echo -n "${var} = " && cat) + find "${basedir}" -name "${suffix}" | LC_ALL=C sort | tr '\n' ' ' | (echo -n "${var} = " && cat) echo "" } -- 2.12.0