Stable TAR archive metadata content in recipes

Differences in TAR archive member metadata results in unstable depot
hashes. The following properties have to be fixed: modification time
(incl. time zone), numeric owner and group, permission modes.

Releated to #2842
This commit is contained in:
Christian Helmuth 2023-10-04 15:12:38 +02:00
parent e36170c997
commit accfc4145a
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,8 @@ content: init.config assets.tar
init.config:
cp $(REP_DIR)/recipes/raw/download_coreplus/$@ $@
TAR_OPT := --owner=0 --group=0 --numeric-owner --mode='go=' --mtime='2018-05-29 00:00Z'
assets.tar:
tar --mtime='2018-05-29 00:00Z' -cf $@ -C $(REP_DIR)/recipes/raw/download_coreplus machine.vbox
tar --mtime='2018-05-29 00:00Z' -rf $@ -C $(REP_DIR)/recipes/raw/download_coreplus disk0.vmdk
tar $(TAR_OPT) -cf $@ -C $(REP_DIR)/recipes/raw/download_coreplus machine.vbox
tar $(TAR_OPT) -rf $@ -C $(REP_DIR)/recipes/raw/download_coreplus disk0.vmdk

View File

@ -20,5 +20,6 @@ LICENSE.wifi_drv:
pc_wifi_firmware.tar: ucode_files LICENSE.wifi_drv
tar --mtime='2023-05-03 00:00Z' --remove-files \
--owner=0 --group=0 --numeric-owner --mode='go=' \
-cf $@ -C . *.* rtlwifi/*.* && \
rmdir rtlwifi