From 89f09c912a72b12a6f6525a4f12b50384e7c27ea Mon Sep 17 00:00:00 2001 From: Roberto MF Date: Mon, 4 Mar 2019 17:59:19 +0100 Subject: [PATCH] Use locale-independent sort to fix deterministic issues with ZIP As recommended in the Reproducible Builds's docs: https://reproducible-builds.org/docs/archives/#file-ordering --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 02c8b53..7c27189 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,7 @@ $(FLASHABLEZIP): $(FIRMWARE_DIR) $(EDIFY_BINARY) $(EDIFY_SCRIPT) @echo "Building flashable ZIP..." @mkdir -pv "$(@D)" @rm -f "$@" - @cd "$(TEMP_DIR)" && $(FIND) -type f | $(SORT) | $(ZIP) -X \ + @cd "$(TEMP_DIR)" && $(FIND) -type f | LC_ALL=C $(SORT) | $(ZIP) -X \ "$(ROOT)/$@" -@ @rm -rf "$(TEMP_DIR)" @echo "Result: $@"