From b7719d81cf7fe348a4588c2b3c47a39d59d6616c Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sat, 18 Dec 2021 21:41:49 +0100 Subject: gnu: seabios: Encode version information in the binary. ...to make the build deterministic. * gnu/packages/firmware.scm (seabios)[arguments]: Create a ".version" file as expected by the build system. While at it, set EXTRAVERSION as recommended by upstream. --- gnu/packages/firmware.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gnu/packages/firmware.scm') diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index cf6fa73be8..13e33afd35 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm @@ -6,7 +6,7 @@ ;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2018 Vagrant Cascadian ;;; Copyright © 2019 Mathieu Othacehe -;;; Copyright © 2020 Marius Bakke +;;; Copyright © 2020, 2021 Marius Bakke ;;; Copyright © 2021 Petr Hodina ;;; ;;; This file is part of GNU Guix. @@ -295,10 +295,17 @@ for platform-specific firmwares executing in M-mode.") (native-inputs (list python-wrapper)) (arguments `(#:tests? #f ; no check target + #:make-flags '("EXTRAVERSION=-guix") ;upstream wants distros to set this #:phases (modify-phases %standard-phases (replace 'configure (lambda _ + ;; Create the ".version" file that is present in release tarballs. + ;; Otherwise this will be regarded as an "unclean" build, and the + ;; build system ends up encoding the build date in the binaries. + (call-with-output-file ".version" + (lambda (port) + (format port ,(package-version this-package)))) (setenv "CC" "gcc"))) (replace 'install (lambda* (#:key outputs #:allow-other-keys) -- cgit v1.2.3