From 1b9a39c528bcad4f66821e15f8c2162075a40191 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 12 Dec 2016 13:12:43 +0100 Subject: [PATCH] download.mk: improve download tarball reproducibility Store only numeric user/group id. Group 0 is 'root' on linux and 'wheel' on BSD and Mac OS X. Signed-off-by: Felix Fietkau --- include/download.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/download.mk b/include/download.mk index 49d2bf3bac..3c6b4a20cf 100644 --- a/include/download.mk +++ b/include/download.mk @@ -41,7 +41,7 @@ define dl_pack $(if $(dl_pack/$(call ext,$(1))),$(dl_pack/$(call ext,$(1))),$(dl_pack/unknown)) endef define dl_tar_pack - $(TAR) --owner=0 --group=0 --sort=name $$$${TAR_TIMESTAMP:+--mtime="$$$$TAR_TIMESTAMP"} -c $(2) | $(call dl_pack,$(1)) + $(TAR) --numeric-owner --owner=0 --group=0 --sort=name $$$${TAR_TIMESTAMP:+--mtime="$$$$TAR_TIMESTAMP"} -c $(2) | $(call dl_pack,$(1)) endef define DownloadMethod/unknown -- 2.30.2