forked from pool/tpm2-0-tss
4cbd149abb
Add reproducible.patch to sort input files to make build reproducible (boo#1041090) OBS-URL: https://build.opensuse.org/request/show/498585 OBS-URL: https://build.opensuse.org/package/show/security/tpm2-0-tss?expand=0&rev=45
32 lines
905 B
Diff
32 lines
905 B
Diff
From 010ebd4a161e424e09e5d89a336a84a0a42c456e Mon Sep 17 00:00:00 2001
|
|
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
|
|
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
|
|
|