summaryrefslogtreecommitdiff
path: root/include/download.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-12-12 13:12:43 +0100
committerFelix Fietkau <nbd@nbd.name>2016-12-13 12:16:26 +0100
commit1b9a39c528bcad4f66821e15f8c2162075a40191 (patch)
treeba9e6ee42bae35aab9a7cd3c587b70816431e105 /include/download.mk
parent19d3b78304794bc5c87dc74df4c3735715579b5c (diff)
downloadmtk-20170518-1b9a39c528bcad4f66821e15f8c2162075a40191.zip
mtk-20170518-1b9a39c528bcad4f66821e15f8c2162075a40191.tar.gz
mtk-20170518-1b9a39c528bcad4f66821e15f8c2162075a40191.tar.bz2
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 <nbd@nbd.name>
Diffstat (limited to 'include/download.mk')
-rw-r--r--include/download.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/download.mk b/include/download.mk
index 49d2bf3..3c6b4a2 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