build: Make tar archives reproducible

Reduce dependency on umask settings.
This commit is contained in:
Sebastian Huber
2025-02-22 08:39:34 +01:00
committed by Gedare Bloom
parent 9fea354de8
commit 4df7021740

View File

@@ -194,6 +194,9 @@ def process_start_files(self):
def make_tar_info_reproducible(info):
# Reduce dependency on umask settings
info.mode &= ~(stat.S_IRWXG | stat.S_IRWXO)
info.uid = 0
info.gid = 0
info.mtime = 0