postinstall: Restore reproducible build timestamps on /usr/share/fonts

This commit is contained in:
Brian C. Lane 2022-02-14 10:40:41 -08:00
parent 105e6891f6
commit 468a1d502d
1 changed files with 5 additions and 0 deletions

View File

@ -117,3 +117,8 @@ remove etc/lvm/lvm.conf
append etc/lvm/lvm.conf "global {\n\tuse_lvmetad = 1\n}\n"
## TODO: we could run prelink here if we wanted?
## fix fonconfig cache containing timestamps
runcmd chroot ${root} /usr/bin/find /usr/share/fonts -newermt "@${SOURCE_DATE_EPOCH}" -exec \
touch --no-dereference --date="@${SOURCE_DATE_EPOCH}" {} +
runcmd chroot ${root} /usr/bin/fc-cache -f