me
/
guix
Archived
1
0
Fork 0

gnu: iPXE: Embed the actual package version.

* gnu/packages/bootloaders.scm (ipxe)[arguments]: Add phase to set the proper
version.
Marius Bakke 2022-12-22 14:24:30 +01:00
parent 209aed9511
commit 9279775d69
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 9 additions and 1 deletions

View File

@ -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"