1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: ebusd: Make the build reproducible.

* gnu/packages/embedded.scm (ebusd)[arguments]<#:phases>{set-version}: New
phase.

Fixes: guix/guix#6638
Change-Id: I5bc7b0448b6eb8a18db86c3813a619f9f63737e0
Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
This commit is contained in:
Sören Tempel
2026-02-24 10:56:53 +01:00
committed by Danny Milosavljevic
parent a92bf1b96c
commit f947cdecc3

View File

@@ -1885,6 +1885,15 @@ and more.")
(("#define CONFIG_PATH .*")
(string-append "#define CONFIG_PATH \"" (assoc-ref inputs "config")
"/ebusd-2.1.x/\"\n")))))
;; If we don't set GIT_REVISION, then the build system will include the
;; current date in the version string, making the build unreproducible.
;;
;; See:
;; * https://codeberg.org/guix/guix/issues/6638
;; * https://github.com/john30/ebusd/blob/v22.4/configure.ac#L159-L163
(add-after 'unpack 'set-version-info
(lambda _
(setenv "GIT_REVISION" ,version)))
(add-after 'install 'install-config
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((config-destination