[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/08: gnu: iPXE: Embed the actual package version.
From: |
guix-commits |
Subject: |
06/08: gnu: iPXE: Embed the actual package version. |
Date: |
Thu, 22 Dec 2022 10:52:40 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit 9279775d6904830b8ffa0bf7bf06e0904aeca323
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Thu Dec 22 14:24:30 2022 +0100
gnu: iPXE: Embed the actual package version.
* gnu/packages/bootloaders.scm (ipxe)[arguments]: Add phase to set the
proper
version.
---
gnu/packages/bootloaders.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 7c4c92ad9d..464a6f54c1 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -1419,7 +1419,7 @@ order to add a suitable bootloader menu entry.")
;;
;; TODO: Bump this timestamp at each modifications of the package (not only
;; for updates) by running: date +%s.
- (let ((timestamp "1591706427"))
+ (let ((timestamp "1671715380"))
(package
(name "ipxe")
(version "1.21.1")
@@ -1481,6 +1481,14 @@ order to add a suitable bootloader menu entry.")
(modify-phases %standard-phases
(add-after 'unpack 'enter-source-directory
(lambda _ (chdir "src") #t))
+ (add-after 'enter-source-directory 'set-version
+ (lambda _
+ ;; When not building from a git checkout, iPXE encodes the
+ ;; version as "1.0.0+". Use the package version instead.
+ (substitute* "Makefile"
+ (("^VERSION[[:blank:]]+=.*")
+ (string-append "VERSION = " ,(package-version this-package)
+ "-guix\n")))))
(add-after 'enter-source-directory 'set-options
(lambda _
(substitute* "config/general.h"
- branch master updated (c1d543203e -> c9392e6fc6), guix-commits, 2022/12/22
- 03/08: gnu: ipxe-qemu: Cross-compile on non x86_64., guix-commits, 2022/12/22
- 01/08: gnu: QEMU: Don't provide --firmwarepath for user-mode binaries., guix-commits, 2022/12/22
- 05/08: gnu: Install QEMU firmare files to 'share/qemu'., guix-commits, 2022/12/22
- 06/08: gnu: iPXE: Embed the actual package version.,
guix-commits <=
- 07/08: gnu: Add sgabios., guix-commits, 2022/12/22
- 02/08: gnu: SeaBIOS: Split QEMU variants out to separate package., guix-commits, 2022/12/22
- 04/08: gnu: QEMU: Unbundle iPXE., guix-commits, 2022/12/22
- 08/08: gnu: QEMU: Unbundle SGABIOS., guix-commits, 2022/12/22