[arch-commits] Commit in linux-firmware/trunk (PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Wed Sep 26 11:29:46 UTC 2018


    Date: Wednesday, September 26, 2018 @ 11:29:46
  Author: jelle
Revision: 335420

Make amd-ucode reproducible

Default the timestamp is written which makes the pakcage non-reproducible. If
SOURCE_DATE_EPOCH is set touch the .bin file with that date so the package can
be reproduced.

Modified:
  linux-firmware/trunk/PKGBUILD

----------+
 PKGBUILD |    2 ++
 1 file changed, 2 insertions(+)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-26 11:14:33 UTC (rev 335419)
+++ PKGBUILD	2018-09-26 11:29:46 UTC (rev 335420)
@@ -29,6 +29,8 @@
 build() {
   mkdir -p kernel/x86/microcode
   cat ${pkgbase}/amd-ucode/microcode_amd*.bin > kernel/x86/microcode/AuthenticAMD.bin
+  # Make the .bin reproducible 
+  [ ! -z $SOURCE_DATE_EPOCH ] && touch -d @$SOURCE_DATE_EPOCH kernel/x86/microcode/AuthenticAMD.bin
   echo kernel/x86/microcode/AuthenticAMD.bin | bsdcpio -o -H newc -R 0:0 > amd-ucode.img
 }
 



More information about the arch-commits mailing list