Package: nullmailer / 1:2.2-3

0004-Sort-files-in-archive-reproducible-builds.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Nick Leverton <nick@leverton.org>
Date: Tue, 11 Jul 2017 22:25:43 -0300
Subject: Sort files in archive (reproducible builds)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Sort files when using mergelib to create libnullmailer.a, to get
reproducible build

Author: Alexis Bienvenüe <pado@passoire.fr>
---
 lib/mergelib.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/mergelib.sh b/lib/mergelib.sh
index f9b7a94..4e71079 100644
--- a/lib/mergelib.sh
+++ b/lib/mergelib.sh
@@ -12,5 +12,5 @@ for input in "$@"; do
 	"${AR:-ar}" x ../../"$input"
 	cd ..
 done
-"${AR:-ar}" rc ../"$archive" */*
+"${AR:-ar}" rc ../"$archive" `LC_ALL=C ls */*`
 "${RANLIB:-ranlib}" ../"$archive"