aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-01-12 14:46:58 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2023-01-12 15:00:24 +0100
commitaa5023b9cd0f31921561005c30bde49cf0834902 (patch)
treee9be84213a89d612a71188ba394a5b68ed2a6602
parente88e0ace7abe23dbf88e3c883378b729cd21db6f (diff)
downloadupstream-aa5023b9cd0f31921561005c30bde49cf0834902.tar.gz
upstream-aa5023b9cd0f31921561005c30bde49cf0834902.tar.bz2
upstream-aa5023b9cd0f31921561005c30bde49cf0834902.zip
scripts/dl_github_archieve.py: fix generating unreproducible tar
Allign dl_github_archieve.py to 8252511dc0b5a71e9e64b96f233a27ad73e28b7f change. On supported system the sigid bit is applied to files and tar archieve that on tar creation. This cause unreproducible tar for these system and these bit should be dropped to produce reproducible tar. Add the missing option following the command options used in other scripts. Fixes: 75ab064d2b38 ("build: download code from github using archive API") Suggested-by: Eneas U de Queiroz <cotequeiroz@gmail.com> Tested-by: Robert Marko <robimarko@gmail.com> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (cherry picked from commit 5f1758ef14575df4e86896526b1c2035c231899e)
-rwxr-xr-xscripts/dl_github_archive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dl_github_archive.py b/scripts/dl_github_archive.py
index b992227dc9..328d588e78 100755
--- a/scripts/dl_github_archive.py
+++ b/scripts/dl_github_archive.py
@@ -133,7 +133,7 @@ class Path(object):
def tar(path, subdir, into=None, ts=None):
"""Pack ``path`` into tarball ``into``."""
# --sort=name requires a recent build of GNU tar
- args = ['tar', '--numeric-owner', '--owner=0', '--group=0', '--sort=name']
+ args = ['tar', '--numeric-owner', '--owner=0', '--group=0', '--sort=name', '--mode=a-s']
args += ['-C', path, '-cf', into, subdir]
envs = os.environ.copy()
if ts is not None: