mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-24 21:37:11 +00:00
build: Make tar archives reproducible
Reduce dependency on umask settings.
This commit is contained in:
committed by
Gedare Bloom
parent
9fea354de8
commit
4df7021740
3
wscript
3
wscript
@@ -194,6 +194,9 @@ def process_start_files(self):
|
|||||||
|
|
||||||
|
|
||||||
def make_tar_info_reproducible(info):
|
def make_tar_info_reproducible(info):
|
||||||
|
# Reduce dependency on umask settings
|
||||||
|
info.mode &= ~(stat.S_IRWXG | stat.S_IRWXO)
|
||||||
|
|
||||||
info.uid = 0
|
info.uid = 0
|
||||||
info.gid = 0
|
info.gid = 0
|
||||||
info.mtime = 0
|
info.mtime = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user